knot: Instructions file for Codex

AGENTS.md

knot AGENTS.md is an instructions file for Codex, OpenCode from raultov/knot. It costs 6,343 tokens per session, scanned C, original, MIT.

Repository-specific instructions for Knot, a Rust code indexer that builds searchable indexes for multiple programming languages and exposes semantic search through MCP.

In plain words
What is it for?
Use them when changing Knot’s indexer, search behavior, language support, databases, or test suites.
Why use it?
They describe the architecture and the commands needed to build, test, and run language-specific end-to-end checks.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/raultov/knot/agents-md"><img src="https://agentmods.dev/badge/instructions/raultov/knot/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,343 This file is loaded in full into every session.
When invoked 6,343 The same file — it is already loaded in full.
Security scan C 1 finding. 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.06343 $0.06343
Opus 5.5 $0.02537 $0.02537
Sonnet 5.5 $0.01269 $0.01269
Haiku 4.5 $0.00634 $0.00634

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

Security

Grade C, and why

knot AGENTS.md scanned grade C with 1 finding 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 5d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Delete `.knot/` and rebuild: `rm -rf .knot/ && ./target/release/knot-indexer`
AGENTS.md · 513 lines

How it starts

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

AGENTS.md — Knot Development Guidance

knot is a dual-database codebase indexer (Rust 2024 edition) that powers semantic code search via MCP. This file captures repo-specific guidance that would trip up an unfamiliar agent.


Quick Commands

Build everything:

cargo build --release

Run unit tests only:

cargo test

Run all E2E tests (requires Docker + databases):

./tests/run_all_e2e_fast.sh

Run a single E2E language suite:

./tests/run_typescript_e2e.sh       # TypeScript
./tests/run_java_e2e.sh              # Java
./tests/run_javascript_e2e.sh        # JavaScript
./tests/run_web_e2e.sh               # HTML + JSX + CSS + SCSS + hybrid
./tests/run_kotlin_e2e.sh            # Kotlin
./tests/run_rust_e2e.sh              # Rust
./tests/run_python_e2e.sh            # Python
./tests/run_build_systems_e2e.sh     # Maven/Gradle/Jenkins/Cargo.toml
./tests/run_groovy_e2e.sh            # Groovy
./tests/run_cpp_e2e.sh               # C/C++
./tests/run_csharp_e2e.sh            # C#
./tests/run_cross_lang_ref_e2e.sh    # Cross-language validation
./tests/run_config_e2e.sh            # YAML/JSON/.properties config
./tests/run_k8s_helm_e2e.sh          # Kubernetes + Helm
./tests/run_cross_repo_dep_e2e.sh    # Cross-repo dependency linking
./tests/run_repo_scope_e2e.sh        # Repository scope selection (all / multi-repo)
./tests/run_http_clients_e2e.sh      # HTTP client calls → endpoints (HTTP_CALLS)
./tests/run_incremental_e2e.sh       # Incremental re-index: modified files replaced, edges re-pointed

Quick Commands:

make check                           # Run all quality gates (fmt-check, clippy, test, dupes)
make e2e                             # Run all E2E tests (requires Docker)
make check-all                       # Run quality gates + E2E integration tests
cargo clippy --all-targets -- -D warnings  # Must pass
cargo fmt -- --check                        # Must pass before commit
cargo fmt                                   # Auto-fix formatting
cargo dupes check                           # Duplication check (must pass)
cargo dupes report                          # Detailed duplication report

Read the full file on GitHub · 513 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. 5d ago Changed · +7 lines · +323 tokens per session 79b86df86246
  2. 11d ago Changed · +4 lines · +82 tokens per session 7197e50fcb61
  3. 1mo ago Changed · +8 lines · +110 tokens per session f5cb0ee92f39
  4. 1mo ago Changed · +12 lines · +165 tokens per session 9612b5d472ad
  5. 1mo ago Changed · +49 tokens per session 505b01dca788
  6. 1mo ago Changed · +26 lines · +353 tokens per session 594670f12fd2
  7. 2mo ago Changed · +44 tokens per session ce8640221b20
  8. 2mo ago Changed · +1 lines · +21 tokens per session 8826e8b134db
  9. 2mo ago First seen · 455 lines · 5,196 tokens per session scan C 10d24833adc5

Subscribe to this mod's changes

knot AGENTS.md is an instructions file published in the GitHub repository raultov/knot (8 stars, last pushed 5d ago), licensed MIT. It adds 6,343 tokens to every session, about $0.0254 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

knot AGENTS.md compared with instructions from other repositories

knot AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knot AGENTS.mdraultov/knotInstructions file85d agoMITC6,343Codex, 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