| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-04 | 1.9 kB | |
| v0.14.0 source code.tar.gz | 2026-05-04 | 2.6 MB | |
| v0.14.0 source code.zip | 2026-05-04 | 2.7 MB | |
| Totals: 3 Items | 5.2 MB | 0 | |
Minor release. Generalizes ztk from a Claude Code-only PreToolUse integration into a host-neutral policy layer that works across hook-native, permission-rule, and prompt-only coding tools.
Added
- Host-neutral ztk policy. Adds
.agent/harness/ztk_policy.pyand.agent/tools/ztk.pyso one shared policy can evaluate shell commands, network fetches, file writes, and permission requests across harnesses. - Claude Code and Codex hook adapters. Claude Code now routes PreToolUse events through ztk, while Codex installs opt-in hook configuration and handles PreToolUse, PermissionRequest, and PostToolUse events through the same policy.
- Portable
ztk execpath. Cursor, Windsurf, OpenCode, OpenClaw, Hermes, Pi, and standalone agents now documentpython3 .agent/tools/ztk.py exec --as the common way to run policy-covered shell commands when the host has no equivalent native hook surface. - Adapter capability matrix. Adds
docs/adapter-capabilities.mdwith official-source notes for Claude Code hooks, Codex hooks, OpenCode permissions, Cursor rules, and Windsurf rules/memories.
Changed
- OpenCode adapter config now uses the current
permissionkey. - Codex installs
.codex/config.tomland.codex/hooks.jsonthrough the manifest-driven adapter path instead of relying on installer-specific cases. - README and per-harness docs now describe ztk as a portable policy layer, not a Claude Code-only hook.
Fixed
- Protected
.agent/protocols/permissions.mdedits are blocked by policy, includingapply_patchpayloads that mention the protected path. - The shared pre-tool hook checks never-allowed patterns before approval-only patterns so hard denials cannot be downgraded to approval prompts.
Migration
No migration required. Re-run the relevant adapter install to copy the new hook, permission, or prompt guidance files into an existing project.