Claude Code hook
Boucle Framework
Autonomous agent framework with structured memory, safety hooks, and loop management. Built by the agent that runs on it.
Install
git clone https://github.com/Bande-a-Bonnot/Boucle-framework.gitFrom the README
Boucle Claude Code hooks that actually enforce your rules. 7 standalone hooks, plus enforce-hooks for CLAUDE.md policy, audit tooling, 1,900+ tests, and a searchable Claude Code gaps corpus with severity ratings and workarounds. Quick links: First test · Isolated first-test recipe · First safety audit · Temporary hook trial · Check your setup · Install hooks · Windows native setup · Known limitations · JSON export · Quickstart · Triage · README badge · Failed verification · Manual settings edit · Secret pre-push · Nested Claude billing · Write coverage canary · Custom hook test · Autonomous session preflight · After Claude Code updates · Resumed session recheck · MCP/plugin update · CI checks · Team handoff · Update checklist · Safe support evidence · Support examples · Read-only audit · Audit trail · Individual hooks · Platform support · Recommended Claude Code version · Troubleshooting · Boucle Framework (optional, for autonomous agents) Claude Code Hooks Claude Code's CLAUDE.md rules are read but not enforced - they work at session start and degrade as context grows. Its permission system has known gaps - wildcards don't match compound commands, deny rules don't check pipe segments and can be bypassed with multi-line comments. These hooks enforce covered tool-call boundaries that text rules and permissions often miss. What happens when a hook blocks a dangerous command: No prompts, no "are you sure" dialogs. The command never runs. First 10 minutes: 1. If you want to avoid reading your real Claude Code settings first, run the temporary first test. 2. Run the audit from the same project root where you start Claude Code. 3. If the summary says no hooks found, 0 payload checks, or FAIL-OPEN, install the recommended hook set. 4. Run verification with…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- Bande-a-Bonnot/Boucle-framework
- Type
- Hooks
- Website
- framework.boucle.sh
- Language
- Shell
- License
- MIT
- Last updated
- 25 September 2026
- Topics
- agent-frameworkai-agentautonomous-agentclaude-codeclaude-code-hooksmcprustsafety
FAQ
What is Boucle Framework?
Autonomous agent framework with structured memory, safety hooks, and loop management. Built by the agent that runs on it. It is a hook for Claude Code, from Bande-a-Bonnot/Boucle-framework on GitHub.
How do I install Boucle Framework?
Clone Bande-a-Bonnot/Boucle-framework from GitHub and follow the setup steps in its README.
Is Boucle Framework popular?
Bande-a-Bonnot/Boucle-framework has 126 GitHub stars and 14 forks. It was last updated on 25 September 2026.
More hooks
Claude Code Patterns
126AaronRoeF/claude-code-patterns
Field-tested Claude Code patterns & anti-patterns for personal agents — an AI workflow that compounds: knowledge base, memory consolidation, hooks, subagents. Enterprise agent trust: agentrust-io.com. Updated monthly.
Claude Prime
120avibebuilder/claude-prime
You've heard Claude Code can do amazing things. Skills, hooks, agents, memory systems — but who has time to figure all that out? Claude Prime sets it up for you in one command.
Helpline
115coleam00/helpline
Demonstration codebase for building the AI Layer (CLAUDE.md hierarchy, hooks, skills, LSP, MCP, plugin) — companion repo for the 'How Claude Code works in large codebases' video.
Claude Code Guardrails
54wangbooth/Claude-Code-Guardrails
Protective hooks that guard against lost work via branch protection and automatic checkpoints.
Canny
132qkal/Canny
Stops AI coding agents from claiming work is done without evidence. Deterministic hooks decide, TypeSafe's Jev advises. Append-only ledger, zero runtime dependencies.
vibeguard
44majiayu000/vibeguard
Rust CLI providing scoped review rules and native Bash/Git hooks for Claude Code.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.