Skip to content

feat: add export_timeline tool for markdown reports - #268

Open
TerminalGravity wants to merge 2 commits into
mainfrom
feat/export-timeline-report
Open

feat: add export_timeline tool for markdown reports#268
TerminalGravity wants to merge 2 commits into
mainfrom
feat/export-timeline-report

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

Closes #5

Adds export_timeline — a new tool that generates markdown reports from timeline data.

What it does:

  • Summary stats table (event counts, correction rate, unique sessions)
  • Daily breakdown with commits, corrections, and errors highlighted
  • Tool usage frequency table (top 20)
  • Configurable period: daily, weekly, or monthly (sets default date range)
  • Relative dates supported (7days, 2weeks, etc.)
  • Optional save: true to write report to ~/.preflight/reports/

Usage:

export_timeline(period: "weekly", scope: "current")
export_timeline(period: "monthly", save: true)

Builds clean, registered in tool registry alongside the existing 24 tools.

Adds a new export_report MCP tool that generates markdown summary reports
from session timeline data. Supports daily and weekly aggregation with:

- Event statistics (prompts, corrections, commits, errors, etc.)
- Correction rate trends over time
- Per-period breakdowns with commit and error highlights
- Optional save to ~/.preflight/reports/

Closes #5
@TerminalGravity
TerminalGravity force-pushed the feat/export-timeline-report branch from 0d4d642 to 3cad081 Compare March 17, 2026 15:08
- preflight-dev --help shows usage, quick start, and one-liner setup
- preflight-dev --version prints package version
- preflight-dev status checks .mcp.json, .preflight/ dir, and env vars
- Updated README with CLI commands section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export timeline to markdown/PDF reports

1 participant