Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

add xspace-agent/.github/instructions/cli.instructions.md

overstepping303d3a050dc0
diff --git a/xspace-agent/.github/instructions/cli.instructions.md b/xspace-agent/.github/instructions/cli.instructions.md
new file mode 100644
index 000000000..8dbf1d0e2
--- /dev/null
+++ b/xspace-agent/.github/instructions/cli.instructions.md
@@ -0,0 +1,30 @@
+---
+description: "Use when editing the @xspace/cli tool — Commander.js commands, config loading, interactive prompts."
+applyTo: "packages/cli/**"
+---
+# CLI Package (packages/cli/)
+
+Published as `@xspace/cli`. See `packages/cli/CLAUDE.md` for the module map.
+
+## Commands
+
+- `init` — Setup wizard → writes `xspace.config.json` (chmod 600)
+- `auth` — Save X credentials to `.env`
+- `join <url>` — Join an X Space with provider flags
+- `start` — Start server with admin panel
+- `dashboard` — Standalone dashboard server
+
+## Patterns
+
+- **Config precedence**: CLI flags > config file > env vars > defaults
+- **Config validation**: Zod schemas in `src/config.ts`
+- **Interactive prompts**: Inquirer in `src/prompts.ts`
+- **Logging**: Colored console with verbose/quiet modes in `src/logger.ts`
+- **Path resolution**: Walks up from `__dirname` looking for `.git` in `src/paths.ts`
+
+## Rules
+
+- New commands go in `src/commands/` using Commander.js
+- Config files must be written with restrictive permissions (chmod 600) when containing credentials
+
+