logbook

v0.8.0
io.github.promptwheel-ai/logbook Checked 11 hours ago Published 26 days ago

Git-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.

ParameterTypeDescription
repostringabsolute 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.

ParameterTypeDescription
sha *stringthe commit being explained (any unique prefix)
why *stringthe inferred cause, one sentence, specific (max 400 chars)
bystringwho inferred it (model/agent name)
evidenceFilestringrequired literal changed path when side=diff; omit for message
repostringabsolute 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…
sidestringrequired when span is present: where the exact evidence quote occurs
spanstringoptional 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.

ParameterTypeDescription
repostringabsolute 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.

ParameterTypeDescription
downgradenumbermin assertion downgrades
filestringlegacy single substring match against files touched
filesarrayfile substrings; matches events touching any supplied path
grepstringsubstring match against commit subject
limitintegerat most 1000; for complete coverage page through logbook_context instead
repostringabsolute 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…
revertboolean
sincestring
suppressbooleanonly events that added suppressions
untilstring
weakennumbermin 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.

ParameterTypeDescription
cursorstringopaque NEXT cursor from the previous page; rejects stale or changed queries
downgradenumbermin assertion downgrades
filestringlegacy single substring match against files touched
filesarrayfile substrings; matches events touching any supplied path
grepstringsubstring match against commit subject
repostringabsolute 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…
revertboolean
sincestring
suppressbooleanonly events that added suppressions
untilstring
weakennumbermin net assertions removed