moraine AGENTS.md

moraine AGENTS.md is an instructions file for Codex, OpenCode from eric-tramel/moraine. It costs 2,733 tokens per session, scanned A, original, Apache-2.0.

A repository guide containing the project’s folder structure, commands, coding conventions, and testing rules. It describes a Rust workspace, where several related Rust packages are developed together.

In plain words
What is it for?
Use it when adding code, choosing where a module belongs, running builds or tests, checking formatting, or working with database migrations and local services.
Why use it?
It gives contributors one place to check how the repository is organized and how changes should be built, tested, formatted, and reviewed.

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/eric-tramel/moraine/agents-md
Clone the repo
git clone --depth 1 https://github.com/eric-tramel/moraine

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eric-tramel/moraine/agents-md.svg)](https://agentmods.dev/instructions/eric-tramel/moraine/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/eric-tramel/moraine/agents-md"><img src="https://agentmods.dev/badge/instructions/eric-tramel/moraine/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,733 This file is loaded in full into every session.
When invoked 2,733 The same file — it is already loaded in full.
Security scan A 1 finding. 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.02733 $0.02733
Opus 5 $0.01367 $0.01367
Sonnet 5 $0.00547 $0.00547
Haiku 4.5 $0.00273 $0.00273

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

Security

Grade A, and why

moraine AGENTS.md scanned grade A 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS "http://127.0.0.1:${port}/api/v1/health"
AGENTS.md · 146 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This repository is a Rust workspace for local Moraine services and shared libraries.

  • apps/: binary crates (moraine, moraine-ingest, moraine-monitor, moraine-mcp).
  • crates/: shared libraries (config, ClickHouse client, ingest/monitor/MCP core logic).
  • sql/: ordered schema and migration SQL (001_...sql, 002_...sql, etc.).
  • config/: default runtime/config templates (moraine.toml, ClickHouse XML).
  • scripts/: CI helpers, packaging, docs tooling.
  • docs/: MkDocs source; generated site output goes to site/.
  • web/monitor/: static monitor UI assets served by monitor service.

Prefer adding new runtime logic under apps/ + crates/ (not legacy rust/ or moraine-monitor/ paths).

Build, Test, and Development Commands

  • cargo build --workspace --locked: build all workspace crates.
  • cargo test --workspace --locked: run unit/integration tests across workspace.
  • cargo fmt --all -- --check: enforce formatting (matches CI).
  • bash scripts/ci/e2e-stack.sh: run functional stack + MCP smoke test.
  • bin/moraine up / bin/moraine status / bin/moraine down: local stack lifecycle.
  • make install: build the current checkout for the host target and install it over the active moraine on your PATH (release bundle → the same scripts/install.sh path users get; ClickHouse skipped by default, INSTALL_ARGS="--with-clickhouse" to include it). Use this to test tip-of-branch on the host instead of waiting for a tagged release. See scripts/dev/install-host.sh --help.
  • make docs-build / make docs-serve: MkDocs build/serve.
  • make hooks-install: enable the repo-managed git hooks (.githooks/pre-commit runs cargo fmt --check and the same clippy strict baseline CI uses). One-time per clone; bypass a single commit with SKIP_PRECOMMIT=1 git commit ... or git commit --no-verify.
  • make agent-plugins-install: register the Codex Moraine marketplace from the configured main branch and install/update the moraine-dev contributor workflow plugin. Use AGENT_PLUGINS_SOURCE=current only when testing unmerged plugin changes from the current checkout.

Read the full file on GitHub · 146 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 First seen · 146 lines · 2,733 tokens per session scan A 4e12f2739b5b

Subscribe to this mod's changes

moraine AGENTS.md is an instructions file published in the GitHub repository eric-tramel/moraine (116 stars, last pushed 18d ago), licensed Apache-2.0. It adds 2,733 tokens to every session, about $0.0137 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.