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.
npx agentmods add instructions/lahkiri/xeo-forge/agents-mdgit clone --depth 1 https://github.com/lahkiri/xeo-forgeWrote 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.
[](https://agentmods.dev/instructions/lahkiri/xeo-forge/agents-md)<a href="https://agentmods.dev/instructions/lahkiri/xeo-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/lahkiri/xeo-forge/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.06360 | $0.06360 |
| Opus 5 | $0.03180 | $0.03180 |
| Sonnet 5 | $0.01272 | $0.01272 |
| Haiku 4.5 | $0.00636 | $0.00636 |
Grade A, and why
xeo-forge 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 504 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Xeo Forge V3 — Agent & Architecture Rules
Product contract: The Control Plane for Agentic Work. Chat is conversation; Work is governed agency.
This file is the contract for working in this repo. Keep it short, keep it enforced. If a change violates a rule here, the change is wrong — not the rule.
1. What this product is
One governed AI agent with reusable execution context:
- Chat surface — conversational answers and exploration; it never creates a plan or executes write tools.
- Work surface — intent-aware agent work. Normal messages stay conversational; explicit planning starts Planning, and direct execution requests pause for an auditable user choice.
- Planning mode — read-only inspection, produces a structured plan for approval.
- Build mode — executes an immutable approved plan or an immutable, explicitly accepted execution brief.
- Context layers — Prompt Studio instructions, approved memories, Agent Profiles, and Agent Skills are compiled into the run context.
The agent:
- receives a conversation or Work request from a user and classifies intent before selecting planning or execution,
- loads policy, profile, skill, task context, and approved memories,
- inspects and analyzes (planning) or executes (build),
- returns a final result and bounded memory candidates,
- persists full history and audit events,
- consumes credits per run.
Plus auth, per-user credits, admin controls, ONE global model configuration, reusable profiles and skills, context management, and an inspectable audit trail.
New capabilities must preserve the approval gate, task-scoped authorization, single source of truth, and end-to-end UI-to-persistence behavior.
2. Hard architecture rules (non-negotiable)
- Single source of truth. One canonical schema per entity. One writer per resource. No dual persistence. No second copy of the same logical data that can drift.
- One delivery path for events. Task events are persisted with a monotonic
per-task
seq. SSE replays from the DB only, tracksmaxSeq, then forwards live events withseq > maxSeq. No in-memory replay buffer racing the DB. (This is the V1 duplication bug. Do not reintroduce it.) - No silent failures. No
catch {}without logging. Every caught error is logged with context. Persistence failures must be visible, never swallowed. - End-to-end or not at all. No UI control that points at a route that does not exist. No route that only half-works. Build the full path: input → agent → tools → persistence → UI.
- One global model. All users share one model config. No per-user model
selection. Source of truth:
model_settingsrow id=1, seeded from env. API keys are NEVER returned to any client — always masked. - Credits are atomic. Debit via conditional
UPDATE ... WHERE balance >= ?. Every balance change writes acredit_ledgerrow withbalance_after. No read-then-write race. - Authz on every task-scoped route. Owner-or-admin check, always.
- No ungoverned feature creep. Do not add subagents, teams, connectors, schedules, marketplaces, plugins, analytics, or permission frameworks without a written V3 design, explicit authorization boundaries, and an end-to-end path.
- No dead code. Don't scaffold for "future features". Delete what isn't used.
- Typecheck stays clean.
tsc --noEmithas zero errors. Never hide errors behindignoreBuildErrors.
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.
- 3d ago First seen · 504 lines · 6,360 tokens per session scan A adf2ab834b64
xeo-forge AGENTS.md is an instructions file published in the GitHub repository lahkiri/xeo-forge (11 stars, last pushed 4d ago), licensed MIT. It adds 6,360 tokens to every session, about $0.0318 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.
Other instructions, from other repositories
full-stack-ai-agent-template CLAUDE.md
Instructions for vstorm-co/full-stack-ai-agent-template, covering claude.md, project overview, commands, install dependencies and run tests.
commonly CLAUDE.md
Claude Code instructions for Team-Commonly/commonly, covering claude.md / agents.md, 🧠 product vision & architecture philosophy, what commonly is, the architecture model and key concepts.
FastGPT AGENTS.md
AGENTS.md instructions for labring/FastGPT, covering agents.md, 项目概述, 设计文档, 架构 and packages (库代码).
mastra AGENTS.md
AGENTS.md instructions for mastra-ai/mastra: Unless asked, don't inspect reference or modify examples. Use the most-specific AGENTS.md; for package work, read packages/ /AGENTS.md first.
flight-finder AGENTS.md
AGENTS.md instructions for affromero/flight-finder, covering agents.md, stack, setup, checks (run before every commit and pr) and or individually.
langfuse AGENTS.md
AGENTS.md instructions for langfuse/langfuse, a project described as: 🪢 Open source AI engineering platform: LLM evals, observability, metrics, prompt management, playground, datasets. Integrates with OpenTelemetry, LangChain, OpenAI SDK, LiteLLM, and more. 🍊YC W23.