agentleFS
tirth8205tirth8205/code-review-graph/AGENTS.md

code-review-graph

AGENTS.md32k starsChanged 6 months agoMITView on GitHub

Project context (architecture, commands, conventions, tests) is in CLAUDE.md. This file holds the rules for every coding agent working in this repository. cp, mv and rm may be aliased with -i on some systems, which leaves an agent waiting for a y/n answer that never comes. Always pass the non-interactive flag: Other commands that may prompt: scp and ssh (-o BatchMode=yes), apt-get (-y), brew (HOMEBREW_NO_AUTO_UPDATE=1). This project uses bd (beads) for issue tracking. Run bd prime to see full workflow…

  • Deletes or force-pushes
  • Commits and pushes

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about tirth8205/code-review-graph

The biggest 5 of 72 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 72

Talked about on GitHub, Bluesky and Hacker News (72 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 20

15 more on Bluesky
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository9 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use bd for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists

    line 35
  2. Very specific:

    Run bd prime for detailed command reference and session close protocol

    line 36
  3. Very specific:

    Use bd remember for persistent knowledge — do NOT use MEMORY.md files

    line 37
  4. Distinctive:

    File issues for remaining work: - Create issues for anything that needs follow-up

    line 45
  5. Distinctive:

    Verify: - All changes committed AND pushed

    line 56
  6. Distinctive:

    NEVER stop before pushing - that leaves work stranded locally

    line 61
  7. Distinctive:

    NEVER say "ready to push when you are" - YOU must push

    line 62
  8. Distinctive:

    If push fails, resolve and retry until it succeeds <!-- END BEADS INTEGRATION -->

    line 63
  9. Distinctive:

    Verify the exact source when touching behavior, database logic, migrations, retries, fallbacks, recovery, or compatibility code.

    line 85
  10. Distinctive:

    When the graph and the source disagree, the source wins.

    line 87
  11. Very specific:

    Use detect_changes_tool for code review.

    line 107
  12. Very specific:

    Use get_affected_flows_tool to understand impact.

    line 108
  13. Very specific:

    Use query_graph_tool pattern="tests_for" to check coverage.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

Agent Instructions

Project context (architecture, commands, conventions, tests) is in CLAUDE.md. This file holds the rules for every coding agent working in this repository.

Non-Interactive Shell Commands

cp, mv and rm may be aliased with -i on some systems, which leaves an agent waiting for a y/n answer that never comes. Always pass the non-interactive flag:

cp -f source dest
mv -f source dest
rm -f file
rm -rf directory
cp -rf source dest

Other commands that may prompt: scp and ssh (-o BatchMode=yes), apt-get (-y), brew (HOMEBREW_NO_AUTO_UPDATE=1).

<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:ca08a54f -->

Beads Issue Tracker

This project uses bd (beads) for issue tracking. Run bd prime to see full workflow context and commands.

Quick Reference

bd ready              # Find available work
bd show <id>          # View issue details
bd update <id> --claim  # Claim work
bd close <id>         # Complete work

Rules

  • Use bd for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
  • Run bd prime for detailed command reference and session close protocol
  • Use bd remember for persistent knowledge — do NOT use MEMORY.md files

Session Completion

When ending a work session, you MUST complete ALL steps below. Work is NOT complete until git push succeeds.

MANDATORY WORKFLOW:

  1. File issues for remaining work - Create issues for anything that needs follow-up
  2. Run quality gates (if code changed) - Tests, linters, builds
  3. Update issue status - Close finished work, update in-progress items
  4. PUSH TO REMOTE - This is MANDATORY:
    git pull --rebase
    bd dolt push
    git push
    git status  # MUST show "up to date with origin"
  5. Clean up - Clear stashes, prune remote branches
  6. Verify - All changes committed AND pushed
  7. Hand off - Provide context for next session

CRITICAL RULES:

  • Work is NOT complete until git push succeeds
  • NEVER stop before pushing - that leaves work stranded locally
  • NEVER say "ready to push when you are" - YOU must push
  • If push fails, resolve and retry until it succeeds
<!-- END BEADS INTEGRATION --><!-- code-review-graph MCP tools -->

MCP Tools: code-review-graph

This project has a knowledge graph. Start with the code-review-graph MCP tools to narrow scope, then read the source. The graph is cheaper than scanning files and gives you structural context (callers, dependents, test coverage) that file search cannot.

When to use graph tools FIRST

  • Exploring code: semantic_search_nodes_tool or query_graph_tool instead of Grep
  • Understanding impact: get_impact_radius_tool instead of manually tracing imports
  • Code review: detect_changes_tool + get_review_context_tool instead of reading entire files
  • Finding relationships: query_graph_tool with callers_of/callees_of/imports_of/tests_for
  • Architecture questions: get_architecture_overview_tool + list_communities_tool

Verify in the source

  • Narrow scope with the graph, then read the source. Do not change code from graph output alone.
  • For any non-trivial change, read the implementation and the relevant tests before concluding.
  • Verify the exact source when touching behavior, database logic, migrations, retries, fallbacks, recovery, or compatibility code.
  • When the graph and the source disagree, the source wins. The graph may be stale or may not model that relationship.
  • An empty graph result can mean "not indexed" or "not statically visible", not "does not exist".

Key Tools

ToolUse when
detect_changes_toolReviewing code changes — gives risk-scored analysis
get_review_context_toolNeed source snippets for review — token-efficient
get_impact_radius_toolUnderstanding blast radius of a change
get_affected_flows_toolFinding which execution paths are impacted
query_graph_toolTracing callers, callees, imports, tests, dependencies
semantic_search_nodes_toolFinding functions/classes by name or keyword
get_architecture_overview_toolUnderstanding high-level codebase structure
refactor_toolPlanning renames, finding dead code

Workflow

  1. The graph auto-updates on file changes (via hooks).
  2. Use detect_changes_tool for code review.
  3. Use get_affected_flows_tool to understand impact.
  4. Use query_graph_tool pattern="tests_for" to check coverage.
<!-- /code-review-graph MCP tools -->

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.