The project is in a healthy, maintained state
Agents leave scraps everywhere: logs, diffs, notes, results. coat collects them, records where each one came from at the moment it was made, and stitches them into a single self-contained HTML page. Provenance lives in an append-only hash-chained ledger, every source keeps its own patch color, and anywhere two agents covered the same ground is marked as a seam, open until a person says it is settled. Wires itself into Claude Code's hooks so a session collects itself.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

coat-of-many-colors

Stitches what your agents left behind into one thing you can read.

Agents leave scraps everywhere โ€” logs, diffs, notes, results โ€” and then you're the one who has to work out what actually happened. coat collects the scraps, records where each one came from at the moment it was made, and stitches them into a single self-contained HTML page.

$ coat add --from "bundle exec rubocop -A" --label "autocorrect" --agent linter
๐Ÿงต stitched in "autocorrect" from linter
   touched lib/parser.rb, lib/cli.rb

$ coat add --from "claude -p 'harden the parser'" --label "harden" --agent refactorer
๐Ÿงต stitched in "harden" from refactorer
   touched lib/parser.rb

$ coat seams
๐Ÿชก 1 mended seam
   lib/parser.rb  โ†  linter, refactorer

$ coat build --title "Overnight run, 26 August"
๐Ÿงฅ coat.html โ€” 4 patches, 1 mended

Install

gem install coat-of-many-colors

Commands

Command What it does
coat add --from CMD Run CMD, keep its output as a piece
coat add --file PATH Take an existing file as a piece
coat pieces List the scraps collected so far
coat seams Where two sources touched the same ground
coat build Stitch the coat into one HTML file
coat verify Walk the hash chain and report the first break

Options for add: --label TEXT, --agent NAME, --claims A,B, --cwd DIR. Options for build: -o PATH, --title TEXT.

Provenance is captured, not reconstructed

coat add --from runs the command itself. That's the whole point โ€” the command, the working directory, the exit status, the duration, the output, and its SHA-256 are all recorded at the moment the scrap is made. Nothing is inferred afterward from a file lying around, because after the fact you can only record what you can guess.

Everything lands in .coat/ledger.jsonl, append-only, one JSON object per line, each entry carrying the hash of the entry before it:

{"ts":"2026-08-26T04:12:03Z","event":"piece","label":"autocorrect","agent":"linter","kind":"command","cmd":"bundle exec rubocop -A","exit":0,"duration_s":6,"body":"0001-autocorrect.txt","body_sha256":"9c2โ€ฆ","claims":["lib/parser.rb"],"seq":1,"prev":"000โ€ฆ","hash":"a1fโ€ฆ"}

A coat is evidence of what your agents did. Its provenance should be at least as hard to quietly rewrite as the work it describes. coat verify walks the chain and tells you the first entry that doesn't hold.

Mended seams

If two different agents touch the same file, that's a mended seam. coat shows both patches, marks them, and lists the seam at the top of the document.

It does not pick a winner. Surfacing the disagreement is the value; deciding who was right is a judgment call a tool has no business making.

Claims come from git โ€” coat digests the contents of everything git reports as changed, before and after the command. Content, not git status codes: a file an earlier agent already dirtied stays M no matter how many more agents rewrite it, so status codes can't see the second edit, which is the exact case this feature exists for. Outside a git checkout, pass --claims.

The PATCHWORK style

The output has its own look, and the metaphor does real work in it:

  • Every patch is bordered with a running stitch โ€” a dashed seam in thread color.
  • Every source keeps its own color, derived from a hash of its name, so the same agent is the same color in every build on every machine. Color is provenance; the header strip doubles as the legend.
  • An overlap is drawn as a mended seam โ€” double-stitched in red thread, with the contested path underlined in the metadata.
  • A command that exited non-zero is torn, not hidden. A failed step is still evidence.
  • Warm linen background, woven texture drawn in CSS, serif body, mono for anything a machine wrote. Light and dark, honoring both prefers-color-scheme and an explicit data-theme override.
  • Every coat opens with a line from Dolly โ€” a saying or a single lyric, picked at random per build.

One file, no build step, no external requests. See example.html.

Development

bundle install
rake test

In memoriam: Dolly Parton

Named for Coat of Many Colors, which she wrote in 1971 on the back of a dry-cleaning receipt from Porter Wagoner's suit, on the tour bus. She has called it her favorite of everything she wrote.

It's about a coat her mother sewed out of rags people had given the family, telling her the story of Joseph while she stitched. Dolly wore it to school proudly and the other children laughed at her for being poor.

The scraps were never the point. The stitching and the story are what made them worth something. That's the whole thesis of this tool: a fragment of agent output on its own is noise, and a fragment with its origin still attached is evidence.

It's written in Ruby because Dolly was a gem.

She wrote thousands of songs, and that's the part everyone knows. The rest of it deserves saying too:

  • The Imagination Library, founded in 1995 in honor of her father, who never learned to read. It mails a free book every month to any enrolled child from birth to age five. It has given away well over 200 million books and now runs across the US, Canada, the UK, Ireland, and Australia.
  • A million dollars to Vanderbilt University Medical Center in April 2020, which helped fund the research behind Moderna's COVID-19 vaccine. Her name is in the acknowledgments of the paper.
  • The My People Fund. After the 2016 wildfires tore through Sevier County, she paid $1,000 a month for six months to every family that lost a home โ€” roughly 900 households โ€” and closed it out with a larger final check.
  • Dollywood and the Dollywood Foundation, which turned her hometown corner of the Smokies into one of its largest employers, and whose Buddy Program cut the local high school dropout rate by paying students to keep each other in school.
  • She turned down the Presidential Medal of Freedom. Twice. She said she didn't feel she'd earned it.

She also acted โ€” 9 to 5, Steel Magnolias, The Best Little Whorehouse in Texas โ€” and kept the publishing rights to her own catalog at a time when almost nobody in Nashville let a woman do that.

Keep the scraps. Keep the story with them.

License

MIT. See LICENSE.txt.