agent-crm AGENTS.md

agent-crm AGENTS.md is an instructions file for Codex, OpenCode from khaoss85/agent-crm. It costs 3,033 tokens per session, scanned A, original, MIT.

A repository instruction file for the Accordo CRM framework. It tells coding agents how to understand the project, choose workflows, change code safely, and verify their work.

In plain words
What is it for?
Use it to guide work on Accordo repositories, especially multi-file features, product decisions and CRM changes. It covers required documents, workflow selection, code-generation safeguards, verification, task updates and documentation.
Why use it?
It gives agents project-specific rules that general coding instructions would not know. These rules help preserve validation, audit records, traceability and the separation between CRM data and AI-assisted development.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/khaoss85/agent-crm/agents-md
Clone the repo
git clone --depth 1 https://github.com/khaoss85/agent-crm

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 agent-crm AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/khaoss85/agent-crm/agents-md.svg)](https://agentmods.dev/instructions/khaoss85/agent-crm/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/khaoss85/agent-crm/agents-md"><img src="https://agentmods.dev/badge/instructions/khaoss85/agent-crm/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,033 This file is loaded in full into every session.
When invoked 3,033 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03033 $0.03033
Opus 5 $0.01517 $0.01517
Sonnet 5 $0.00607 $0.00607
Haiku 4.5 $0.00303 $0.00303

Measured today against content hash b3ae120f22e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-crm 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 today.

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

How it starts

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

Repository guidance

Product intent

This repository is an agent-native CRM framework. Preserve the separation between deterministic CRM state and AI-assisted development/orchestration.

Required workflow

  1. Read PRODUCT.md, ARCHITECTURE.md, DECISIONS.md and the relevant module files before changing code. Before product, positioning, roadmap or public-distribution decisions, read docs/strategy/MASTER_PLAN.md first; for implementation details, ARCHITECTURE.md and DECISIONS.md remain authoritative.
  2. For a multi-file feature or significant refactor, create and maintain an ExecPlan under docs/plans/ following .agent/PLANS.md.
  3. Use public module services and named workflows. Never mutate CRM tables from API, MCP or UI code.
  4. Any write operation must retain validation, audit and trace.
  5. Keep MCP write tools narrow; destructive or code-generating tools must default to dry-run or require an explicit apply flag.
  6. Do not add a production dependency unless it removes more complexity than it adds; record the reason in DECISIONS.md.
  7. Run npm run verify before considering work complete.
  8. Update TASKS.md and relevant docs when behavior changes.
  9. Domain-package work requires the build-custom-domain-package skill (.claude/skills/build-custom-domain-package/SKILL.md, mirrored at .agents/skills/build-custom-domain-package/SKILL.md) and docs/PACKAGE_AUTHORING.md. A package imports only packages/core/index.js, reaches another package only through a declared capability, and is registered by one static import in packages/domains/generated/index.js. A single custom object is a module, not a package.
  10. Follow docs/QUALITY_GATES.md for every feature PR, and use the adversarial-review skill for any milestone review or pre-merge review task (.claude/skills/adversarial-review/SKILL.md, mirrored at .agents/skills/adversarial-review/SKILL.md). A milestone that skipped the review is unreviewed, not finished.
  11. Respect the core budget rule (ADR-018): new domain-specific business behavior does not go into packages/core unless it is first proven to be a reusable runtime capability. A PR that adds a domain concept to core must say which runtime capability it is and why a domain package cannot own it.
  12. Read docs/PROJECT_STATUS.md for what is true in the repository today — merged milestone, the commit the public numbers were measured at, open PRs, production blockers — and update it in the same PR as a milestone merge. Do not put volatile status in MASTER_PLAN.md. It carries no test count: a count is measured into site/claims.json measuredAgainst by node scripts/measure-suite.js --apply and cited from there (ADR-027). Typing one into any document under docs/ fails npm run gtm:check.
  13. To learn what an application actually has, run npm run crm -- app inspect --json rather than assembling it from source and prose (docs/APPLICATION_INSPECTION.md). Read valid, then problems[], then limitations[] — every limitation is a hard boundary on what you may claim. It reads checked-in source only: it opens no database, contacts no provider, and reports no runtime or authorization state.
  14. Compatibility Backfill Rule. When you add or change a horizontal capability — one every domain could use, such as the package seam, a declared capability contract, module evolution, an evidence discipline or an agent-facing surface — record every existing domain's status against it in docs/architecture/LEGACY_ALIGNMENT_MATRIX.md in the same PR, using aligned | partial | deferred | not_applicable | needs_extraction with a one-line reason. Declaring the gap is required; closing it in the same PR is not. Do not refactor a legacy domain to close a row: extraction is sequenced work (docs/architecture/LEGACY_ALIGNMENT_MATRIX.md), not something a feature PR does on the way past.
  15. A Solution Plan is a checked file with a contract, not prose with headings (docs/SOLUTION_PLAN.md). Write it, record the app inspect report it was written against, and run npm run crm -- solution check <plan.json> before writing code and again before the review — a plan bound to a composition that has since moved reports PLAN_STALE. A plan never carries a command: nothing in this framework executes one, and the validator refuses it.
  16. Parallel coding agents. Each agent works in its own sibling worktree outside the repository, owns exactly one branch, and one final integrator reconciles the shared truth. The three rules are in Parallel coding agents below.
  17. The Repository Truth Contract (ADR-039). A sentence in a current document that states what the framework does or does not do is bound to a fact generated from an executable authority, and cited by stable fact id — <!-- truth: spine.managed_jobs_service.implemented=absent -->. Existing gates compare documents to documents, and that is exactly how a whole set of them stayed consistently wrong together after Production Spine v1. npm run repo:truth -- --check runs on every push and pull request as its own step in the public-claims CI job; run it locally when a PR moves a product boundary, a rail, a package contract or the spine, and if a fact moved, run npm run repo:truth and commit the regenerated docs/repository-truth.json in the same PR. It is a repository-maintenance script, not a rail and not a product command: it adds nothing to the surface budget and never leaves this repository. Rules and boundaries: docs/REPOSITORY_TRUTH.md, docs/QUALITY_GATES.md §6.1.

Read the full file on GitHub · 160 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. today Changed · +1 tokens per session b3ae120f22e4
  2. 4d ago First seen · 160 lines · 3,032 tokens per session scan A 28e4b8dd4c61

Subscribe to this mod's changes

agent-crm AGENTS.md is an instructions file published in the GitHub repository khaoss85/agent-crm (2 stars, last pushed 2d ago), licensed MIT. It adds 3,033 tokens to every session, about $0.0152 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-31.