CodeNib: Instructions file for Codex

AGENTS.md

CodeNib AGENTS.md is an instructions file for Codex, OpenCode from sysevol-ai/CodeNib. It costs 4,812 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for CodeNib, a Python code-analysis agent that builds searchable relationships between code parts.

In plain words
What is it for?
Use it when changing CodeNib to follow its development commands, Git and pull-request rules, layered priorities, and verification guidance.
Why use it?
It gives coding agents shared rules for protecting the main branch, keeping changes reviewable, handling dependent pull requests, and running suitable tests.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 CodeNib AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sysevol-ai/codenib/agents-md"><img src="https://agentmods.dev/badge/instructions/sysevol-ai/codenib/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,812 This file is loaded in full into every session.
When invoked 4,812 The same file — it is already loaded in full.
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.
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.04812 $0.04812
Opus 5.5 $0.01925 $0.01925
Sonnet 5.5 $0.00962 $0.00962
Haiku 4.5 $0.00481 $0.00481

Measured today against content hash f07431edf63f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

CodeNib AGENTS.md 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 today.

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.

AGENTS.md · 358 lines

How it starts

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

AGENTS.md

CodeNib is a Python 3.10+ code analysis agent with tree-sitter chunking, semantic graph construction, hybrid retrieval, and MCP-facing search tools. Use this file as the repo-level contract for Codex and other code agents.

Layered Objectives

Work in this order unless the user gives a narrower task:

  1. Protect main: do not merge draft PRs, PRs with unresolved code failures, or stacked PRs whose dependency chain is not clear.
  2. Make changes reviewable: keep commits focused, preserve existing ownership boundaries, and avoid unrelated refactors.
  3. Verify the changed surface: run the smallest relevant test first, then widen to the job or marker tier that matches the risk.
  4. Keep stacked work coherent: merge or rebase dependencies before dependents, and re-check diffs after a base branch changes.
  5. Codify repeated feedback here or in the nearest directory-specific rules file so future agents do not repeat the same mistake.

For broad multi-step work, keep an explicit layered goal active until the requested surface is implemented, locally verified, documented, and reconciled with relevant PRs/issues. Do not mark a broad goal complete just because a single subgoal landed. Prefer local targeted verification and continued implementation over waiting on slow remote CI; run the remote/slow tier after the merge queue or feature batch is otherwise coherent. Update each milestone's outcomes and open gates in the PR that changes them; an update only on a parallel branch does not keep that PR's roadmap current.

For the current multi-language SCIP cold-start and acceleration program, use docs/scip_multilanguage_roadmap.md as the durable objective record. Update it whenever a backend is promoted, a C++ acceleration gate changes, or a related issue/PR is closed.

For the storage boundary and the time-bounded hybrid-index experiment, use docs/storage_backend_roadmap.md as the durable objective record. Update it whenever the Wiki database boundary changes, an experiment gate changes, or a related issue or PR is reconciled.

Read the full file on GitHub · 358 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. today Changed · +10 lines · +147 tokens per session f07431edf63f
  2. yesterday Changed · +8 lines · +101 tokens per session 6a853f0de43e
  3. 8d ago Changed · +82 lines · +1,130 tokens per session 3d4576bc0068
  4. 1mo ago Changed · +22 lines · +304 tokens per session df23b2eb237d
  5. 1mo ago Changed · +5 lines · +73 tokens per session dc9e7447ba85
  6. 1mo ago Changed · +14 lines · +213 tokens per session 8ef9e64f2173
  7. 1mo ago Changed · +3 lines · +41 tokens per session d0658f68261a
  8. 1mo ago Changed · +7 lines · +101 tokens per session 5b4fd3090f01
  9. 1mo ago Changed · +14 lines · +251 tokens per session 9dfbfae1764b
  10. 1mo ago First seen · 193 lines · 2,451 tokens per session scan A f9452e59e4b1

Subscribe to this mod's changes

CodeNib AGENTS.md is an instructions file published in the GitHub repository sysevol-ai/CodeNib (89 stars, last pushed today), licensed Apache-2.0. It adds 4,812 tokens to every session, about $0.0192 per session on Opus 5.5. 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

Other instructions, from other repositories