Loch prototypes conversation-level blame for Claude Code changes
state: seedheat: lowuncertainty: mediumrelevance: mediumconversation-provenance coding-agents developer-toolsLochness.dev
What is this?
Loch is an experimental developer tool by the developer writing on Stay Caffeinated and linked to ness.dev. In a post dated November 9, 2026, the developer says Loch hooks into Claude Code, associates file changes with individual conversation turns, and offers `loch blame` to show the request behind changed lines and `loch ask` to fork that conversation with its context. The post describes the tool as very experimental: Claude Code is the only implemented harness, while support for other harnesses and editor integrations are plans, not current features. Conversation data is stored locally in `.loch/`, with optional shared S3 syncing; the author warns secret removal is imperfect. Evidence is the developer’s post, surfaced via Hacker News; no independent adoption or performance evidence is supplied.
Why it matters
Loch explores a provenance layer for agent-written code: instead of tracing a change only to a commit or person, developers could inspect the agent conversation that produced it and continue from that context. That could make review, debugging, and handoffs in collaborative agent workflows more accountable and less context-poor. For now, it is a narrow, experimental Claude Code prototype, and sharing transcripts raises a real secrets-handling concern.
Current assessment
The developer’s post reports a prototype that links Claude Code conversation turns to file changes. Its current commands attribute file ranges to sessions and let a user fork the session behind a line with a follow-up question. The post says logs are compressed in `.loch/`, can optionally sync through shared S3, and that secret scrubbing is not fully reliable. The author intends to add subagent handoffs, other harnesses, and integration with ness and VS Code-like editors; these are future plans. The supplied web results point to Claude Code’s own edit/session management and other transcript-inspection tools, but do not independently verify Loch or establish its adoption. The notable possibility is conversational provenance as a collaboration primitive for agent-authored code; its practical reach, reliability, privacy safeguards, and compatibility remain unverified.
Measured heat
now 0 pts/hpeak 5 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 164h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p31 vs 2105 stories at the 96h mark (now 164h old) — ahead of a100-inference-hillclimb (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Git Blame, but for ConversationsRetrieved article excerptOpen article · Retrieved 2026-11-19T19:23:44.394044+00:00 Click anywhere to close
☕ Stay Caffeinated
# git blame, but for conversations
**the short story:**
Last week I wrote a brief post about how the future of agentic editing is [multiplayer](https://www.staycaffeinated.com/2026/11/05/the-future-is-multiplayer). I believe in the same way that
git allowed multiplayer editing before, we need to build a new primitive that syncs the conversations along with the file changes.
I have prototyped a tool ([loch](https://github.com/ness-dev/loch)) which hooks into claude code (other harnesses coming soon) and tracks file changes per conversation
turn. You can `loch blame <file>` to figure out which agent made a change, and `loch ask <file:line>` to resume the conversation that made the change.
In its current state it’s useful for:
1. Re-addressing an agent if a problem comes up. New bugs can be fixed with the context of the previous agent
2. Reviewing a colleague’s chat alongside their change
In the future I intend to add:
1. Easy tooling so that a new agent can ask the old one in a “subagent” pattern
2. Harness agnostic. The chat logs are already stored agnostically, but I only built the transformer for claude code JSONLs
3. Integration into [ness](https://getness.dev) and vscode-likes so that you can see the blames in-context
---
**the slightly less short story:**
In [the future is multiplayer](https://www.staycaffeinated.com/2026/11/05/the-future-is-multiplayer) I said we are going to be checking in our conversations.
More and more I find myself wishing I could just talk to the chat who made a change to figure out the context, to debug a new issue,
or to continue a conversation when I have feedback in a pull request. So I built [loch](https://github.com/ness-dev/loch).
**1. hook it up**
```
loch install # Installs hooks into claude code (other harnesses coming soon)
loch backfill # Attempts to link previous chats based on all of your locally stored sessions
```
Conversations are stored and compressed into `.loch/`. They can be synced to a shared S3 backend if you’d like to share with teammates. WARNING: I
try to clean secrets out of chat logs, but it’s obviously not 100% successful. I really recommend you just don’t give agents access to secrets.
From there, two basic primitives have been added on top:
**2. blame a file**
```
$ loch blame myfile.py
loch/format.py
1-2 45b565e Add loch format v1 and the Claude Code ingest converter
session 37d467e5 — asked: "I would prefer this tool to be agnostic of the editor that surrounds it…"
19-100 6eb7b0d Canonicalize per RFC 8785, fold agent events into facts
session 37d467e5 — asked: "honeslty none of those seem like open questions they all seem like you …"
```
Instead of just a commit and an author, every block of lines comes with the request that led to it. Typos included.
**3. ask it (or resume a chat)**
```
$ loch ask myfile.py:105 "why did you write this by hand instead of using json.dumps?"
forked session 37d467e5, which made 6eb7b0d, to its end: 765 records, as e87ec144-3a54-4d0e-8cd4-a30e2d2cc020
⋮ (the rest of the original conversation)
> why did you write this by hand instead of using json.dumps?
⏺ I wrote format.canonical by hand because json.dumps doesn't match RFC 8785: it
prints floats in Python's exponent forms (1e-05 instead of 0.00001), sorts keys by
code point instead of UTF-16 code units, and writes lone surrogates raw instead of
escaping them, so a second implementation in another language couldn't reproduce
the ids byte for byte.
```
It forks the original conversation (rather than resuming it) and will allow you to speak to an agent that has exactly the same context.
---
So far this is very experimental. I would love people’s thoughts on this direction. | frenchie4111 | 2 | 0 |
| 🟧 echo.github ⭐ | The article links to loch and describes it as a prototype. The furthest-back primary artifact identified is the project’s GitHub repository, | Ness Dev | — | — |
Interpretation history
2026-11-19T19:24:58Z
audience grounding: medium — Loch explores a provenance layer for agent-written code: instead of tracing a change only to a commit or person, developers could inspect the agent conversation that produced it and continue from that context. That could make review, debugging, and handoffs in collaborative agent workflows more accountable and less context-poor. For now, it is a narrow, experimental Claude Code prototype, and sharing transcripts raises a real secrets-handling concern.
Decision trace
- 11-20 06:26attention_candidatecreate
- 11-20 06:26promote_anchororigin walk conf 0.83
- 11-20 06:24groundLoch explores a provenance layer for agent-written code: instead of tracing a change only to a commit or person, developers could inspect the agent conversation that produced it and continue from that
- 11-20 06:24createThe prototype offers a concrete way to recover the context behind agent-written code, though it currently targets Claude Code and is described as experimental.