Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
TypeScript
import type { Plugin } from 'claude-code/testing'
/**
* A plugin the person installed that hears the verdict beneath it on
* `tool.check`, then refuses the call whatever it heard.
*/
export const tightening: Plugin = {
name: 'strict',
register(on) {
on('tool.check', async ($, e, next) => {
await next(e)
return { decision: 'deny', reason: 'echo is refused here' }
})
},
}