apexyard: Settings file for Claude Code

.claude/settings.json

apexyard is a settings file for Claude Code from me2resh/apexyard. Its token cost is not measured, scanned A, original, MIT.

Agent settings that run shell commands at key points in an agent session, including startup, before tools are used, when a prompt is submitted, and after a tool finishes.

In plain words
What is it for?
Pinning the correct project directory, checking migration and active-ticket requirements, detecting roles, warning about review markers, validating branches, and blocking unsafe Git actions.
Why use it?
They enforce project workflow checks and help route each operation through the appropriate project hooks.

Settings file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: names the NotebookEdit tool.

This is me2resh/apexyard's own configuration. It tells Claude Code how to work on apexyard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apexyard configures →

One of 6 entries in settings.json upstream. Installing this one merges just its entry into your config; the other 5 are separate, each on its own page.

Reuse

Borrowing it

Nothing to install: this file belongs to me2resh/apexyard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/me2resh/apexyard/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/me2resh/apexyard

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apexyard

README.md
[![agentmods](https://agentmods.dev/badge/settings/me2resh/apexyard/settings/github.svg)](https://agentmods.dev/settings/me2resh/apexyard/settings)
Your own site
<a href="https://agentmods.dev/settings/me2resh/apexyard/settings"><img src="https://agentmods.dev/badge/settings/me2resh/apexyard/settings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for apexyard

Your own site · 80×15
<a href="https://agentmods.dev/settings/me2resh/apexyard/settings"><img src="https://agentmods.dev/badge/settings/me2resh/apexyard/settings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

apexyard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/settings.json · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'r=\"\";if [ -n \"${CLAUDE_CODE_SESSION_ID:-}\" ];then p=\"${APEXYARD_OPS_PIN_DIR:-$HOME/.claude/apexyard}/ops-root-${CLAUDE_CODE_SESSION_ID}\";[ -f \"$p\" ] && IFS= read -r r < \"$p\" && [ -d \"$r/.claude/hooks\" ] || r=\"\";fi;if [ -z \"$r\" ];then r=$PWD;while [ -n \"$r\" ] && [ \"$r\" != / ];do { [ -f \"$r/.apexyard-fork\" ] || [ -f \"$r/onboarding.yaml\" ]; } && [ -d \"$r/.claude/hooks\" ] && break;r=${r%/*};done;fi;[ -d \"$r/.claude/hooks\" ] || exit 0;exec \"$r/.claude/hooks/dispatch-session-start.sh\"'"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Edit|Write|MultiEdit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'r=\"\";if [ -n \"${CLAUDE_CODE_SESSION_ID:-}\" ];then p=\"${APEXYARD_OPS_PIN_DIR:-$HOME/.claude/apexyard}/ops-root-${CLAUDE_CODE_SESSION_ID}\";[ -f \"$p\" ] && IFS= read -r r < \"$p\" && [ -d \"$r/.claude/hooks\" ] || r=\"\";fi;if [ -z \"$r\" ];then r=$PWD;while [ -n \"$r\" ] && [ \"$r\" != / ];do { [ -f \"$r/.apexyard-fork\" ] || [ -f \"$r/onboarding.yaml\" ]; } && [ -d \"$r/.claude/hooks\" ] && break;r=${r%/*};done;fi;[ -d \"$r/.claude/hooks\" ] || exit 0;exec \"$r/.claude/hooks/block-protected-target-writes.sh\"'",
            "timeout": 10,
            "onFailure": "block"
          }
        ]
      },
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'r=\"\";if [ -n \"${CLAUDE_CODE_SESSION_ID:-}\" ];then p=\"${APEXYARD_OPS_PIN_DIR:-$HOME/.claude/apexyard}/ops-root-${CLAUDE_CODE_SESSION_ID}\";[ -f \"$p\" ] && IFS= read -r r < \"$p\" && [ -d \"$r/.claude/hooks\" ] || r=\"\";fi;if [ -z \"$r\" ];then r=$PWD;while [ -n \"$r\" ] && [ \"$r\" != / ];

Read the full file on GitHub · 160 lines

Same file

What else settings.json configures

This page is one entry in a file that holds 6. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · +31 lines f3d3c6482920
  2. 22d ago Changed · +25 lines ed4dc94ccaf5
  3. 29d ago Changed · -19 lines 99c5bbdaf2af
  4. 1mo ago Changed · +3 lines f60b8ac5bbc7
  5. 1mo ago Changed · -330 lines 67e6769faebf
  6. 1mo ago Changed · +4 lines 8d127eb8c44a
  7. 1mo ago Changed · +35 lines 348b3aef8bb9
  8. 2mo ago First seen · 411 lines scan A 207b06f68517

Subscribe to this mod's changes

apexyard is a settings file published in the GitHub repository me2resh/apexyard (542 stars, last pushed yesterday), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

apexyard compared with settings from other repositories

apexyard next to 6 settings from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
apexyardme2resh/apexyardSettings file542yesterdayMITA—Claude Code
supabasesupabase/supabaseSettings file115kyesterdayApache-2.0A—Claude Code
supersetapache/supersetSettings file75kyesterdayApache-2.0A—Claude Code
RuViewruvnet/RuViewSettings file103kyesterdayMITA—Claude Code
claude-cookbooksanthropics/claude-cookbooksSettings file54k2d agoMITA—Claude Code
ormprisma/ormSettings file48kyesterdayApache-2.0A—Claude Code
claude-code-best-practiceshanraisshan/claude-code-best-practiceSettings file69kyesterdayMITA—Claude Code