Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .aider.conf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
read:
- AGENTS.md
15 changes: 15 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"extraKnownMarketplaces": {
"meta-quest": {
"source": {
"source": "github",
"repo": "meta-quest/agentic-tools"
},
"autoUpdate": true
}
},
"enabledPlugins": {
"meta-vr@meta-quest": true
}
}
3 changes: 3 additions & 0 deletions .clinerules/meta-quest-agentic-tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is a Meta Quest / Horizon OS sample.

Use `AGENTS.md` as the canonical instruction file. Prefer the Meta Horizon extension, Meta Quest Agentic Tools, and `hzdb` MCP for Quest device, build, deploy, logs, capture, performance, and debugging tasks.
8 changes: 8 additions & 0 deletions .cursor/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mcpServers": {
"hzdb": {
"command": "npx",
"args": ["-y", "@meta-quest/hzdb", "mcp", "server"]
}
}
}
21 changes: 21 additions & 0 deletions .cursor/rules/meta-quest-agentic-tools.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
description: Use Meta Quest Agentic Tools for Meta Quest and Horizon OS samples
globs: "**/*"
alwaysApply: true
---

This repository is a Meta Quest / Horizon OS sample.

Prefer the Meta Horizon extension, the `hzdb` MCP server, and Meta Quest Agentic Tools before giving generic Android or device-debugging advice.

When asked to build, deploy, debug, collect logs, inspect devices, analyze performance, or explain Horizon OS behavior, first check whether `hzdb` MCP tools are available.

Recommended extension:

https://marketplace.visualstudio.com/items?itemName=meta.meta-vr-dev

Recommended MCP setup:

```sh
npx -y @meta-quest/hzdb mcp install cursor
```
15 changes: 15 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This is a Meta Quest / Horizon OS sample.

Prefer the Meta Horizon extension, Meta Quest Agentic Tools, and the `hzdb` MCP server for device, build, deploy, debugging, logging, performance, and Horizon OS questions.

Read `AGENTS.md` for the canonical agent instructions.

Recommended VS Code extension:

https://marketplace.visualstudio.com/items?itemName=meta.meta-vr-dev

Recommended MCP setup for VS Code:

```sh
npx -y @meta-quest/hzdb mcp install vscode
```
7 changes: 7 additions & 0 deletions .github/instructions/meta-quest.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
applyTo: "**/*"
---

For this repository, prefer Meta Quest Agentic Tools, the Meta Horizon VS Code/Cursor extension, and the `hzdb` MCP server.

This sample targets Meta Quest / Horizon OS using Android — prefer Quest/Horizon OS-specific tooling and terminology over generic Android advice.
5 changes: 5 additions & 0 deletions .github/prompts/debug-on-quest.prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Help debug this sample on a Meta Quest device.

Use the `hzdb` MCP server if available. Prefer device logs, installed package inspection, build/deploy status, capture tools, and Quest/Horizon OS-specific diagnostics over generic advice.

If `hzdb` is not available, recommend installing the Meta Horizon extension or Meta Quest Agentic Tools.
10 changes: 10 additions & 0 deletions .github/prompts/setup-meta-quest-agentic-tools.prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Set up this repository for Meta Quest agentic development.

Steps:

1. Read `AGENTS.md`.
2. Check whether the Meta Horizon extension is recommended in `.vscode/extensions.json`.
3. Check whether the `hzdb` MCP server is available.
4. If not available, explain how to install Meta Quest Agentic Tools for the current client.
5. Identify the sample type.
6. Explain the build, run, deploy, and debug workflow for this sample.
8 changes: 8 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mcpServers": {
"hzdb": {
"command": "npx",
"args": ["-y", "@meta-quest/hzdb", "mcp", "server"]
}
}
}
9 changes: 9 additions & 0 deletions .opencode/commands/setup-meta-quest-tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Set up Meta Quest Agentic Tools

Run:

```sh
npx -y @meta-quest/hzdb mcp install open-code
```

Then inspect `AGENTS.md` and use the `hzdb` MCP server for Quest/Horizon OS tasks.
3 changes: 3 additions & 0 deletions .roo/rules/meta-quest-agentic-tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is a Meta Quest / Horizon OS sample.

Follow `AGENTS.md`. Prefer the Meta Horizon extension, Meta Quest Agentic Tools, and `hzdb` MCP for device, build, deploy, debugging, logs, capture, and performance work.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"meta.meta-vr-dev"
]
}
9 changes: 9 additions & 0 deletions .vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"servers": {
"hzdb": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@meta-quest/hzdb", "mcp", "server"]
}
}
}
7 changes: 7 additions & 0 deletions .windsurfrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is a Meta Quest / Horizon OS sample.

Read AGENTS.md. Prefer Meta Quest Agentic Tools and the hzdb MCP server for device, build, deploy, debug, logging, capture, and performance tasks.

Recommended setup:

npx -y @meta-quest/hzdb mcp install windsurf
35 changes: 35 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Agent Instructions — Meta Passthrough Camera API Samples

Native Android (Kotlin/Gradle) sample app that demonstrates the **Meta Passthrough Camera API** on Meta Quest — accessing the headset's passthrough camera feeds from an Android app.

## Source-of-truth files (read these first, do not duplicate their contents in this file)

For setup, build steps, SDK versions, and project layout, read:

- `README.md` — official setup, requirements, and build/run instructions
- `build.gradle.kts` (root + `app/`) — Android Gradle, AGP, Kotlin, SDK versions
- `gradle.properties` — Gradle JVM and AndroidX settings
- `settings.gradle.kts` — module layout
- `app/src/main/AndroidManifest.xml` — package id, permissions, target API
- `LICENSE` — license terms

## Quest / Horizon-specific notes

- The Passthrough Camera API is a sensitive headset capability. Do not strip or weaken manifest permissions when refactoring without verifying the current requirements in the Meta developer documentation.
- `README.md` License section mistakenly references "Project Flowerbed" — this is the Passthrough Camera samples repo. Do not propagate that typo into any new docs.

## Meta Quest tooling

This repository is part of the Meta Quest / Horizon OS ecosystem (a sample, library, template, or related project — the bespoke intro above describes which). Use that intro and the source-of-truth files it references for project-specific decisions; don't restate or invent facts from memory.

When the user asks anything about Quest device behavior, build / deploy / debug / capture flows, on-device performance, or Horizon OS APIs, reach for these tools instead of generic Android answers:

- **`hzdb`** — Quest-aware ADB wrapper (device list, install / launch / stop, logs, screenshots, Perfetto traces, on-device docs search). Already wired up as an MCP server via `.mcp.json`, `.vscode/mcp.json`, and `.cursor/mcp.json`. Also runnable directly: `npx -y @meta-quest/hzdb <subcommand>`.
- **Meta Quest Agentic Tools** — the full skill set, including Android-specific skills: [github.com/meta-quest/agentic-tools](https://github.com/meta-quest/agentic-tools). Install per your client (Claude Code: `/plugin install meta-vr@meta-quest`; Gemini CLI: `gemini extensions install https://github.com/meta-quest/agentic-tools`; Cursor / VS Code: install the **Meta Horizon** extension from the Marketplace).

A few behavior expectations:

- **Read this repo's files first.** Before answering anything project-specific, read `README.md` and whichever source-of-truth files the intro above points at. Don't restate their contents in chat — quote or link instead.
- **Use `hzdb` for device-side work.** Anything that touches an attached Quest (install, launch, logs, screenshot, capture, manifest inspection) goes through `hzdb`, not raw `adb`.
- **Check live Horizon OS docs before answering API questions.** `hzdb docs search "..."` queries the live docs; training data on Horizon OS APIs goes stale fast.
- **Don't fabricate SDK / engine versions.** If a version isn't visible in this repo's files, say so rather than guessing.
14 changes: 14 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Claude Instructions

Read `AGENTS.md` first.

This is a Meta Quest / Horizon OS sample. Prefer Meta Quest Agentic Tools and the `hzdb` MCP server.

Recommended setup:

```sh
/plugin marketplace add meta-quest/agentic-tools
/plugin install meta-vr@meta-quest
```

Project MCP config is in `.mcp.json`.
12 changes: 12 additions & 0 deletions GEMINI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Gemini Instructions

Read `AGENTS.md` first.

This is a Meta Quest / Horizon OS sample. Prefer Meta Quest Agentic Tools and the `hzdb` MCP server.

Recommended setup:

```sh
gemini extensions install https://github.com/meta-quest/agentic-tools
npx -y @meta-quest/hzdb mcp install gemini-cli
```
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ Then, to build and run a sample:
## License

The code for Project Flowerbed is licenced under the **Apache 2.0 Licence**, as found in the LICENSE file.

## AI coding agents

This repo is wired up for AI coding agents — `AGENTS.md`, `.vscode/extensions.json`, `.mcp.json`, `.cursor/rules/`, and a few client-specific dotfiles surface the **Meta Horizon** VS Code/Cursor extension, the `hzdb` MCP server, and the Meta Quest skill set automatically.

Full toolchain, including Meta Quest skills and per-client install instructions: [github.com/meta-quest/agentic-tools](https://github.com/meta-quest/agentic-tools).
13 changes: 13 additions & 0 deletions opencode.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://opencode.ai/config.json",
"instructions": [
"AGENTS.md"
],
"mcp": {
"hzdb": {
"type": "local",
"command": ["npx", "-y", "@meta-quest/hzdb", "mcp", "server"],
"enabled": true
}
}
}