engram: Instructions file for Codex

AGENTS.md

engram AGENTS.md is an instructions file for Codex, OpenCode from Gentleman-Programming/engram. It costs 1,042 tokens per session, scanned A, original, MIT.

A guide for using the Engram project's collection of agent skills. It tells an agent which instructions to load for different kinds of code changes.

In plain words
What is it for?
Use it to choose and load the relevant skill before coding, reviewing changes, creating a pull request, changing sync behavior, or modifying system boundaries.
Why use it?
It helps agents follow the project's rules for architecture, business behavior, pull requests, commits, and other sensitive changes.

Instructions file for CodexOpenCode

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

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

About the project

Engram is a local or cloud-backed memory system for AI coding agents, provided as a single Go binary with SQLite full-text search and interfaces including a command line, HTTP API, MCP server, and terminal UI. It helps compatible coding agents retain project decisions, bugs, conventions, and other useful context across sessions. The catalogue add-ons configure and operate Engram’s memory workflows.

Gentleman-Programming/engram · 7,815 stars · on GitHub · engram.gentlemanprogramming.com

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gentleman-programming/engram/agents-md"><img src="https://agentmods.dev/badge/instructions/gentleman-programming/engram/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,042 This file is loaded in full into every session.
When invoked 1,042 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01042 $0.01042
Opus 5.5 $0.00417 $0.00417
Sonnet 5.5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

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

Security

Grade A, and why

engram 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 11d 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 · 39 lines

How it starts

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

Engram — Agent Skills Index

Before contributing, read CONTRIBUTING.md for the issue-first workflow.

The contribution policy transition is PRE-CUTOVER / NOT ACTIVE; continue following the active issue-first requirements.

When working on this project, load the relevant skill(s) BEFORE writing any code.

How to Use

  1. Check the trigger column to find skills that match your current task
  2. Load the skill by reading the SKILL.md file at the listed path
  3. Follow ALL patterns and rules from the loaded skill
  4. Multiple skills can apply simultaneously

Skills

Skill Trigger Path
engram-architecture-guardrails Any change that affects system boundaries, ownership, state flow, or cross-package responsibilities. skills/architecture-guardrails/SKILL.md
engram-branch-pr When creating a pull request, opening a PR, or preparing changes for review. skills/branch-pr/SKILL.md
engram-business-rules Any change that affects sync behavior, project controls, permissions, or memory semantics. skills/business-rules/SKILL.md
engram-commit-hygiene Any commit creation, review, or branch cleanup. skills/commit-hygiene/SKILL.md
engram-cultural-norms Starting substantial work, reviewing changes, or defining team conventions. skills/cultural-norms/SKILL.md
engram-dashboard-htmx Any change to htmx attributes, partial updates, forms, or server-rendered browser UI. skills/dashboard-htmx/SKILL.md
engram-docs-alignment Any code or workflow change that affects user or contributor behavior. skills/docs-alignment/SKILL.md
engram-issue-creation When creating a GitHub issue, reporting a bug, or requesting a feature. skills/issue-creation/SKILL.md
engram-memory-protocol Decisions, bugfixes, discoveries, preferences, or session closure. skills/memory-protocol/SKILL.md
engram-plugin-thin Changes in plugin scripts/hooks for Claude, OpenCode, Pi, Gemini, or Codex. skills/plugin-thin/SKILL.md
engram-pr-review-deep Reviewing any external or internal contribution before merge. skills/pr-review-deep/SKILL.md
engram-project-structure Creating files, packages, handlers, templates, styles, or tests in this repo. skills/project-structure/SKILL.md
engram-server-api Any route, handler, payload, or status code modification. skills/server-api/SKILL.md
engram-testing-coverage When implementing behavior changes in any package. skills/testing-coverage/SKILL.md
engram-tui-quality Changes in model, update, view, navigation, or rendering. skills/tui-quality/SKILL.md
engram-ui-elements Adding or changing dashboard UI components or connected browsing flows. skills/ui-elements/SKILL.md
engram-visual-language Any dashboard styling, typography, spacing, or visual identity change. skills/visual-language/SKILL.md
engram-backlog-triage Auditing open issues or PRs, triaging the backlog, or reviewing contributor submissions as a maintainer. skills/backlog-triage/SKILL.md
gentleman-bubbletea When editing Go files in installer/internal/tui/, working on TUI screens, or adding new UI features. skills/gentleman-bubbletea/SKILL.md

Read the full file on GitHub · 39 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. 11d ago Changed · +2 lines · +33 tokens per session 383b2b8cbd97
  2. 28d ago Changed · +2 tokens per session 8eabed5556d7
  3. 1mo ago Changed · +2 lines · +23 tokens per session 091e7d0aa655
  4. 2mo ago Changed · -1 lines · -41 tokens per session 5b1d3ffa90a2
  5. 2mo ago First seen · 36 lines · 1,025 tokens per session scan A 8444fe684151

Subscribe to this mod's changes

engram AGENTS.md is an instructions file published in the GitHub repository Gentleman-Programming/engram (7,815 stars, last pushed yesterday), licensed MIT. It adds 1,042 tokens to every session, about $0.0042 per session on Opus 5.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

engram AGENTS.md compared with instructions from other repositories

engram AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
engram AGENTS.mdGentleman-Programming/engramInstructions file7.8kyesterdayMITA1,042Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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