debugbrief
Turn a debugging session into an evidence-backed Markdown report
TLDR
SYNOPSIS
debugbrief command [arguments]
DESCRIPTION
debugbrief records what you do while debugging and turns it into an evidence-backed Markdown report suitable for a pull request, a handoff, or an incident note. Unlike AI summarizers, the report is built only from recorded evidence: the commands you ran, their output, the files that changed, and the notes you added.A typical workflow is init once per project, then start to open a session, run to execute and capture commands, note to jot observations, and end to produce the report. The generated document includes a summary of test results and file changes, a red-to-green analysis with timing, a command timeline, error observations, and attempted fixes. Reports can be rendered in pr, handoff, or incident styles.debugbrief is a Python tool, typically installed with pipx install debugbrief (also available via uv tool install debugbrief or pip install debugbrief).
COMMANDS
init
Configure the project and display the workflow.start title
Begin a new debugging session with the given title.note text
Record an observation in the active session.run -- command
Execute a command and capture its output as evidence.redo
Re-execute the most recently captured command.end [--mode pr|handoff|incident]
Generate and save the report, then close the session.status
Show details of the active session.preview [--mode ...]
Display the report without closing the session.cancel [--yes]
Abandon the active session.doctor [--fix]
Validate project health and optionally repair it.recover
Fix a broken session pointer.last
Locate the most recent report.open
Display the most recent report.list
Enumerate recorded sessions.show id
Display a specific recorded session.
CAVEATS
The report reflects only what was captured through debugbrief; commands run outside debugbrief run are not included as evidence. Because output is stored verbatim, review reports for secrets or sensitive data before sharing them.
