Skip to content

Commit 580b652

Browse files
anvansterclaude
andcommitted
docs: README — add pr_context tool + usage example, update tool count to 42
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1d5bb78 commit 580b652

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Plus glob patterns for binary archives, native libraries, OS metadata, and **sec
9999

100100
---
101101

102-
## Tools (41 community + 27 pro, 17 security)
102+
## Tools (42 community + 27 pro, 17 security)
103103

104104
### Code Analysis (11)
105105

@@ -154,6 +154,12 @@ Persistent AI context across sessions — debugging insights, architectural deci
154154

155155
Pairs well with [Tempera](https://github.com/anvanster/tempera) — an episodic memory system that captures transferable debugging strategies and solutions across projects. CodeGraph's memory tools store project-scoped notes; Tempera captures cross-project BKMs (best-known methods) that improve over time.
156156

157+
### PR / Change Analysis (1)
158+
159+
| Tool | What it does |
160+
|------|-------------|
161+
| `pr_context` | **One-call PR review.** Runs git diff against base branch, finds changed functions in the graph, reports: blast radius (callers), test coverage + gaps, affected modules, diff-aware change classification (signature vs body), stale-doc warnings, complexity, commit-message hint, suggested reviewers from git blame. |
162+
157163
### Documentation (7)
158164

159165
Persistent project documentation — index design docs, search them semantically, verify code matches the design, generate architecture docs from the code graph.
@@ -207,10 +213,21 @@ codegraph_memory_store(kind: "debug_context", title: "Nginx body size limit",
207213
agentSource: "claude")
208214
```
209215

210-
**Get AI context with automatic design doc augmentation:**
216+
**Get AI context with graph compression stats + design doc augmentation:**
211217
```
212218
codegraph_get_ai_context(uri: "file:///projects/myapp/src/auth.rs", line: 42, intent: "modify")
213-
// → Code context + design_context section from indexed docs mentioning "auth"
219+
// → Code context + graphStats: {entitiesInGraph: 13555, entitiesTraversed: 47, entitiesKept: 8}
220+
// → design_context section from indexed docs mentioning "auth"
221+
```
222+
223+
**Review a PR — blast radius, test gaps, stale docs, reviewers in one call:**
224+
```
225+
codegraph_pr_context(baseBranch: "main")
226+
// → "PR changes 4 files (+263/-77, 12 functions). 37 direct callers, 8 tests, 3 untested. Risk: medium."
227+
// → test_gaps: [refresh_token, revoke_session] — functions with 0 test callers
228+
// → stale_docs: ["auth.rs described in ARCHITECTURE.md > Authentication — doc may need updating"]
229+
// → suggested_reviewers: [{author: "anvanster", lines_owned: 3200}]
230+
// → commit_hint: "feat(mcp): <describe the change>"
214231
```
215232

216233
**Narrow the tool surface for chatty sessions:**

0 commit comments

Comments
 (0)