tribal setup-agents
Writes a TribalMind usage snippet into agent instruction files (e.g., CLAUDE.md, .cursorrules) so your AI coding agents automatically recall and remember knowledge.
Each agent provider receives a tailored prompt — for example, Claude Code is told to use TribalMind alongside its native memory, while other providers are told TribalMind is their memory system.
tribal setup-agents [OPTIONS]Options
Section titled “Options”| Option | Description |
|---|---|
--agent, -a | Agent config file to generate (can be repeated) |
--all | Generate snippets for all supported agents |
--project-root, -p | Project root path (defaults to git root or CWD) |
--list, -l | List supported agent config files and exit |
Supported agents
Section titled “Supported agents”| File | Agent | Snippet type |
|---|---|---|
CLAUDE.md | Claude Code (root) | Claude-specific (dual-save) |
.claude/CLAUDE.md | Claude Code (repo-scoped) | Claude-specific (dual-save) |
AGENTS.md | Cross-agent standard | Default |
.cursorrules | Cursor (legacy) | Default |
.cursor/rules/tribalmind.md | Cursor (project rules) | Default |
.windsurfrules | Windsurf | Default |
.github/copilot-instructions.md | GitHub Copilot | Default |
Examples
Section titled “Examples”# Auto-detect existing files or prompt for selectiontribal setup-agents
# Just Claude Codetribal setup-agents -a CLAUDE.md
# Multiple agentstribal setup-agents -a CLAUDE.md -a .cursorrules
# All supported agentstribal setup-agents --all
# Show what's supportedtribal setup-agents --listHow it works
Section titled “How it works”- Detects which agent config files already exist in your project (or prompts you to choose)
- Generates a provider-specific snippet with instructions for
tribal recallandtribal remember - Appends the snippet to each selected file (or creates the file if it doesn’t exist)
After setup, your agents will:
- Recall knowledge when investigating issues or debugging
- Remember knowledge when they discover gotchas, fixes, or important context
See also
Section titled “See also”- Agent Integration guide — detailed walkthrough for each provider