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

+2 -1
View File
@@ -3,7 +3,8 @@
You are the engineering organization for the person you work for: they say what they want, and
you own getting it right. These rules give direction; work out the tactics yourself. If another
agent gave you this work, you are a worker: do it yourself, hold to the checks in your brief, and
report against them. Rule 5 and the retro in rule 8 are the lead's.
report against them. Run `sisi rules` first: it prints the rules learned in this project. Rule 5 and
the retro in rule 8 are the lead's.
## The objective
+15
View File
@@ -0,0 +1,15 @@
[
{"name": "claude", "detect": "~/.claude", "env": "CLAUDE_CONFIG_DIR", "rules": "CLAUDE.md", "import": true, "hooks": {"file": "settings.json", "tick": "SessionStart", "prompt": "UserPromptSubmit", "watch": "PreToolUse", "gate": "Stop"}, "limits": "The built-in Explore and Plan subagents do not load CLAUDE.md."},
{"name": "codex", "detect": "~/.codex", "env": "CODEX_HOME", "rules": "AGENTS.md", "hooks": {"file": "hooks.json", "tick": "SessionStart", "prompt": "UserPromptSubmit", "watch": "PreToolUse", "gate": "Stop"}, "limits": "Hooks run only after the person trusts them once in Codex's /hooks; AGENTS.override.md shadows the rulebook; hosted web search is not metered."},
{"name": "qwen", "detect": "~/.qwen", "rules": "QWEN.md", "hooks": {"file": "settings.json", "tick": "SessionStart", "prompt": "UserPromptSubmit", "watch": "PreToolUse", "gate": "Stop"}, "limits": "A tool Qwen names differently from canon/tools.json is not metered."},
{"name": "grok", "detect": "~/.grok", "rules": "AGENTS.md", "limits": "Grok already runs the hooks in ~/.claude/settings.json; its session-start and prompt output is discarded, so project rules do not reach it at session start."},
{"name": "opencode", "detect": "~/.config/opencode", "rules": "AGENTS.md", "clean": ["plugins/sisi.js"], "limits": "Its plugin hooks are unverified, so none are wired."},
{"name": "antigravity", "detect": "~/.gemini", "rules": "GEMINI.md", "clean": ["settings.json"], "limits": "Its global hooks file location is unconfirmed, so none are wired."},
{"name": "pi", "detect": "~/.pi", "rules": "agent/AGENTS.md", "clean": ["agent/extensions/sisi.ts"], "limits": "Its extension hooks are unverified, so none are wired."},
{"name": "kiro", "detect": "~/.kiro", "rules": "steering/AGENTS.md", "limits": "Hook support is unconfirmed, so none are wired."},
{"name": "copilot", "detect": "~/.copilot", "rules": "copilot-instructions.md", "limits": "Hook support is unconfirmed, so none are wired."},
{"name": "crush", "detect": "~/.config/crush", "rules": "CRUSH.md", "limits": "Hook support is unconfirmed, so none are wired."},
{"name": "amp", "detect": "~/.config/amp", "rules": "AGENTS.md", "limits": "Hook support is unconfirmed, so none are wired."},
{"name": "muse", "detect": "~/.config/muse", "limits": "No documented global instructions file."},
{"name": "cursor", "detect": "~/.cursor", "limits": "No global instructions file, and CLI hook support is unconfirmed."}
]
+8
View File
@@ -0,0 +1,8 @@
{
"shell": ["bash", "shell", "exec_command", "run_terminal_command", "run_command", "run_shell_command"],
"read": ["read", "read_file", "list_dir"],
"edit": ["edit", "write", "multiedit", "notebookedit", "apply_patch", "patch", "search_replace", "write_file", "edit_file"],
"search": ["grep", "glob", "grep_search", "search"],
"web": ["webfetch", "websearch", "web_fetch", "web_search", "read_url_content", "search_web"],
"delegate": ["agent", "task", "workflow", "spawn_agent", "spawn_subagent", "subagent", "subagent_spawn", "invoke_subagent"]
}