hippo-memory: Instructions file for Codex

AGENTS.md

hippo-memory AGENTS.md is an instructions file for Codex, OpenCode from kitfunso/hippo-memory. It costs 1,361 tokens per session, scanned A, original, MIT.

Project guidance for hippo-memory, a TypeScript memory system with a command-line interface, user interface, integrations, benchmarks, and evaluation tools. It lists required checks and rules for protecting stored information and public APIs.

In plain words
What is it for?
Use it when changing the CLI, APIs, memory behavior, UI, integrations, evaluation code, or release build process.
Why use it?
It helps agents preserve compatibility and avoid storing secrets or damaging memory history while making changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 hippo-memory AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kitfunso/hippo-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/kitfunso/hippo-memory/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,361 This file is loaded in full into every session.
When invoked 1,361 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.01361 $0.01361
Opus 5.5 $0.00544 $0.00544
Sonnet 5.5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

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

Security

Grade A, and why

hippo-memory 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 21d 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 · 75 lines

How it starts

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

AGENTS.md - Hippo

Project

  • hippo-memory, a TypeScript memory system and CLI with UI, integrations, benchmarks, and evaluation harnesses.
  • Read README.md, PLAN.md, ROADMAP.md, and relevant docs before broad product or architecture changes.
  • Work plane boundary: docs/plans/2026-09-12-work-plane-boundary.md (ROADMAP Part VII, Track W, W0).

Commands

npm run build
npm test
npm run test:eval   # the eight slow token-eval harness tests, which npm test skips; --project codex runs the four Codex ones
npm run build:ui
npm run build:all
npm run smoke:pack
npm run smoke:openclaw-install

Rules

  • Preserve public CLI and package APIs unless the user asks for a breaking change.
  • Document public APIs with JSDoc.
  • Prefer focused tests in tests/ or nearby integration/eval harnesses before changing memory behavior.
  • Name a new test file after the behaviour it pins, not the ticket (store-stats-concurrency.test.ts, not a7-t3.test.ts). Seed test stores through makeRoot or makeStore, createMemory and writeEntry; write raw SQL only when the test is about SQL. makeRoot copies a store migrated once per run, so call initStore only to test a migration or a first open.
  • A test that starts a child process ends in .process.test.ts; one that starts only the HTTP server or a worker thread ends in .server.test.ts. Both get 30 s and the rest 5 s; scripts/checks/check-test-env.mjs fails a name that does not match.
  • A new test file needs a contract with no owner file: find the owner and add a row first.
  • One owner per contract at the strongest boundary, with one wire-up row per other transport; a test written to carry a refactor is deleted by the PR that lands it.
  • No production export for a test; seed helpers live in tests/_helpers.
  • Do not commit generated dist/ or UI build output unless the repo expects it for a release.
  • A PR's changelog entry goes in its own changelog.d/<branch-with-dashes>.md, never in CHANGELOG.md; the release commit folds them in (changelog.d/README.md).
  • The site in website/ has its own rules, in website/AGENTS.md: read them before a change there.
  • CI fails when any oxlint rule's hit count rises above .oxlint-baseline.json. Fix new hits in the files you touch; after clearing old ones, node scripts/checks/check-lint-ratchet.mjs --update and commit the lower baseline.
  • Comments say why, in one line. Ticket codes, versions, reviewer notes and dates go to docs or the git log; CI fails when a file's count of them rises above .comment-history-baseline.json. After rewriting old ones, node scripts/checks/check-comment-history.mjs --update and commit the lower baseline.
  • No src/ or test file over 800 lines, no src/ function over 50 lines (80 in scripts/) and no function over 5 positional parameters: oxlint's max-lines, max-lines-per-function and max-params hold them through the lint ratchet. No new src/ line over 120 characters: node scripts/checks/check-long-lines.mjs, with --update after removing old ones.
  • An eval that reads host transcripts (~/.claude/projects/*.jsonl) copies its corpus outside the repo at registration and names the copy in the prereg: Claude Code deletes sessions after 30 days by default, so a live-path corpus cannot be re-run.
  • Use Hippo memory commands when useful, but do not store secrets.
  • The compactions table is one record per Claude Code compaction, not a memory row: recall, FTS, context and sleep's memory passes never read it. Memories saved from a compaction carry the compaction-memory tag and a compaction: source and fade like any other memory; a restated item is skipped, and another session's restatement strengthens the row it repeats. The keep rule (KEEP_PAIRS in src/base/memory/memory.ts) covers imported agent memories only and needs tag and source both; canAutoDelete and AUTO_DELETABLE_SQL (src/store/rule-sql.ts) must change together. No automatic pass (sleep, dedupe, audit) deletes a memory that backs an object: AUTOMATIC_DELETE_SQL in src/store/delete-and-batch.ts checks every table in MEMORY_BACKED_TABLES.

Read the full file on GitHub · 75 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. 21d ago Changed · +1 lines · +28 tokens per session ee8f6f421395
  2. 1mo ago Changed · +1 lines · +142 tokens per session 928d4f60b227
  3. 1mo ago Changed · +2 lines · +44 tokens per session 5d9cac51c1bc
  4. 1mo ago Changed · +11 tokens per session ec62d3797e91
  5. 1mo ago Changed · +12 tokens per session afea3c16a28b
  6. 1mo ago Changed · +3 lines · +75 tokens per session 55c977b2c8c0
  7. 1mo ago Changed · +1 lines · +19 tokens per session 8b07917ad521
  8. 1mo ago Changed · +1 lines · +64 tokens per session 28142039eb6b
  9. 1mo ago Changed · +77 tokens per session 13ca21618f5f
  10. 2mo ago First seen · 66 lines · 889 tokens per session scan A fb2083dc61f7

Subscribe to this mod's changes

hippo-memory AGENTS.md is an instructions file published in the GitHub repository kitfunso/hippo-memory (799 stars, last pushed today), licensed MIT. It adds 1,361 tokens to every session, about $0.0054 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

hippo-memory AGENTS.md compared with instructions from other repositories

hippo-memory AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hippo-memory AGENTS.mdkitfunso/hippo-memoryInstructions file799todayMITA1,361Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot