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 marks all four subject events.
*
* A tool's description, a command's hidden flag, an agent's offer, a
* spawn's model.
*/
export const marking: Plugin = {
name: 'marking',
register(on) {
on('tool.describe', ($, e) => ({ description: `user: ${e.description}` }))
on('command.describe', ($, e, next) => next({ ...e, isHidden: true }))
on('agent.offer', () => ({ isOffered: false }))
on('agent.spawn', () => ({ model: 'user' }))
},
}