agentleFS
agno-agiagno-agi/coda/CLAUDE.md

coda

CLAUDE.md63 starsChanged 8 months agoApache-2.0View on GitHub

A code companion that lives in Slack. Understands code by searching it directly on disk, reviews PRs and branches, triages issues, learns team conventions, and contributes code via isolated git worktrees. The canonical specification is docs/SPEC.md. All other documentation derives from it. All agents share the same coda_learnings knowledge base via individual LearningMachine instances.

  • Reads credentials

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
  1. Very specific:

    All agents share the same coda_learnings knowledge base via individual LearningMachine instances.

    line 36

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Coda

A code companion that lives in Slack. Understands code by searching it directly on disk, reviews PRs and branches, triages issues, learns team conventions, and contributes code via isolated git worktrees.

The canonical specification is docs/SPEC.md. All other documentation derives from it.

Architecture

  • Team definition: coda/team.py (Coda team leader, Coordinate mode)
  • Member agents: coda/agents/coder.py (Coder), coda/agents/explorer.py (Explorer), coda/agents/planner.py (Planner), coda/agents/researcher.py (Researcher), coda/agents/triager.py (Triager)
  • Shared settings: coda/settings.py (DB, REPOS_DIR, learnings KB)
  • API server: app/main.py (FastAPI + AgentOS + Slack interface)
  • Custom tools: coda/tools/git.py (GitTools)
  • GitHub tools: Agno built-in GithubTools (scoped per agent)
  • Database: PostgreSQL + pgvector (for learnings only, not code indexing)
  • Repos: /repos (cloned at startup, searched on disk; persistent volume in local dev, ephemeral in production)

Team Structure

Coda (Team, Coordinate, gpt-5.6-sol)
├── Coder — writes code in worktrees, opens PRs
├── Explorer — searches code, traces flows, reviews PRs/branches (read-only)
├── Planner — breaks feature requests into ordered GitHub issues
├── Researcher — searches the web for docs, errors, APIs, best practices
├── Triager — categorizes, labels, comments on, and closes issues
└── [leader responds directly for greetings/simple questions]
  • Coda (leader): Triages requests, delegates to specialists, synthesizes results
  • Coder: CodingTools (full), GitTools, GithubTools (write), ReasoningTools
  • Explorer: CodingTools (read-only), GitTools, GithubTools (read-only), ReasoningTools
  • Planner: CodingTools (read-only), GitTools (read-only), GithubTools (issue creation), ReasoningTools
  • Researcher: ParallelTools (web search + extract), ReasoningTools
  • Triager: CodingTools (read-only), GitTools (read-only), GithubTools (issue management), ReasoningTools

All agents share the same coda_learnings knowledge base via individual LearningMachine instances.

Key Concepts

  • Coordinate mode: Leader picks the right specialist, delegates with context, synthesizes results. Triager handles issue management; Explorer handles code exploration and PR review; Coder handles code changes.
  • CodingTools: file read/write/edit, shell, grep, find, ls (Coder: all=True, Explorer: read-only)
  • GitTools: git log/diff/blame/show, repo listing, branch listing/diffing, worktree lifecycle (create/list/remove), safe push (coda/* only)
  • GithubTools: Agno built-in — PR read/review/create/comment, issues read/comment, code search (scoped via include_tools)
  • ReasoningTools: think tool for complex reasoning chains
  • LearningMachine: saves and retrieves team conventions, patterns, gotchas (AGENTIC mode)
  • Agentic Memory: tracks user preferences and observations (team-level only)
  • Worktrees: each coding task gets a coda/* branch via git worktree add
  • Scheduled Tasks: repo sync (every 5 min), daily issue triage (4 AM UTC), daily digest (8 AM UTC)
  • Daily Issue Triage: uses the Triager agent (fetch → Triager agent → Slack). The same agent that handles interactive triage runs the daily scan — categorizes, labels, comments, but does NOT close issues during automated runs. Config: TRIAGE_CHANNEL env var.
  • Daily Digest: morning activity summary — merged PRs, open PRs, new issues, stale issues. Pure GitHub API, no agent. Config: DIGEST_CHANNEL env var.

Structure

coda/
├── app/
│   ├── main.py          # AgentOS + Slack interface
│   └── config.yaml      # Quick prompts config
├── coda/
│   ├── team.py           # Coda team definition (leader)
│   ├── agents/
│   │   ├── coder.py       # Coder agent
│   │   ├── explorer.py    # Explorer agent
│   │   ├── planner.py     # Planner agent
│   │   ├── researcher.py  # Researcher agent
│   │   └── triager.py     # Triager agent
│   ├── settings.py       # Shared DB, paths, knowledge
│   └── tools/
│       └── git.py        # GitTools toolkit
├── db/
│   ├── session.py        # PostgreSQL session factory + knowledge factory
│   └── url.py            # Database URL builder
├── tasks/
│   ├── sync_repos.py     # Repo sync (every 5 min)
│   ├── review_issues.py  # Issue triage (daily)
│   └── daily_digest.py   # Activity digest (daily)
├── evals/
│   ├── run.py            # Unified eval runner
│   └── cases/            # Test cases by category (security, routing, exploration, synthesis, refusal)
├── docs/
│   ├── SPEC.md           # Canonical specification
│   ├── GITHUB_ACCESS.md  # GitHub PAT setup guide
│   └── SLACK_CONNECT.md  # Slack app setup guide
├── scripts/
├── compose.yaml
├── Dockerfile
├── repos.yaml            # Repository configuration
├── pyproject.toml
└── requirements.txt

Running

docker compose up -d --build

Connect via Slack (see docs/SLACK_CONNECT.md) or CLI (python -m coda).

Setup Flow

  1. Clone repo
  2. Configure .env (OpenAI key, GitHub PAT)
  3. Configure repos.yaml (which repos to learn)
  4. Run locally (docker compose up -d --build)
  5. Connect to Slack (docs/SLACK_CONNECT.md — requires app to be running first)
  6. (Optional) Set TRIAGE_CHANNEL in .env for daily issue triage — see docs/SPEC.md § Daily Issue Triage
  7. Deploy to cloud (optional)
  8. Secure production (JWT_VERIFICATION_KEY from os.agno.com)

Local Development

./scripts/venv_setup.sh && source .venv/bin/activate
docker compose up -d coda-db
python -m coda  # CLI mode

Commands

./scripts/venv_setup.sh && source .venv/bin/activate
./scripts/format.sh      # Format code
./scripts/validate.sh    # Lint + type check
python -m coda           # CLI mode
python -m evals.run                    # Run all evals
python -m evals.run --category security  # Run single category
python -m evals.run --verbose            # Show details

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesOpenAI API key
GITHUB_ACCESS_TOKENYesFine-grained PAT (Contents RW, PRs RW, Metadata R)
SLACK_TOKENNoSlack bot token
SLACK_SIGNING_SECRETNoSlack request verification
DB_*NoDatabase config (defaults to localhost)
PARALLEL_API_KEYNoParallel API key for web research (Researcher agent)
REPOS_DIRNoPath to cloned repos (default: /repos in Docker)
TRIAGE_CHANNELNoSlack channel ID for daily issue triage (e.g. C0ADMCGSJ8H)
DIGEST_CHANNELNoSlack channel ID for daily activity digest
JWT_VERIFICATION_KEYProductionRBAC public key from os.agno.com

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.