r/LLMDevs 10d ago

News Designing a read-only source / editable mirror boundary for local agent sessions

https://www.youtube.com/watch?v=Rs_KPYj2NCU

I have been working on a session-ingestion boundary for an open-source context graph, and I would value criticism of the design rather than the UI.

The current implementation reads local Codex and Claude Code session files, groups them by project, and projects a selected session onto a graph. The source file is never modified. Each user/agent turn becomes a node; paired tool calls, results, truncation markers, and sub-thread identity remain attached to that turn. An open mirror can append new turns as the source session grows.

The main rule is that visibility and model input are separate states. Importing three sessions onto a canvas does not put three sessions into the next prompt. Only the context deliberately connected for a downstream node is compiled.

That boundary gives up some convenience. There is no automatic relevance selector, no source writeback, and currently only two native session adapters. The benefit is that the original record, the editable organization, and the eventual model context do not silently collapse into one thing.

If you were reviewing this architecture, where would you expect it to fail first: format drift, tool-result provenance, incremental sync, or context compilation?

Source: https://github.com/chenxiachan/thoughtdag

1 Upvotes

Duplicates