Noema AGENTS.md

A repository instruction file for Noema, a Rust command-line application and MCP server, describing its code layout, commands, style, and testing rules.

In plain words
What is it for?
Use it when modifying Noema's Rust modules, SQLite migrations, TypeScript Obsidian plugin, or Python memory provider, or when building and testing the project.
Why use it?
It gives coding agents the project-specific context needed to make changes that fit the repository and use the right build and test commands.

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/fail-safe/noema/agents-md
Clone the repo
git clone --depth 1 https://github.com/Fail-Safe/Noema

Made for: Codex, OpenCode.

Per session 791 This file is loaded in full into every session.
When invoked 791 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.00791 $0.00791
Opus 5 $0.00396 $0.00396
Sonnet 5 $0.00158 $0.00158
Haiku 4.5 $0.00079 $0.00079

Measured 2d ago against content hash b0f65afc649c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Noema 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 2d 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.

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 · 69 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

Noema is a Rust 2024 CLI and MCP server with a minimum supported Rust version of 1.88. The executable entry point is src/main.rs; implementation lives in src/, grouped by domain modules such as cli, cortex, db, mcp, federation, watch, consolidation, embedding, and trace. SQLite migrations are in migrations/. Unit tests live beside the code they cover; process-death and recovery integration tests live in tests/*.rs.

Plugins are separate: plugins/obsidian/ is a TypeScript Obsidian plugin, and plugins/hermes/ is a Python Hermes memory provider with pytest tests. Shared scripts live in scripts/; security notes and qualification material live in SECURITY.md and tests/. The completed Go-to-Rust evaluation is retained in docs/why-rust.md and the related rewrite documents as historical evidence.

Build, Test, and Development Commands

  • make build: builds the development binary at ./noema.
  • cargo run -- <args>: runs the CLI without copying a root binary.
  • cargo build --locked: builds the Rust crate using Cargo.lock.
  • make test: runs formatting, strict Clippy checks, and all Rust tests.
  • cargo test --all-targets --locked: runs the complete Rust test suite.
  • make release-check: builds and smoke-tests the optimized host binary.
  • cd plugins/obsidian && npm ci && npm run build && npx tsc --noEmit: validates the Obsidian plugin.
  • cd plugins/hermes && pytest: runs Hermes plugin tests when Python changes.

Coding Style & Naming Conventions

Use cargo fmt for formatting and keep modules small and domain-named. New warnings must pass cargo clippy --all-targets -- -D warnings. Prefer existing Clap command patterns in src/cli.rs and existing storage/mutation APIs in src/cortex.rs over new cross-cutting abstractions. SQL migrations use zero-padded numeric prefixes such as 016_trace_embeddings.sql.

For TypeScript, keep sources in plugins/obsidian/src/ and let the existing esbuild and TypeScript configs define output and type checks.

Read the full file on GitHub · 69 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. 2d ago First seen · 69 lines · 791 tokens per session scan A b0f65afc649c

Subscribe to this mod's changes

Noema AGENTS.md is an instructions file published in the GitHub repository Fail-Safe/Noema (19 stars, last pushed 3d ago), licensed MIT. It adds 791 tokens to every session, about $0.0040 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.