spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / tool-check / allowing-read.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 14 days ago History
12 lines · 307 BRaw
1import type { Plugin } from 'claude-code/testing'
2
3/**
4 * A plugin the person installed that allows every Read call and has no say
5 * on another tool's.
6 */
7export const allowingRead: Plugin = {
8 name: 'reader',
9 register(on) {
10 on('tool.check', { tool: 'Read' }, () => ({ decision: 'allow' }))
11 },
12}