Borrowing it
Nothing to install: this file belongs to lahkiri/xeo-forge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lahkiri/xeo-forge/master/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/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.
<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="Reviewed on agentmods" width="80" 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.1 | $0.06360 | $0.06360 |
| Opus 5.5 | $0.02544 | $0.02544 |
| Sonnet 5.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 2mo 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.
- 2mo 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 2mo ago), licensed MIT. It adds 6,360 tokens to every session, about $0.0254 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.
xeo-forge AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xeo-forge AGENTS.mdlahkiri/xeo-forge | Instructions file | 11 | 2mo ago | MIT | A | 6,360 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |