@noinjection/core
v0.1.0
Published
Framework-independent, fail-closed human approval middleware for consequential AI agent tool calls.
Downloads
88
Maintainers
Readme
@noinjection/core
Framework-independent enforcement for consequential AI agent tool calls.
import { DEFAULT_POLICY, HttpApprovalProvider, protectTools } from "@noinjection/core";
const secured = protectTools({
tools,
policy: DEFAULT_POLICY,
approvalProvider: new HttpApprovalProvider("https://approval.example"),
clientId: "my-agent",
requestCode: trustedCliPrompt,
});Give the agent only secured.tools. Keep requestCode outside model-visible context. See the NoInjection project documentation for the threat model and complete integration guidance.
