logbook
v0.8.0Git-history memory for coding agents: reverts, weakened tests, hot spots, and unreviewed notes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
logbook_digest
The repo's history digest: hotspots, do-not-retry reverts, suppression ledger, fragile areas, notable events, per-file history. Use when starting work in an unfamiliar repo, before a refactor or large change, or when deciding whether green tests can be trusted.
| Parameter | Type | Description |
|---|---|---|
repo | string | absolute path to the git repository; defaults to the server's working directory, and must be inside it (or a root listed in LOGBOOK_MCP_ROOTS); when that directory is part of a repository (it holds fi… |
logbook_annotate
Persist a machine-authored, explicitly unreviewed note after investigating a commit. It appears immediately in the repo digest. Optional quoted evidence is raw-object verified.
| Parameter | Type | Description |
|---|---|---|
sha * | string | the commit being explained (any unique prefix) |
why * | string | the inferred cause, one sentence, specific (max 400 chars) |
by | string | who inferred it (model/agent name) |
evidenceFile | string | required literal changed path when side=diff; omit for message |
repo | string | absolute path to the git repository; defaults to the server's working directory, and must be inside it (or a root listed in LOGBOOK_MCP_ROOTS); when that directory is part of a repository (it holds fi… |
side | string | required when span is present: where the exact evidence quote occurs |
span | string | optional exact contiguous quote from the commit message or changed blob |
logbook_audit
What is STILL suppressed in HEAD and since when (blame-dated), with re-silencing fight logs. Use when asked what tests are skipped, what debt is live, or whether a suppression keeps coming back.
| Parameter | Type | Description |
|---|---|---|
repo | string | absolute path to the git repository; defaults to the server's working directory, and must be inside it (or a root listed in LOGBOOK_MCP_ROOTS); when that directory is part of a repository (it holds fi… |
logbook_query
Filter the full commit-event record with precision. Start with all relevant files + event type before broad grep. Repeated paths use OR; other filters use AND. Returns up to `limit` matches, default 100, with exact counts and explicit truncation recovery.
| Parameter | Type | Description |
|---|---|---|
downgrade | number | min assertion downgrades |
file | string | legacy single substring match against files touched |
files | array | file substrings; matches events touching any supplied path |
grep | string | substring match against commit subject |
limit | integer | at most 1000; for complete coverage page through logbook_context instead |
repo | string | absolute path to the git repository; defaults to the server's working directory, and must be inside it (or a root listed in LOGBOOK_MCP_ROOTS); when that directory is part of a repository (it holds fi… |
revert | boolean | |
since | string | |
suppress | boolean | only events that added suppressions |
until | string | |
weaken | number | min net assertions removed |
logbook_context
Return the same filtered history order as logbook_query in compact, bounded pages for agent context. Pass all relevant paths in files; paths use OR and other filters use AND. This is deterministic delivery, not relevance ranking. Repeat identical filters with every NEXT cursor until END complete when completeness matters.
| Parameter | Type | Description |
|---|---|---|
cursor | string | opaque NEXT cursor from the previous page; rejects stale or changed queries |
downgrade | number | min assertion downgrades |
file | string | legacy single substring match against files touched |
files | array | file substrings; matches events touching any supplied path |
grep | string | substring match against commit subject |
repo | string | absolute path to the git repository; defaults to the server's working directory, and must be inside it (or a root listed in LOGBOOK_MCP_ROOTS); when that directory is part of a repository (it holds fi… |
revert | boolean | |
since | string | |
suppress | boolean | only events that added suppressions |
until | string | |
weaken | number | min net assertions removed |