sisi 0.2.0: the self-improvement loop, and every major harness
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.10) (push) Canceled after 0s
ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.10) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
Lessons take effect when recorded, are offered to later agents starting the same kind of work, are counted as listed and read, and are strengthened when the mistake recurs: note, rule, enforced check. `sisi cycle` consolidates them from normal use with no scheduler; `sisi improve` reports the effect. Wiring for Codex, Gemini CLI, Copilot CLI, Qwen Code, Pi, Cursor, OpenCode and rulebook loading for nine more tools, with a dry run, preflight checks and a tested uninstall guarantee. Time to delivery is measured per turn. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2ed821480
commit
7a097f94c7
29 files changed
+7001
-235
No files matched your search
@@ -15,9 +15,14 @@ and a small command-line tool, plain Python with no dependencies. What it learns
|
||||
clone, so updating never loses it.
|
||||
|
||||
**How far along this is.** The name states the goal, not the present. Today every turn is checked, measured and
|
||||
ends with a recorded lesson, and lessons are shown to every later session. The part that turns lessons into
|
||||
stronger rules and enforced checks on its own is under construction. See [Status](#status) for exactly what
|
||||
works.
|
||||
ends with a recorded lesson; each lesson takes effect at once (a field note, a draft recipe, a learned note or
|
||||
a backlog item), is offered to later agents when they start that kind of work (strong matches in full, the rest as one-line
|
||||
headings the agent chooses from), and is strengthened when the same problem recurs
|
||||
after being shown — up to an enforced check the gate runs. Consolidation (`sisi cycle`) folds lessons into the
|
||||
rulebook without growing it, and `sisi improve` reports whether any of this is working. There is nothing to
|
||||
schedule: it all runs from normal use. See [Status](#status) for exactly what works, and
|
||||
[docs/learning.md](docs/learning.md) for the loop in plain words. What is not yet shown: that this makes agents
|
||||
measurably better over weeks of real use. `sisi improve` exists to answer that, and it needs use to have data.
|
||||
|
||||
## Why it exists
|
||||
|
||||
@@ -41,7 +46,8 @@ works.
|
||||
- **An end-of-turn gate.** A hook calls `sisi verify` when the agent tries to finish. If a check fails or did not
|
||||
run, the agent is sent back with the failures. If a large change has no contract, it is sent back to write one.
|
||||
Small edits pass. After three send-backs in a row the agent is let through and the result is marked unverified,
|
||||
so a broken check cannot trap a session. Today this blocks in Claude Code only (see the table below).
|
||||
so a broken check cannot trap a session. Today this blocks in Claude Code, Codex, Gemini CLI, Copilot CLI,
|
||||
Qwen Code and Pi, and sends the agent back with a follow-up message in Cursor (see the table below).
|
||||
- **A retrospective after each piece of work.** `sisi retro` records how the work could have gone better, against
|
||||
five aims: the human could have worked at a higher level, a stronger check was possible, the human was
|
||||
interrupted more than needed, the result was not what they meant, it took longer than it had to. Retros become
|
||||
@@ -64,7 +70,8 @@ CI are meant to cover; Windows is not supported (the code imports `fcntl`).
|
||||
|
||||
`sisi install` links `bin/sisi` as `~/.local/bin/sisi`; make sure that folder is on your `PATH`, or call
|
||||
`bin/sisi` from the clone. It edits your tools' global instruction files only by adding an import line, and
|
||||
`sisi uninstall` restores the originals exactly. It skips any tool whose configuration folder does not exist.
|
||||
`sisi uninstall` restores every file you have not edited since exactly as it was, and removes only its own
|
||||
entries from a file you have edited. `sisi install --dry-run` shows every change first and makes none. It skips any tool whose configuration folder does not exist.
|
||||
|
||||
Now a first contract. Change to one of your own projects (not the sisi clone), where `sisi contract init --goal "slugify() turns titles into URL slugs"` creates a
|
||||
skeleton whose placeholder check fails until you replace it. Replace it with a real check. Here, for a small
|
||||
@@ -103,16 +110,39 @@ contract, and the gate runs it at the end of each turn.
|
||||
|
||||
## Which tools are supported
|
||||
|
||||
| Tool | What `sisi install` does | Instructions loaded | Blocking end-of-turn gate | Session-start hook |
|
||||
| Tool | Rulebook loaded | Lessons at session start | End-of-turn enforcement | How verified |
|
||||
|---|---|---|---|---|
|
||||
| Claude Code | adds an import line to `~/.claude/CLAUDE.md` and registers hooks in `~/.claude/settings.json` | yes | yes (`Stop` and `SubagentStop` hooks) | yes (`SessionStart`) |
|
||||
| Codex | links `~/.codex/AGENTS.md` to the generated rulebook | yes | no: Codex hooks are documented but not built here | no |
|
||||
| OpenCode | links `~/.config/opencode/AGENTS.md` to the generated rulebook | yes | no: no blocking hook has been verified | no |
|
||||
| Muse | nothing: its global instruction path is unconfirmed | no | unknown | no |
|
||||
| Claude Code | yes | yes | blocks | ran end to end |
|
||||
| Codex CLI | yes | yes | blocks | built from documentation; session-start hook fired live |
|
||||
| Gemini CLI | yes | yes | blocks | built from documentation |
|
||||
| GitHub Copilot CLI | yes | yes | blocks | ran end to end |
|
||||
| Qwen Code | yes | yes | blocks | built from documentation; session-start hook fired live |
|
||||
| Pi | yes | yes | blocks | built from documentation; extension loaded and tick ran live |
|
||||
| Cursor | no (no confirmed global file) | yes | sends a follow-up | built from documentation |
|
||||
| OpenCode | yes | no | unknown | built from documentation; plugin load verified live |
|
||||
| Muse Code | yes (via the Claude/Codex files) | no | unknown | not built |
|
||||
| Antigravity | via the shared Gemini file | no | unknown | not built |
|
||||
| Windsurf | pointer file | no | none | built from documentation |
|
||||
| Cline | yes | no | none | built from documentation |
|
||||
| Kiro | yes | no | none | built from documentation |
|
||||
| Zed | yes | no | none | built from documentation |
|
||||
| Goose | yes | no | none | built from documentation |
|
||||
| Amp | yes | no | none | built from documentation |
|
||||
| Grok CLI | yes | no | none | ran end to end (`grok inspect` lists the file as global) |
|
||||
| Crush | yes | no | none | built from documentation |
|
||||
| Aider | yes (via `read:` in an existing `~/.aider.conf.yml`) | no | none | built from documentation |
|
||||
| T3 Code | via provider | via provider | via provider | host app; nothing to wire |
|
||||
| Orca | via provider | via provider | via provider | host app; nothing to wire |
|
||||
|
||||
This table comes from `sisi doctor` and the wiring code (`sisi/wiring.py`). Where there is no gate, the rulebook
|
||||
still tells the agent to write and run a contract, but nothing enforces it. `sisi install` is skipped for a tool
|
||||
whose configuration folder is missing. Agent skills linked into `~/.agents/skills` are supported by the wiring but
|
||||
This table comes from `sisi doctor` and the wiring code (`sisi/wiring.py`, `sisi/adapters.py`); per-tool limits
|
||||
and any step you must take yourself are in [docs/harnesses.md](docs/harnesses.md). Where there is no gate, the
|
||||
rulebook still tells the agent to write and run a contract, but nothing enforces it. `sisi install` is skipped
|
||||
for a tool whose configuration folder is missing, and `sisi install --dry-run` prints exactly what would be
|
||||
created, edited (with diffs) or skipped while changing nothing. The uninstall guarantee: a file you have not
|
||||
edited since install is restored byte for byte (or removed, if sisi created it); a file you have edited since
|
||||
install keeps your edits, with only sisi's own entries removed and every other byte left as it was; a file
|
||||
sisi cannot edit with certainty is skipped and reported, never rewritten, and a generated plugin or extension
|
||||
you edited is left alone entirely. Agent skills linked into `~/.agents/skills` are supported by the wiring but
|
||||
the product ships none yet.
|
||||
|
||||
## The verifier library
|
||||
@@ -159,7 +189,8 @@ re-test. `sisi export` and `sisi import` move personal data to another machine a
|
||||
|
||||
sisi uninstall
|
||||
|
||||
removes the import line, hooks and links, restoring each edited file from its backup. Your personal data and
|
||||
removes the import line, hooks and links. A file not edited since install is restored byte for byte; a file you
|
||||
edited keeps your edits and loses only sisi's entries. Your personal data and
|
||||
scratch folders are left alone; delete them yourself if you want them gone. Then delete the clone.
|
||||
|
||||
## Status
|
||||
@@ -169,10 +200,17 @@ Version 0.1.0, an early release.
|
||||
Works today, with tests:
|
||||
|
||||
- Contracts, `sisi verify` (fast and deep tiers), the trust mechanism, the end-of-turn gate and session-start hook.
|
||||
- Wiring for Claude Code (with the blocking gate), Codex and OpenCode (rulebook only), and `sisi doctor`, `audit`.
|
||||
- Wiring for every tool in the table above: blocking gates in Claude Code, Codex, Gemini CLI, Copilot CLI,
|
||||
Qwen Code and Pi; a follow-up gate in Cursor; rulebook-only links elsewhere; an OpenCode plugin whose
|
||||
enforcement is unproven (see [docs/harnesses.md](docs/harnesses.md)); and `sisi doctor`, `audit`.
|
||||
- The verifier library and recipes, with `sisi verifiers lint`.
|
||||
- Retros, lessons, quarantined preferences, time to delivery, personal data, overlay, update, export and import,
|
||||
releases and rollback.
|
||||
- The learning loop that acts on lessons: immediate effects (field notes, draft recipes, learned notes,
|
||||
`sisi backlog`), delivery at the matching moment, the strength ladder (note, candidate rule, enforced check),
|
||||
consolidation (`sisi cycle`, with exact revert) and `sisi improve`. No scheduler: due-ness is a counter
|
||||
checked at session start, at the end of each turn and in `sisi retro`, `sisi verify` and `sisi done for`.
|
||||
Plain-words tour: [docs/learning.md](docs/learning.md).
|
||||
- A data layer that reads past Claude Code transcripts into a local database and builds a task set, escape
|
||||
candidates, per-check statistics and a weekly scoreboard (`sisi harvest`, `tasks`, `escapes`, `checks`,
|
||||
`scoreboard`; these are not listed in `sisi help`).
|
||||
@@ -181,9 +219,10 @@ Designed but not built (see [docs/design.md](docs/design.md)):
|
||||
|
||||
- The build conductor: `sisi build "<what I want>"` turning a statement into verified work, and the question queue
|
||||
(`sisi inbox`). Neither command exists.
|
||||
- The model-driven learning loop: background runs, experiments on a task set, automatic shipping and removal of
|
||||
rule changes, the taste judge, playbooks. The data layer above is groundwork for it; nothing acts on it yet.
|
||||
- Blocking gates outside Claude Code, and harvest of transcripts from tools other than Claude Code.
|
||||
- Replay experiments on a task set before a learned change ships, and the taste judge and playbooks. Learned
|
||||
changes currently ship first (personal overlay only) and are judged by measured deliveries afterwards, with
|
||||
exact revert and withdrawal as the safety net; the data layer above is groundwork for the replay version.
|
||||
- Proven end-to-end enforcement in OpenCode, and harvest of transcripts from tools other than Claude Code.
|
||||
|
||||
Not verified: whether Codex and OpenCode obey the rulebook as well as Claude Code does.
|
||||
|
||||
|
||||
Reference in new issue
Block a user