helix-db: Instructions file for Codex

AGENTS.md

helix-db AGENTS.md is an instructions file for Codex, OpenCode from HelixDB/helix-db. It costs 954 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for HelixDB, a Rust database project, covering coding principles, testing, formatting, and key-value data handling.

In plain words
What is it for?
They help with Rust implementation, unit and documentation tests, coverage, Clippy checks, formatting, and database key construction and parsing.
Why use it?
They encourage clear type-safe code and verification, helping developers catch invalid states, edge cases, and style problems early.

Instructions file for CodexOpenCode

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

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

About the project

HelixDB is a database for storing connected knowledge, vectors, documents, and other application data, with graph and full-text search built in. It is intended for AI applications such as agent memory, company knowledge systems, and retrieval-augmented generation. The catalogue add-ons help coding agents install, query, and manage HelixDB projects.

HelixDB/helix-db · 6,268 stars · on GitHub · helix-db.com

Reuse

Borrowing it

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

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 helix-db AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/helixdb/helix-db/agents-md"><img src="https://agentmods.dev/badge/instructions/helixdb/helix-db/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 954 This file is loaded in full into every session.
When invoked 954 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.00954 $0.00954
Opus 5.5 $0.00382 $0.00382
Sonnet 5.5 $0.00191 $0.00191
Haiku 4.5 $0.00095 $0.00095

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

Security

Grade C, and why

helix-db 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 1mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

- ⁠match { Example(_) => ExampleVariant } -> use derive macro for Variant and the conversions instead of littering our code with the extra types and functions ⁠- ⁠instead of children structs holding an Arc<Db>, maybe jus
AGENTS.md · 58 lines

How it starts

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

approach

  • ⁠Make invalid states unrepresentable using algebraic data types (e.g. enums).
  • ⁠Use code coverage tools to make sure unit test coverage covers every edge case. This should be easily doable if invalid states are unrepresentable.
  • Keep things modular.
  • Define clear contract boundaries for testability. Document them all, and make sure doc comment examples are ran as tests.
  • Use assertions for invariants when encoding within types is not feasible.
  • Use clippy and fix code smells reported.
  • Prefer iterators, monadic logic, and functional concepts. Where not possible for performance, document why.
  • Make invalid state unrepresentable.
  • Prefer importing modules over long lists of types. Using module::Type at call sites is fine, keeps names unambiguous, and reduces namespace-collision churn.
  • Be wary of things that don't scale. If you have reason to believe why it wont, report back to the user explaining why.
  • instead of if let { ... } use let Some(…) = … else { }
  • avoid over using helper functions where possible. duplicating a single line of code is clearer than polluting with helper functions. if a large piece of functionality is shared or repeated multiple times then it can be abstracted but you should favour inline code where possible. small pieces of functionality should be inlined instead of abstracted.
  • Do not stage, commit (including locally), push, publish artifacts, or trigger remote CI unless explicitly instructed. Keep work-session timestamps out of authored reports and documentation.
  • As you make changes, if it is small (e.g. single/couple line addition) or if it is critical to your implementation, make the change.
  • Clean up any temporary files or directories you create during your work (including in /private/tmp)
  • ⁠match { Example(_) => ExampleVariant } -> use derive macro for Variant and the conversions instead of littering our code with the extra types and functions ⁠- ⁠instead of children structs holding an Arc, maybe just let them take in a &Db in every method that requires it.
  • when that's not feasible, evaluate whether passing in an Arc is fine, and if not make sure that holding an Arc won't leak the memory based on how the child is stored in parent.

Read the full file on GitHub · 58 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. 1mo ago Changed · +20 tokens per session 2f9a05a4ed84
  2. 2mo ago First seen · 58 lines · 934 tokens per session scan C e3b41eb4b447

Subscribe to this mod's changes

helix-db AGENTS.md is an instructions file published in the GitHub repository HelixDB/helix-db (6,268 stars, last pushed yesterday), licensed Apache-2.0. It adds 954 tokens to every session, about $0.0038 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

helix-db AGENTS.md compared with instructions from other repositories

helix-db AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
helix-db AGENTS.mdHelixDB/helix-dbInstructions file6.3kyesterdayApache-2.0C954Codex, 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