@clawdstrike/claude
v0.2.7
Published
In-process tool boundary hooks for Claude Code and the Claude Agent SDK
Maintainers
Readme
@clawdstrike/claude
In-process tool-boundary hooks for Claude Code and the Claude Agent SDK.
Use this at the layer that executes tools on behalf of the model.
See Enforcement Tiers & Integration Contract for what this does and does not prevent (and what requires a sandbox/broker).
Install
npm install @clawdstrike/claude @clawdstrike/engine-localUsage
import { createStrikeCell } from '@clawdstrike/engine-local';
import { ClaudeToolBoundary, wrapClaudeToolDispatcher } from '@clawdstrike/claude';
const engine = createStrikeCell({ policyRef: 'default' });
const boundary = new ClaudeToolBoundary({ engine });
const dispatchTool = wrapClaudeToolDispatcher(boundary, async (toolName, input, runId) => {
// ...execute the tool...
return { toolName, input, runId };
});
await dispatchTool('read_file', { path: './README.md' }, 'run-1');