sisi works for any agent in any harness: one hook-input normaliser, a table of tool classes, a table-driven installer for every tool installed, sisi update, XDG paths

The rulebook is delivered to every installed agent tool (a link, or a marked block in a real file, refreshed
whenever it is rebuilt). Hooks are wired for tools whose hook files take Claude Code's shape: Claude Code,
Codex and Qwen Code. The tools and tool classes are plain data in canon/harnesses.json and canon/tools.json.
sisi uninstall takes out exactly what install put in. sisi release records its source remote, and sisi update
fetches and releases the newest sisi from it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-23 20:31:50 -07:00
1 parent 9173acf14b
commit aecb666c86
11 files changed
+699 -97

No files matched your search

+10 -4
View File
@@ -31,18 +31,21 @@ Delegation
sisi direct REASON allow yourself more direct tool calls this turn, with the reason
Setting up
sisi install | doctor wire the hooks and the rulebook into the agent tool; check them
sisi install | uninstall | doctor
put the rulebook (and hooks, where the tool has them) into every agent tool
installed here; take them out again; show how each tool stands
sisi release | rollback make this copy the one the hooks run; go back to the one before
sisi update fetch the newest sisi from where this release came from and release it
Hooks (the agent tool calls these): sisi tick | prompt | watch | gate
Your rules, models table and retro log live in ~/.local/share/sisi, a git repository. Settings: "core" in
Your rules, models table and retro log live in ~/.local/share/sisi ($SISI_DATA, else $XDG_DATA_HOME/sisi), a git repository. Settings: "core" in
its config.json (gate, meter, direct_calls, direct_extension, rules_lines, rules_chars, organize_after,
research_days, shell_workers)."""
def main(argv):
from . import hooks, install, models, retro, rules, store
from . import hooks, models, rules, store
cmd, args = (argv[0] if argv else "help"), argv[1:]
if cmd in ("tick", "prompt", "watch", "gate"):
try:
@@ -54,10 +57,12 @@ def main(argv):
store.append(os.path.join(store.STATE, "core-errors.log"), "%s %s: %r" % (time.strftime("%Y-%m-%dT%H:%M:%S"), cmd, e))
return 0
if cmd == "retro":
from . import retro
return retro.run(args)
if cmd == "rules":
return rules.run(args)
if cmd == "done":
from . import retro
return retro.done(args)
if cmd == "pick":
return models.pick(args)
@@ -69,7 +74,8 @@ def main(argv):
return models.judge(args)
if cmd == "direct":
return hooks.direct(args)
if cmd in ("install", "release", "rollback", "doctor"):
if cmd in ("install", "uninstall", "release", "update", "rollback", "doctor"):
from . import install
return getattr(install, cmd)()
if cmd == "rulebook":
print(rules.build_rulebook())