Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Adapters

Note

Guide: draft. The source build implements the current behavior below; remaining design work is marked explicitly.

An adapter connects a host to Shiin. It intercepts proposed actions, builds action requests, and enforces the resulting decision using the host’s own protocol. Adapters never make decisions.

Enforcement levels

Every adapter declares an enforcement level:

LevelMeaning
L1 CooperativeThe host honors the decision through its hook mechanism.
L2 MediatedShiin sits in the data path.
L3 OS-enforcedThe operating system or a sandbox enforces the decision.

Hosts

HostLevelInterceptionMilestone
Claude CodeL1hooksv0.1
Codex CLIL1hooksv0.2
CursorL1hooksv0.2
MCP proxyL2data pathv0.5

Honest labeling

Every adapter states its enforcement level and what it cannot see.