Skip to content

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.

Terminal window
tribal setup-agents [OPTIONS]
OptionDescription
--agent, -aAgent config file to generate (can be repeated)
--allGenerate snippets for all supported agents
--project-root, -pProject root path (defaults to git root or CWD)
--list, -lList supported agent config files and exit
FileAgentSnippet type
CLAUDE.mdClaude Code (root)Claude-specific (dual-save)
.claude/CLAUDE.mdClaude Code (repo-scoped)Claude-specific (dual-save)
AGENTS.mdCross-agent standardDefault
.cursorrulesCursor (legacy)Default
.cursor/rules/tribalmind.mdCursor (project rules)Default
.windsurfrulesWindsurfDefault
.github/copilot-instructions.mdGitHub CopilotDefault
Terminal window
# Auto-detect existing files or prompt for selection
tribal setup-agents
# Just Claude Code
tribal setup-agents -a CLAUDE.md
# Multiple agents
tribal setup-agents -a CLAUDE.md -a .cursorrules
# All supported agents
tribal setup-agents --all
# Show what's supported
tribal setup-agents --list
  1. Detects which agent config files already exist in your project (or prompts you to choose)
  2. Generates a provider-specific snippet with instructions for tribal recall and tribal remember
  3. 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