Skip to content

v1.4.3 - Smart Harness Auto-Detection

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 20:55
· 13 commits to main since this release

Smart harness auto-detection

python -m code_airlock install now detects the agent that invoked it and configures only that harness.

Detection order

  1. Explicit --target opencode|claude|cursor|all
  2. Agent environment variables (OPENCODE*, CLAUDECODE / CLAUDE_CODE_ENTRYPOINT, CURSOR_TRACE_ID / VSCODE_PID)
  3. Workspace and home footprints (opencode.json, .opencode, ~/.config/opencode, CLAUDE.md, .claude, .mcp.json, .cursor, .cursorrules)

Per-harness files

  • OpenCode: AGENTS.md rules, ~/.config/opencode/opencode.json (plus a project opencode.json when it already exists)
  • Claude Code: CLAUDE.md rules, 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 install

Tests

23 passed, including OpenCode-only, Claude-only, and Cursor-only isolation checks.