Claude Code hook
Agent Config
One config for Claude Code, Codex, and Pi: shared instructions, skills, and personas, with hooks that enforce the rules.
Install
git clone https://github.com/domengabrovsek/agent-config.gitFrom the README
Shared Agent Configuration One checkout configures three coding agents, Claude Code, Codex, and Pi, with the same instructions, workflows, personas, and guardrails. scripts/setup-hosts.sh symlinks it into each agent's config dir, so an edit here reaches every host. Why Coding agents write code well and judge "done" badly. They start before they understand the problem, claim results they did not check, and push work that fails CI. This config counters each failure with one mechanism: Quick start Setup lists the requirements. You can also open an agent in the checkout and ask it to run the setup. Tell it to run --check first and to ask before --adopt. To commit to this repo, first add the filter that keeps runtime state out of settings.json: Setup covers Pi, machines that use only some hosts, and how each host is wired. Layout How it works shows how these pieces reach each host and when each one loads. Docs
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
- domengabrovsek/agent-config
- Type
- Hooks
- Language
- Shell
- Last updated
- 22 November 2026
- Topics
- agent-skillsagents-mdai-agentsai-codingai-workflowautomationclaudeclaude-codecodexcoding-agentsdeveloper-toolsdotfiles
FAQ
What is Agent Config?
One config for Claude Code, Codex, and Pi: shared instructions, skills, and personas, with hooks that enforce the rules. It is a hook for Claude Code, from domengabrovsek/agent-config on GitHub.
How do I install Agent Config?
Clone domengabrovsek/agent-config from GitHub and follow the setup steps in its README.
Is Agent Config popular?
domengabrovsek/agent-config has 25 GitHub stars and 4 forks. It was last updated on 22 November 2026.
More hooks
Claude Homeassistant Plugins
29ESJavadex/claude-homeassistant-plugins
Claude Code Plugins, Skills, Agents Marketplace for Home Assistant
Claude Memory
27codenamev/claude_memory
Long-term, self-managed memory for Claude Code using hooks, MCP tools, and SQLite
Claude Skills
27randommonicle/claude-skills
Engineering guardrails for Claude Code: 51 skills, reviewer agents and hooks, most written after a real defect shipped. Installable as a plugin.
Claude Code Templates
25altmemy/claude-code-templates
Project templates for Claude Code — Next.js, Spring Boot, and Flutter, each with preconfigured agents, skills, rules, and hooks
code-conductor
19yeisonrestrepo/code-conductor
Governance layer of hooks that vets agent commands before they execute.
Cloneguard
8prodnull/cloneguard
Guarding AI agents from Untrusted Content
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.