Compaction-Safe Working Notes
Keeps a clean external checklist (known / tried / next / never) so agents never lose the plot.
After step 12, context trimming wipes out earlier discoveries and the agent re-tries failed ideas.
Every turn starts with a crisp, fresh summary of the pinned goal, known facts, tried paths, and next step.
What It Does (In Plain English)
When an agent runs 15+ steps, chat history gets long and trimmed — causing normal agents to forget what they already tried or drift away from your goal. Working State stores a tidy external notebook outside the chat history, keeping the operator’s original goal pinned separately from the model’s own notes.
Real-World Example
- 1Operator sets a pinned goal: "Fix rounding bug without changing API schema."
- 2On step 3, the agent records what it learned in
knownand a dead approach innever. - 3On step 14, chat history trims old tool logs — but Working State re-injects the clean notebook.
- 4The agent stays focused on the original goal and finishes without drifting.
When Should You Turn It On?
Add for any multi-step task (5+ turns) like coding, investigation, or complex operations.
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-working-state@0.1.0"
kitConfigs:
working-state:
maxEntries: 20Kits It Works With
Technical Details & Configuration Options (3 settings)
| Package | @neusym/kit-working-state |
|---|---|
| Provides Ports | working-state@1 |
| Requires Ports | tasks@1 |
| Optional Ports | tools@1secrets@1 |
| Publishes Events | None |
| Owned DB Collections | working_states |
Configuration Options (kitConfigs.working-state)
| Setting | Type | Default | Description |
|---|---|---|---|
maxEntries | integer | 32 | Maximum entries per working-state list. A full tried or known list drops its oldest entry to make room, next keeps its first entries, and an update adding never rules beyond it is refused (WORKING_STATE_FULL), since a rule is never dropped. |
maxCharsPerEntry | integer | 300 | Maximum characters kept per working-state entry string after redaction. |
autoRecordTaskFailures | boolean | true | When true, terminal task failures/halts automatically append a tried entry if a working-state ledger exists for the scope. |