hermes-production-patterns: Instructions file for Codex

AGENTS.md

hermes-production-patterns AGENTS.md is an instructions file for Codex, OpenCode from Komagon/hermes-production-patterns. It costs 841 tokens per session, scanned A, original, MIT.

A collection of production patterns, conventions, templates, and examples for building autonomous AI-agent systems. The patterns cover topics such as state files, scheduled jobs, checkpoints, secrets, memory, error recovery, and review roles.

In plain words
What is it for?
Use them when designing agent workflows, state management, scheduled tasks, recovery points, maker-checker reviews, memory systems, or regression tests.
Why use it?
They provide established structures for agents that must recover from errors, preserve progress, protect secrets, or update themselves safely.

Instructions file for CodexOpenCode

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

This is Komagon/hermes-production-patterns's own configuration. It tells Codex and OpenCode how to work on hermes-production-patterns 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 hermes-production-patterns configures →

Reuse

Borrowing it

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

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 hermes-production-patterns AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/komagon/hermes-production-patterns/agents-md"><img src="https://agentmods.dev/badge/instructions/komagon/hermes-production-patterns/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 841 This file is loaded in full into every session.
When invoked 841 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.00841 $0.00841
Opus 5.5 $0.00336 $0.00336
Sonnet 5.5 $0.00168 $0.00168
Haiku 4.5 $0.00084 $0.00084

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

Security

Grade A, and why

hermes-production-patterns 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 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.

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

How it starts

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

Hermes Production Patterns

项目概述

此仓库包含一套生产级的 Hermes Agent 工程模式、公约和模板。目标是帮助开发者从「手写提示词」进化到「设计自主运行的 Agent 系统」。

核心能力

能力 入口点
Maker/Checker 分离 conventions/maker-checker.md
状态文件管理 conventions/state-file-pattern.md
控制流分离 conventions/control-flow-separation.md
错误压缩与自愈 conventions/error-compact-pattern.md
技能进化 conventions/skill-evolution.md
Cron 任务设计 conventions/cron-job-pattern.md
检查点恢复 conventions/checkpoint-pattern.md
密钥管理 conventions/secret-management.md
数据驱动技能优化 conventions/data-driven-optimization.md
💡 反面模式 conventions/anti-patterns.md
🧩 模式组合指南 conventions/pattern-composition.md
📐 状态文件 Schema conventions/state-schema.json
🔄 自更新安全流程 conventions/self-update-pattern.md
🧠 认知记忆系统 conventions/memory-os-pattern.md
📈 进化闸门 conventions/evolution-gate.md
🔒 数据隐私 conventions/data-retention-privacy.md
⚖️ 决策契约(判断/授权/执行分离) conventions/decision-contract.md
回归反测集 test-prompts.json(36 条,含 assertions/forbidden)
模板 templates/
设计模式 patterns/
实战示例 examples/
公众号文章流水线 examples/wechat-article-pipeline.md
🚀 Starter Kits(6 个可复制骨架) starter-kits/(入口 starter-kits/index.md)
🚀 Production Stacks(5 个官方组合) stacks/(入口 stacks/index.md)
🚀 10-Minute Quick Start quickstart.md
🚀 Production Recipes(7 个完整方案) recipes/(入口 recipes/index.md)
🚀 Production Audit + Readiness Score audit/audit.md
🚀 兼容性矩阵 compatibility/README.md
🚀 hpp CLI(init/add/validate/audit/doctor) cli/hpp.py

你的角色

  • 新用户路径:读 quickstart.md → 复制 starter-kit → 按验证清单跑通
  • 阅读 conventions/ 理解工程模式 — 这些是可执行的技能文件
  • 阅读 patterns/ 理解方法论 — 这些是设计决策的上下文
  • 使用 templates/ 快速起步 — 填空即用
  • 选场景方案 — 先看 stacks/ 组合,再看 recipes/ 完整方案
  • 验收项目 — cli/hpp audit 出五维得分,audit/checks/checklist.md 逐项核对

约束

  • 不要修改 conventions/ 文件的内容来绕过设计意图
  • 所有 Cron 任务必须经过 L1→L2→L3 成熟度分级
  • Maker 和 Checker 必须是独立的 Agent 实例
  • 错误信息必须压缩后写入上下文

Read the full file on GitHub · 56 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 · +2 lines · +46 tokens per session f70a90ff5f42
  2. 2mo ago Changed 0dcbee202868
  3. 2mo ago Changed · +10 lines · +241 tokens per session 08ebee8d7b20
  4. 2mo ago First seen · 44 lines · 554 tokens per session scan A 656a22c963f4

Subscribe to this mod's changes

hermes-production-patterns AGENTS.md is an instructions file published in the GitHub repository Komagon/hermes-production-patterns (17 stars, last pushed 12d ago), licensed MIT. It adds 841 tokens to every session, about $0.0034 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

hermes-production-patterns AGENTS.md compared with instructions from other repositories

hermes-production-patterns AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hermes-production-patterns AGENTS.mdKomagon/hermes-production-patternsInstructions file1712d agoMITA841Codex, 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