An agent hands you a finished repository. Hours of iteration, or a one-prompt paste of a finished codebase? From the outside, the two look identical.
That gap is what bylines is for. It is a small, stdlib-only Python tool that replays an agent's session transcripts and checks, line by line, whether the submitted work was really written in that session.
How it works
Give it a repository and the transcripts of the session that built it. bylines replays every write/edit call in timestamp order and reconstructs each file exactly as the session built it. Then it classifies every line by first appearance: a line is agent-authored only if its first appearance in the transcript is inside a write/edit payload. A line that first surfaced in a tool result, a file read, a shell output or a pasted blob stays external forever — later edits cannot launder it into an authored line.
On top of that, five checks:
- reproduces — enough of the final code was agent-authored, little enough came from nowhere
- in_window — the work happened inside the allowed time window
- revised — files reached their final content through real iteration, not a single paste
- coverage — every file is accounted for: authored, declared (vendored / binary / generated), or flagged unexplained
- chain — a redacted bundle's hash chain is intact: no record edited, deleted, inserted or reordered after redaction
The verdict is deterministic: same inputs, same verdict. Exit code 0 pass, 1 fail, 2 input error.
A receipt, not a policeman
The framing matters. bylines is not built to catch cheaters; it is built so honest agent work can carry proof. The author redacts the transcripts (bylines redact strips prompts and tool outputs, keeping the verdict), the bundle is hash-chained at redaction time, and bylines badge renders a static SVG to paste next to the code. A reviewer re-runs verification offline, with no account and no trust in the author required. The GitHub Action verifies a committed bundle in CI and, on pull requests, posts the verdict as a comment.
What it does not prove
This is the part worth stating plainly. bylines proves internal consistency: these transcripts reproduce this artifact under these rules. It does not prove the transcripts are authentic, that a human supervised anything, or that the timestamps are true. The hash chain proves a bundle is unchanged since redaction — it does not prove the redaction itself was honest. Forgery is possible; it is just no longer free. That is all, and it is enough to be useful.
It eats its own cooking
bylines verifies its own development session. The bundle, policy and report are committed in examples/self-verification/ — verdict PASS, authored 77.4%, revised ×8, with the honest warts documented (one design doc is mostly copied, not authored). A tampered write payload is caught by the chain check.
Try it
pipx install bylines, then:
bylines verify --repo ./myrepo --sessions ~/.claude/projects/-myrepo --harness claude-code --policy policy.toml --out report.json --md report.md
Adapters today: Muse, Claude Code, Codex, plus redacted events bundles. The roadmap is public (ROADMAP.md): external anchoring for the chain, and adapters for the remaining major harnesses.
Links: GitHub https://github.com/kaamura-ai/bylines — PyPI https://pypi.org/project/bylines/ — Marketplace https://github.com/marketplace/actions/bylines-verify
If you review agent-made PRs, run a bounty, or commission agent work — I would like to hear whether this check answers the question you actually ask, and what it gets wrong.
Top comments (0)