08. Extending Matcha
Coming from another tool
If you already use Claude Code, Cursor, or Codex, Matcha CLI can **read** the same on-disk conventions and **import** Claude settings you choose. You do not create a MatchaCode account. You do not convert an xAI (or any Provider) login into a MatchaCode login. xAI stays an optional BYOK Provider if you choose it separately.
This is about files and sessions on this machine.
Picked up automatically
You do not have to copy these by hand. matcha inspect shows what landed and which vendor it came from.
Rules and instructions
AGENTS.md(andAgents.md,AGENT.md)CLAUDE.md,Claude.md,CLAUDE.local.md*.mdunder.matcha/rules/,.claude/rules/,.cursor/rules/- Home copies under
~/.matcha/rules/,~/.claude/rules/,~/.cursor/rules/
Deeper files win when instructions conflict. .gitignore skips ignored rule **files**; skill roots do not use gitignore.
Skills and custom commands
~/.claude/skills/,~/.claude/commands/~/.cursor/skills/- Project twins (
.claude/,.cursor/,.matcha/,.agents/) - Flat command
.mdfiles become slash commands
MCP servers
~/.claude.json.cursor/mcp.json(user and project)- Project
.mcp.json
Hooks
.claude/settings.json(andsettings.local.json).cursor/hooks.json- Matcher aliases such as
Bashstill fire
Turn a vendor surface off in ~/.matcha/config.toml:
[compat.claude]
mcps = true
skills = true
hooks = true
rules = true
[compat.cursor]
mcps = true
skills = true
hooks = true
rules = trueEnvironment equivalents: MATCHA_CLAUDE_MCPS_ENABLED, MATCHA_CURSOR_SKILLS_ENABLED, and the other MATCHA_*_*_ENABLED cells documented with configuration.
One-step Claude import: `/import-claude`
/import-claudeNo arguments (extra text is ignored). The command opens a checkbox preview of importable items from ~/.claude / .claude — permissions, environment variables, MCP servers, hooks, and paths.
Confirm writes the selected items into your .matcha config. Re-run anytime. An empty scan shows “No Claude settings found to import.” Dismissing the welcome prompt records that you opted out of silent .claude fallback for that content.
Continue a foreign session
Bundled skills (when local skills load) expose:
/resume-claude
/resume-codex
/resume-cursorUse them to continue a recent session from that tool **in this Matcha CLI session**. They are skills, not a cloud sync of those products.
Check what was discovered
matcha inspect
matcha inspect --jsonExpect rules files (path + token estimate), skills with source tags, and MCP servers tagged [claude] or [cursor] when they came from compat paths.
What not to do
- Do not treat an old xAI / Grok credential as a MatchaCode account. Import it only as an **xAI Provider** key if you want that Provider.
- Do not use
/marketplaceto install what you used in another product. Install a local plugin folder instead. - Do not expect
/flushor/dreamto recreate another tool's memory pipeline. Use/rememberand the local store.
Things you may have missed: /btw asks a side question without interrupting the current task; /rewind rolls the conversation back (file changes stay on disk).
What you should see
| You ran | Result |
|---|---|
matcha inspect in a Claude/Cursor repo | Rules, skills, MCP tagged by origin |
/import-claude | Checkbox preview; confirm writes .matcha |
/resume-claude (skill present) | Continues a recent Claude session locally |
| Any “convert my xAI account” step | Not offered — there is no MatchaCode account |