TMF early preview: making stale source context visible in coding-agent workflows #7105
Replies: 1 comment 1 reply
This is a genuinely interesting interaction design question, and it's relevant to anyone building a code-aware copilot UI regardless of the underlying staleness detection mechanism. Let me share some thoughts from the CopilotKit perspective, then address your specific UI question. How CopilotKit surfaces context todayCopilotKit's context system (via
So the framework's current answer to staleness is: don't embed it, fetch it dynamically via a tool. There's no built-in mechanism for surfacing which previously-read context has since changed. On your UI questionYour three options — status badge, re-read action, tool trace — map to a well-known tradeoff in ambient vs. actionable notifications. Here's how I'd think about each in a copilot chat interface: Small status beside the source reference
Requested re-read action (inline prompt)
Tool trace only
My read: a hybrid works best — a non-blocking inline indicator (e.g., a small "context may be stale" badge on the affected reference) that expands into a re-read action on click. This avoids flooding while still surfacing the signal to users who are paying attention. The tool trace should always be present for debuggability regardless. The precision limitation you mentioned
This is the crux of the UI problem. If the stale indicator fires on unrelated methods, users will start ignoring it — the classic cry-wolf failure mode. I'd suggest suppressing the indicator until precision crosses a threshold you're comfortable with, or being explicit in the UI: "This file changed; the specific method is uncertain." Honest uncertainty is more trustworthy than false precision. If you do build a CopilotKit integrationThe natural integration point would be a custom tool that queries TMF's stale bindings and returns source locations, combined with a Happy to dig into any of these angles further. What's the primary user persona you're designing for — the developer actively reviewing the agent's reasoning, or someone who mostly just wants the output? 🤖 Generated by CopilotKit AI Support · Documentation Was this helpful? React with 👍 or 👎 |
Uh oh!
There was an error while loading. Please reload this page.
Disclosure: I work on TMF (True Memory Fragments), an open-source early preview for source-context freshness. This is not a CopilotKit integration announcement.
For developers building coding-agent interfaces: how do you show that an agent's earlier source context no longer matches the current checkout?
TMF binds indexed context to source evidence in an explicitly selected working tree. When that evidence changes, it returns a stale indication and source locations to revisit. In our real Guava test, a persistent agent read the old code, resumed after an upstream change, queried the stale bindings, re-read the current implementation, and wrote regression coverage passing 60 checks. The workflow followed an explicit protocol; this is not a speed claim or an enforced write barrier.
The interface question seems relevant to this community: should a stale indication appear as a small status beside the affected source reference, a requested re-read action, or only in the tool trace? We want to avoid both silently trusting old context and flooding users with unrelated warnings. Our current reading slice can include unrelated methods, so precision remains a limitation.
Experiment write-up · Pinned early-preview guide
I would appreciate feedback from anyone building a code-aware copilot. No CopilotKit adapter, UI component, or AG-UI integration has been implemented or validated; I am asking about the interaction before proposing one.
All reactions