git-override: Instructions file for Codex

AGENTS.md

git-override AGENTS.md is an instructions file for Codex, OpenCode from jonathanabila/git-override. It costs 5,231 tokens per session, scanned C, original, MIT.

Agent instructions for git-local-override, a Bash tool that keeps local file changes without committing them to Git.

In plain words
What is it for?
Use them when changing the command-line tool, its Git hooks, shared shell modules, or recursive local-override configuration.
Why use it?
They explain the repository structure and how configuration files and Git hooks work together to manage local versions of tracked files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions AGENTS.md.

This is jonathanabila/git-override's own configuration. It tells Codex and OpenCode how to work on git-override 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 git-override configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jonathanabila/git-override. 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/jonathanabila/git-override/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/jonathanabila/git-override

Made for: Codex, OpenCode.

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 git-override AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jonathanabila/git-override/agents-md/github.svg)](https://agentmods.dev/instructions/jonathanabila/git-override/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jonathanabila/git-override/agents-md"><img src="https://agentmods.dev/badge/instructions/jonathanabila/git-override/agents-md/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 git-override AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jonathanabila/git-override/agents-md"><img src="https://agentmods.dev/badge/instructions/jonathanabila/git-override/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,231 This file is loaded in full into every session.
When invoked 5,231 The same file — it is already loaded in full.
Security scan C 2 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.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05231 $0.05231
Opus 5.5 $0.02092 $0.02092
Sonnet 5.5 $0.01046 $0.01046
Haiku 4.5 $0.00523 $0.00523

Measured 2mo ago against content hash 5a62b589f755, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git-override AGENTS.md scanned grade C with 2 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 2mo 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

2. **Curl**: `curl ... | bash` downloads hooks directly to `.git/hooks/`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **Curl**: `curl ... | bash` downloads hooks directly to `.git/hooks/`
AGENTS.md · 507 lines

How it starts

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

Agent Instructions for git-local-override

This document provides guidelines for AI agents working on the git-local-override project.

Project Overview

git-local-override is a bash-based tool that allows users to maintain local modifications to git-tracked files without committing them. It uses git hooks to transparently manage file content based on recursive config files (.local-overrides.yaml) in the repository.

Repository Structure

git-local-override/
├── bin/                          # Executable CLI tool
│   └── git-local-override        # Main command-line interface
├── hooks/                        # Git hook scripts
│   ├── local-override-lib.sh     # Shared library functions
│   ├── local-override-filter-smudge   # Smudge filter (checkout)
│   ├── local-override-filter-clean    # Clean filter (staging)
│   ├── local-override-post-checkout
│   ├── local-override-pre-rebase
│   ├── local-override-pre-commit
│   └── local-override-post-commit
├── shared/                       # Shared shell modules
│   ├── local-override-resolver.sh # Canonical recursive config resolver
│   └── local-override-shell-init.sh # Shell wrapper source (printed by shell-init)
├── scripts/                      # Installation and release scripts
│   ├── install.sh
│   ├── uninstall.sh
│   ├── pin-manifest.sh           # Shared pin-file list (release.sh + check-docs-sync.sh)
│   └── release.sh                # Changelog release prep helper
├── tests/                        # Test suite
│   ├── run-tests.sh              # Main test runner (unit suite)
│   ├── run-docker.sh             # Docker test launcher
│   ├── test-lib.sh               # Shared assertion harness (info/pass/fail, counters)
│   ├── coverage.sh               # kcov entrypoint (opt-in coverage run)
│   ├── bench-filter-process.sh   # filter.process benchmark + roundtrip harness
│   ├── docker/                   # Docker test infrastructure
│   │   ├── Dockerfile            # Ubuntu test image
│   │   ├── Dockerfile.bash3      # Bash 3.2 compatibility image
│   │   └── entrypoint.sh
│   └── integration/              # Integration tests
│       ├── test-install.sh       # Install/uninstall tests
│       ├── test-git-ops.sh       # Git operations tests
│       ├── test-precommit.sh     # Pre-commit framework tests
│       └── test-worktrees.sh     # Linked-worktree tests
├── .github/                      # GitHub configuration
│   ├── workflows/
│   │   ├── test.yml              # CI test workflow
│   │   └── release.yml           # Tag-triggered GitHub release publish
│   ├── ISSUE_TEMPLATE/           # Issue templates
│   ├── PULL_REQUEST_TEMPLATE.md
│   ├── CODEOWNERS
│   └── dependabot.yml
├── docs/                         # Additional documentation (DESIGN.md, rebase-regression-tdd-plan.md)
├── plans/                        # Implementation plans + index (plans/README.md)
├── Formula/                      # Draft Homebrew formula (unpublished)
│   └── git-local-override.rb
├── AGENTS.md                     # Canonical agent instructions (this file)
├── CLAUDE.md                     # Symlink -> AGENTS.md
├── VERSION                       # Release version file (synced by scripts/release.sh)
├── .pre-commit-hooks.yaml        # Pre-commit integration definitions
├── .pre-commit-config.yaml       # Pre-commit hooks for this repo
├── .editorconfig                 # Editor configuration
├── .gitattributes                # Line ending configuration
├── Makefile                      # Build automation
├── README.md                     # User documentation
├── CONTRIBUTING.md               # Contributor guidelines
├── CHANGELOG.md                  # Version history
├── SECURITY.md                   # Security policy
├── CODE_OF_CONDUCT.md            # Contributor code of conduct
└── LICENSE                       # MIT license

Read the full file on GitHub · 507 lines

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. 2mo ago First seen · 507 lines · 5,231 tokens per session scan C 5a62b589f755

Subscribe to this mod's changes

git-override AGENTS.md is an instructions file published in the GitHub repository jonathanabila/git-override (5 stars, last pushed 2mo ago), licensed MIT. It adds 5,231 tokens to every session, about $0.0209 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

git-override AGENTS.md compared with instructions from other repositories

git-override AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-override AGENTS.mdjonathanabila/git-overrideInstructions file52mo agoMITC5,231Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode