I built Ponytrail, a local audit trail for AI coding-agent edits (github.com)

22 points by 1997roylee 2 hours ago

dwb an hour ago

I get enough of this with a pre/post tool hook that takes a jj snapshot and teaching the agent about `jj evolog`.

vcryan 2 hours ago

My entire repo is an audit trail of AI coding-agent edits

giancarlostoro an hour ago

Not only that, but Claude can undo its own changes I just never use the feature because git has me covered...

Joker_vD 29 minutes ago

Not to be confused with "Ponytail", an award-winning puzzle-platform game by Jonathan Blow.

joaoreis81 2 hours ago

And what if the changes are remote?

benny_s 2 hours ago

Have you heard of git?

1997roylee 2 hours ago

Hi everyone, I built Ponytrail, a small CLI and bundled agent skill for making AI coding sessions easier to inspect and undo.

The problem I kept hitting: git diff shows what changed, but not why the agent changed it, what outcome it expected, what check it planned to run, or how to roll back one specific action. Final summaries are often too coarse, especially after a long coding session.

Ponytrail adds a small local trail around file mutations. Before an agent creates, edits, moves, deletes, formats, or generates files, it records a pre-change snapshot: action, purpose, reason, files, expected outcome, verification plan, rollback path

After the edit, it records a post-change snapshot with what changed, what checks ran, and the result.

Everything is stored locally under .pony-trail/ as JSONL, session trees, and small before/after file copies. It does not replace git. It is more like per-action intent and rollback context for agent work.

p1024k 2 hours ago

This project looks pretty interesting! Could you share 1-2 use cases? That would help people quickly understand what it does and get started.

altmanaltman 2 hours ago

Why does this project look interesting? Very sus comment from a new account

rootnod3 2 hours ago

And why does it sound like LLM output?