@blackbelt-technology/pi-dashboard-sim-extension0.12.0
Self-Improvement Memory (SIM) for the pi harness: records why a harness edit (AGENTS.md, skills, agents, settings) was made and what it predicted, delivers past records to sessions that edit the harness, and observes outcomes from later sessions.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-dashboard-sim-extension — Self-Improvement Memory
Records why a harness edit was made, what it predicted, and whether it
worked — and gives those records back to the next agent that edits the harness.
Adapted from SIM (arXiv 2611.18856); see
docs/research/self-improvement-memory-adaptation.md.
The harness = AGENTS.md (repo root), **/.pi/skills/**, **/.pi/agents/**,
**/.pi/prompts/**, .pi/settings.json, and in the agent dir (~/.pi/agent or
PI_CODING_AGENT_DIR): AGENTS.md, skills/**, agents/**, settings.json,
pi-hermes-memory/skills/**, projects-memory/**/skills/**.
Install
Add packages/sim-extension (or the published package) to pi's extension list.
The dashboard UI is the separate pi-dashboard-sim-plugin.
What happens in a session
- Sessions that never edit the harness see nothing: the
simtool is registered inactive and nothing is injected. - On the first successful
edit/writeof a harness file (or askill_managewrite) thesimtool is activated, a machine-local unlinked draft is written, and the scope's records arrive once as asim-contextsteer (framing, 8 usage rules, problems tiered under a 12 KB budget). sim recordstores one attempt: problem, what changed, files, root-cause rationale and ≥ 1 prediction —err:<tool>:<class>(a failure that should stop recurring) or an oracle command that should pass (project scope only). Provenance (model, project, branch, pi version) and outcomes are set by the system, never by the model. Secrets, prompt-injection markers and machine paths are refused.- Records made after a web tool call are
web-derivedand withheld until a human approves them. Known limit: detection is by tool name (web_search,fetch_content,*browser*, …); web content fetched throughbash curlor read from a downloaded file is not detected.
Outcomes
pi-sim observe (or the plugin's hourly worker) reads later session logs:
- recurrence — sessions containing the signature, N = 20 before vs after;
fixed/reduced/missed/inconclusive; - oracle — later
bashruns of the command (set -o pipefail; npm test 2>&1 | tee …counts,npm test || truedoes not); latest run within 30 days decides.
Automatic outcomes are local evidence (machine-local, never committed). A
manual mark (pi-sim mark) is a committed event and overrides them.
CLI
pi-sim observe [--redo]
pi-sim view [--scope project|global] [--query text] [id]
pi-sim drafts
pi-sim link <draft-id> --problem "<name or p-id>" --rationale "<root cause>" --predict err:bash:enoent [--predict "npm test"]
pi-sim dismiss <draft-id>
pi-sim mark <attempt-id> <prediction-index> fixed|reduced|missed|inconclusive
On disk
| Path | Content |
|---|---|
<repo>/.pi/sim/attempts/*.json, events/*.json |
project records (commit them; immutable, merge-safe) |
<repo>/.pi/sim/config.json |
extra project harness globs |
| `/sim/attempts | events/` |
<agent-dir>/sim/config.json |
global globs, budget, window N, auto-observe, web tools |
<agent-dir>/sim/state/ |
drafts, signal cache, local outcomes (machine-local) |
PI_SIM_TRACE=<file> writes a JSONL trace of deliveries and reconciles.