Grok-map
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
grokmap tracks comprehension debt: code written by AI coding agents that no person on the team has shown they understand.
How to use these tools well:
Before you change existing code in a non-trivial way, call comprehension_risk on the files or folders involved. Follow its "advice": the higher the risk, the smaller and better-explained your change should be.
When the user asks who knows a part of the code or who should review it, call who_understands.
After you finish a substantial change the user will commit, offer once (one line, never forced) to quiz them. If they agree: call quiz_brief with uncommitted=true, ask the questions one at a time as the brief describes, grade honestly, then call record_understanding with the paths the brief gives you.
Never call record_understanding without real answers from the person, never round scores up, and never record understanding for code because you wrote it. The ledger is about people.
For a branch or pull request, pr_comprehension summarizes the AI-written lines it adds and how many anyone understands. All tools are local: they read git history and the repository's .grokmap/ledger.jsonl, and make no network calls.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| comprehension_riskA | Rate how risky it is to change specific files or folders, based on how much of their AI-written code anyone on the team has shown they understand. |
| repo_statusA | Summarize comprehension debt for the whole repository: how much code is AI-written, how much of that anyone understands, and which files are riskiest. |
| who_understandsA | List the people who have shown they understand the AI-written code at a path, and who committed to it lately. |
| quiz_briefA | Build a quiz brief: the exact AI-written lines a person has not yet shown they understand, with rules for quizzing them. |
| record_understandingA | Record in the shared ledger (.grokmap/ledger.jsonl) that a person showed they understand these lines. |
| pr_comprehensionA | Summarize a branch or pull request: the AI-written lines it adds compared with base and how many of them anyone understands. |
| ai_trendA | Show how much of the code added over time was written by each AI agent versus people, per week or month. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| quiz_me | Start a short grokmap quiz on the uncommitted changes. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a distinct scope: whole-repo overview (repo_status), per-path risk (comprehension_risk), reviewer lookup (who_understands), quiz generation (quiz_brief), ledger write (record_understanding), branch/PR analysis (pr_comprehension), and time-series (ai_trend). Descriptions explicitly cross-reference siblings ("for the whole repository use repo_status", "for a risk rating use comprehension_risk"), so overlapping-sounding tools are cleanly separated. Read vs. write boundary between quiz_brief and record_understanding is stated unambiguously.
All names are snake_case and mostly follow a <subject>_<noun> shape (comprehension_risk, repo_status, quiz_brief, pr_comprehension, ai_trend). Two deviate: record_understanding is verb_noun while who_understands is a question phrase, breaking the otherwise nominal pattern. Still readable and predictable overall.
Seven tools is well-scoped for a comprehension-debt analysis server: six read-only analyses covering repo, file, person, branch, and trend views plus exactly one mutating tool. Each tool earns its place with no filler or redundant variants.
The lifecycle is well covered: assess risk, identify reviewers, quiz, record understanding, analyze PRs and trends. Minor gaps remain — there is no way to enumerate or search paths (agents must rely on riskiest_files from repo_status), and no tool to inspect or audit previously recorded ledger entries beyond the latest write.