agent-brain
CLAUDE.md120 starsChanged 6 months agoMITView on GitHub
The repository-root CLAUDE.md is the single source of truth for package layout, build/test commands, the full CLI command reference, environment variables, and the git workflow. Read it first. This file holds only the one rule worth repeating and Claude-specific orientation that isn't in root. ABSOLUTE RULE: run task before-push BEFORE EVERY git push. NO EXCEPTIONS. PRs trigger expensive CI. If either check fails, fix it and re-run — do not push. Run task commands from the repo root, not a…
- Reads credentials
- Commits and pushes
In this repository6 other files it gives its agents.
- agent-brain-plugin/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/workflows/CLAUDE.mdCLAUDE.md
- mastering-python-skillSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run task commands from the repo root, not a package subdirectory (cwd scope leak).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md (Claude Code scope)
The repository-root CLAUDE.md is the single source of truth for
package layout, build/test commands, the full CLI command reference, environment
variables, and the git workflow. Read it first. This file holds only the one rule
worth repeating and Claude-specific orientation that isn't in root.
CRITICAL: NEVER PUSH WITHOUT TESTING
ABSOLUTE RULE: run task before-push BEFORE EVERY git push. NO EXCEPTIONS.
task before-push # format, lint, typecheck, tests — must exit 0
task pr-qa-gate # must pass before opening/updating ANY PRPRs trigger expensive CI. If either check fails, fix it and re-run — do not push.
Run task commands from the repo root, not a package subdirectory (cwd scope leak).
Key Files to Understand
Architecture
agent-brain-server/agent_brain_server/api/main.py— FastAPI server entry pointagent-brain-server/agent_brain_server/config/settings.py— configurationagent-brain-server/agent_brain_server/services/indexing_service.py— AST-based ingestionagent-brain-server/agent_brain_server/services/query_service.py— hybrid (BM25 + vector) search
CLI / transports
agent-brain-cli/agent_brain_cli/cli.py— CLI entry point + global--transportflagsagent-brain-cli/agent_brain_cli/commands/— command implementationsagent-brain-uds/— Unix domain socket transport;agent-brain-mcp/— MCP server (PyPI:agent-brain-ag-mcp)
Testing / validation
scripts/quick_start_guide.sh— end-to-end validation (run before any release)e2e/integration/test_full_workflow.py— integration testsAGENTS.md— AI agent guidelines for this project
Environment Setup
Required environment variables (see root CLAUDE.md for the full table):
OPENAI_API_KEY— embeddings (text-embedding-3-large)ANTHROPIC_API_KEY— code summarization (Claude Haiku)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

