Show HN: Grepathy – Claude made a decision nobody approved Developer Evans JP released Grepathy, an open-source tool that extracts decisions made by AI coding agents from session transcripts and commits them as markdown files alongside code, solving the problem of undocumented agent-initiated choices. The tool runs via git hooks, never sends transcripts off-device, and allows future agents to review past reasoning before editing files. Make agent-written code reviewable. When a coding agent builds a feature, it makes a bunch of small decisions along the way that you never really approved. Later someone reviews the PR and asks "why was this done this way?" and you don't know. The answer is buried in a chat transcript on your laptop, and Claude Code deletes those after 30 days by default. Grepathy reads your session transcripts locally, pulls out the decisions, and writes them to a markdown file that gets committed with your code. Now the repo can answer "why" on its own, for reviewers, teammates, and future agents. npx grepathy init Real example: on a contract project, my agent decided on its own to pre-create guest users in Clerk. It wasn't in any plan. The CTO saw it in the PR and asked me why. I had no idea, because I hadn't made that decision. With Grepathy, it would have been in the repo: Guest identities are pre-created in Clerk Status: agent-initiated — not requested in plan or prompts Touches: lib/clerk/ , db/schema/guests.ts The agent inferred this approach to simplify downstream auth checks. No explicit rationale was discussed. Risk: guest users diverge from the normal signup path. Reviewer attention: confirm whether guests should be modeled as normal users. Run grep -rn "agent-initiated" .ai/why/ and you get a list of every decision the agent made without asking anyone. You don't run Grepathy. It runs itself off hooks: js claude work normally, let the agent commit as it goes git push Grepathy writes the why file and shows it to you for review A few things worth knowing: - It works from the transcript after the fact. It never asks the agent to "log its decisions" mid-task we tried that first, agents just don't do it . - Each branch gets one file: .ai/why/