Live brain surgery on your agent's memory. Left to itself, Claude Code's compaction decides what survives,
and a few compactions in you can't tell what the agent still knows, let alone steer it. Workface has the agent keep a
short notes file, hands it back verbatim after every compaction summary, auto or manual, and shows it live in a
panel beside the transcript, where you cut, add or question lines before the agent wakes up with them: you choose
what survives. One install, no setup: it works with the compaction Claude Code already does.
A tranche is one long piece of work; its workface is the notes file for it, at
~/.claude/workface/<tranche>/workface.md: at most 120 lines, links first, then what is true now, and a dated
log. The agent that orchestrates the tranche keeps it current. The approach has been in daily use on long
orchestration runs, first as a skill and now as this mod, and it is kept deliberately small: see
Make it yours for where to take it further.
How it works
- The agent keeps its notes. As work moves it rewrites live state in place and logs each event through the
mod, which stamps the time. At 80% of the auto-compact threshold the mod asks it, once per compaction, to bring
the file up to date first.
- The log doesn't grow without end. Past 120 lines or 25 log entries the mod asks the agent, once, to trim:
it lifts what is still needed into live state, then
archive moves all but the last 10 entries verbatim into
the tranche's log/ folder, indexed in log/README.md with the agent's summary, so a later agent can find them.
- Compaction keeps them. On every compaction, auto or manual, the mod briefs the summarizer with the exact
text that will follow the summary, so the summary spends its words on what the notes don't hold; then it
re-attaches the notes, read fresh at that moment, right after the summary, labelled as automated context rather
than a message from you. On resume it attaches them again. A subagent's own compactions are left alone.
- You choose what survives. The panel shows the notes as the agent writes them and exactly what the summarizer
and the agent will receive. Omit a line, add an owner note or ask about one, and the next re-attach carries your
version.
Watch and steer it live
- See what it will remember. The panel shows the workface as the agent writes it.
+ marks lines written
since the last re-attach (attach, or the last compaction), and the header shows the line budget, the file's
age and commits made since it was last written. Full shows exactly what the summarizer and the agent will
receive.
- Cut what's wrong.
✕ keeps a stale or mistaken line out of what the agent gets back after compaction,
without touching the file. ↺ puts it back.
- Add what's yours.
◆ note writes - owner <time>: <your note> under ## Owner notes. The mod records
which lines you wrote and marks only those (⟨owner, verified by the workface mod⟩) when it hands the workface
over, after stripping that mark from every other line, so no agent can forge it.
- Ask about anything.
? puts a line or a whole section on your next prompt, once. It shows ✓ while pending
and a second press takes it back.
- Three tabs.
Compact puts sections on coloured bands; click one to expand it, and a long line opens in full
from its ▸. Full is the hand-over text. Browse lists every tranche, the sessions running on it, its age
and size.
- Plain Markdown, your shape. The agent shapes the sections within the 120-line budget; there is no tracker or
template to adopt, and other tools and agents can read the file.
The panel docks beside the transcript in fullscreen and sits inline above the prompt otherwise, modelled on the
/diff panel. Its colours follow your Claude Code theme (see Configure).
Install
The repository is its own marketplace: