Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 978 Bytes

File metadata and controls

30 lines (20 loc) · 978 Bytes

@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-local

Usage

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');