Claude Code · SettingsPermisos
subagents-explore-only
Convierte a cada subagente en explorador de solo lectura.
por davila7/claude-code-templates
hooks
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --setting hooks/subagents-explore-onlyContenido
Dónde va: .claude/settings.json
{
"hooks": {
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "printf '%s\\n' '{\"hookSpecificOutput\":{\"hookEventName\":\"SubagentStart\",\"additionalContext\":\"You are running as an exploration-only subagent. Your job is to investigate and report, not to change anything. Use only read-only actions: read files, search with Grep and Glob, list directories, inspect git history and diffs, and read web pages with WebFetch or WebSearch. Do not create, edit, move or delete files. Do not run commands that change state, such as package installs, builds that write output, git commit, git push, git checkout, migrations, or requests that write to external services. If the task seems to require a change, do not make it: describe the exact change (file, location and proposed content) in your final report so the main agent can apply it.\"}}'"
}
]
}
]
}
}
Más en Settings
Modo solo lectura
Permite leer y buscar, pero pide confirmación antes de editar o ejecutar comandos.
Proteger secretos
Bloquea la lectura de .env, llaves y credenciales locales.
Proyecto Node.js
Permite npm run, tests y git status sin preguntar; bloquea publicar paquetes.
Variables para CI
Desactiva telemetría y auto-actualizaciones para correr en pipelines.
Statusline con rama de git
Muestra el modelo, la carpeta y la rama actual en la barra de estado.
Historial corto
Borra transcripciones locales después de 7 días.