Repository navigation
v1.4.3 - Smart Harness Auto-Detection
Smart harness auto-detection
python -m code_airlock install now detects the agent that invoked it and configures only that harness.
Detection order
- Explicit
--target opencode|claude|cursor|all - Agent environment variables (
OPENCODE*,CLAUDECODE/CLAUDE_CODE_ENTRYPOINT,CURSOR_TRACE_ID/VSCODE_PID) - Workspace and home footprints (
opencode.json,.opencode,~/.config/opencode,CLAUDE.md,.claude,.mcp.json,.cursor,.cursorrules)
Per-harness files
- OpenCode:
AGENTS.mdrules,~/.config/opencode/opencode.json(plus a projectopencode.jsonwhen it already exists) - Claude Code:
CLAUDE.mdrules, project.mcp.json - Cursor:
.cursorrules, project.cursor/mcp.json
All config merges preserve existing keys and MCP servers. install still initializes .airlock.toml, installs the Git pre-commit hook inside a repository, and verifies the ONNX engine. code-airlock with no arguments still starts the MCP stdio server.
Install
pip install -U code-airlock && python -m code_airlock installTests
23 passed, including OpenCode-only, Claude-only, and Cursor-only isolation checks.