@clawdstrike/codex
v0.1.1
Published
In-process tool boundary hooks for Codex-style coding assistants
Downloads
167
Maintainers
Readme
@clawdstrike/codex
In-process tool-boundary hooks for Codex-style coding assistants.
This package is intentionally runtime-agnostic: you wire it into the layer that actually executes tools (file/network/command/etc).
Install
npm install @clawdstrike/codex @clawdstrike/adapter-core @clawdstrike/engine-localUsage
import { createHushCliEngine } from '@clawdstrike/engine-local';
import { CodexToolBoundary, wrapCodexToolDispatcher } from '@clawdstrike/codex';
const engine = createHushCliEngine({ policyRef: 'default' });
const boundary = new CodexToolBoundary({ engine });
// Drop-in wrapper around your real dispatcher:
const dispatchTool = wrapCodexToolDispatcher(boundary, async (toolName, input, runId) => {
// ...execute the tool...
return { toolName, input, runId };
});
await dispatchTool('bash', { cmd: 'echo hello' }, 'run-123');