CodeNib AGENTS.md

CodeNib AGENTS.md is an instructions file for Codex, OpenCode from sysevol-ai/CodeNib. It costs 2,451 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/sysevol-ai/codenib/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,451 This file is loaded in full into every session.
When invoked 2,451 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02451 $0.02451
Opus 5 $0.01226 $0.01226
Sonnet 5 $0.00490 $0.00490
Haiku 4.5 $0.00245 $0.00245

Measured today against content hash f9452e59e4b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 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.

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 storage scope and subtraction, use docs/storage_backend_roadmap.md as the durable objective record. Update it whenever the Wiki database boundary changes, a retained compatibility surface is removed, or a proposal attempts to reopen the generic backend program.

For the cognitive-debt reduction program, use docs/cognitive_debt_roadmap.md as the durable objective record. Update it whenever a package changes lifecycle class, an experimental surface is retired, an architectural dependency direction changes, or a subtraction iteration is completed.

Read the full file on GitHub · 193 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 · +38 lines · +531 tokens per session f9452e59e4b1
  2. 4d ago First seen · 155 lines · 1,920 tokens per session scan A 13f9666a9c1f

Subscribe to this mod's changes

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