Files
sisi/bin/sisi
T
swaitsandClaude Sonnet 5.5 aecb666c86 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>
2026-11-23 20:31:50 -07:00

10 lines
506 B
Python
Executable File

#!/usr/bin/env python3
import os, sys
# sisi never writes inside the product: compiled bytecode goes to the scratch dir instead of next to the code.
_xdg = os.environ.get("XDG_STATE_HOME")
_state = os.environ.get("SISI_STATE") or os.path.join(_xdg or os.path.join(os.path.expanduser("~"), ".local", "state"), "sisi")
sys.pycache_prefix = os.path.join(_state, "pycache")
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from sisi.cli import main
sys.exit(main(sys.argv[1:]))