{"slug": "show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff", "title": "Show HN: Sonah, code reviewer that reads your agent's session, not only the diff", "summary": "A developer released Sonah, a code review tool that reads the AI agent's full session alongside the code diff to surface the assumptions and decisions the agent made, distributed via npm as the package getsonah. Sonah runs on an existing Claude Code or Codex subscription, with Claude preferred for its higher context window, and is invoked through commands including \"sonah doctor\" and \"sonah review --format html --output ~/review.html\". The tool targets a specific failure mode the developer encountered, in which Claude rewrote key functions while still making the test pass.", "body_md": "Hey Everyone, After getting frustrated by Claude rewriting key functions and still making the test pass, was tinkering around with a review tool, that would track the assumptions and decisions the agent took, without me digging through the entire session. So ended up building Sonah. Sonah is basically a code reviewer that not only reads the code and diff but also the agent session that wrote the code, to understand the assumptions, and decisions your agent took along the way. And highlight important parts of the code that need your attention.\n\nSonah uses your existing claude code/codex subscription (claude preferred for higher context window). You can try using below: npm install -g getsonah sonah doctor cd your-project && sonah review --format html --output ~/review.html\n\nComments URL: [https://news.ycombinator.com/item?id=50209232](https://news.ycombinator.com/item?id=50209232)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff", "canonical_source": "https://github.com/getsonah/sonah", "published_at": "2026-10-23 14:05:33+00:00", "updated_at": "2026-10-23 14:12:56.173298+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Sonah", "getsonah", "Claude Code", "Codex", "Claude", "npm"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff", "markdown": "https://wpnews.pro/news/show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff.md", "text": "https://wpnews.pro/news/show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff.txt", "jsonld": "https://wpnews.pro/news/show-hn-sonah-code-reviewer-that-reads-your-agent-s-session-not-only-the-diff.jsonld"}}