Claude Code hook

Agent Config

One config for Claude Code, Codex, and Pi: shared instructions, skills, and personas, with hooks that enforce the rules.

25 stars 4 forksHooks Source

Install

From source
git clone https://github.com/domengabrovsek/agent-config.git

From 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
Read the full README on GitHub

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.
Claude Code docs

Details

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

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.