calmcp: Instructions file for Codex

AGENTS.md

calmcp AGENTS.md is an instructions file for Codex, OpenCode from consetto/calmcp. It costs 1,715 tokens per session, scanned A, original, MIT.

Contributor instructions for changing calmcp, an MCP server that connects coding agents to SAP Cloud ALM. They describe its code layout, safe write rules, and checks for incomplete or untrusted data.

In plain words
What is it for?
Use them when modifying the server, its API client, response handling, or the instructions given to coding agents.
Why use it?
They help contributors avoid changes that produce believable but incorrect answers, unsafe writes, or instructions hidden in external text.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 calmcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/consetto/calmcp/agents-md"><img src="https://agentmods.dev/badge/instructions/consetto/calmcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,715 This file is loaded in full into every session.
When invoked 1,715 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.01715 $0.01715
Opus 5.5 $0.00686 $0.00686
Sonnet 5.5 $0.00343 $0.00343
Haiku 4.5 $0.00171 $0.00171

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

Security

Grade A, and why

calmcp 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 4d 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 · 89 lines

How it starts

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

calmcp: guide for contributors and coding agents

calmcp is an MCP server for SAP Cloud ALM. The README describes what it does; this file describes how to change it without breaking what models rely on.

Principles

  • Wrong-but-plausible is the failure to avoid. A truncated response, a silently dropped filter or an ignored parameter produces an answer that looks authoritative and is wrong. calmcp therefore rejects what it cannot honour (unknown parameters, unknown fields, $filter on a REST resource), withholds oversized payloads with a summary (src/tools/result.ts), and marks incomplete counts complete: false.
  • Writes are opt-in and narrow. Read-only by default. calm_create only creates; there is no PUT and no DELETE in src/client/httpClient.ts, and a write Cloud ALM may have processed is never retried (only a 401, refused before processing, is sent again with a fresh token). Write payloads are strict schemas transcribed from the OpenAPI specs.
  • Text from Cloud ALM is untrusted. Titles, descriptions and documents are written by other people and may carry instructions. Never let such text decide what calmcp writes.

Layout

Path What lives there
src/index.ts, src/server.ts CLI entry, transports, server assembly, instructions sent to clients, which tools a caller gets
src/transport/ stdio and Streamable HTTP (auth, CORS, rate limit, OAuth redirect allowlist in redirects.ts)
src/client/ The Cloud ALM client, also published as the package @consetto/calm-client: authentication, HTTP client per Cloud ALM service, OData query building, scope hints for 403, connection settings, errors, request budget. Stands on its own: no import from the rest of calmcp
src/auth/, src/calm/ calmcp's side of the client: which authentication to use, calmcp's wording of refusals and hints
packages/calm-client/ Package definition, readme and build configuration of the client; no source
src/tools/index.ts Tool registration: names, descriptions, annotations, input schemas
src/tools/schemas.ts Tool input schemas (zod), made strict at registration
src/tools/registry/ calm_list and calm_get resources: one entry per Cloud ALM collection or entity
src/tools/create.ts calm_create resources and their strict payload schemas
src/tools/update.ts, calmUpdate.ts calm_update resources, field allowlists, the change check and the image guard
src/tools/taskTags.ts calm_update for a task's tags: merge add and remove into the list Cloud ALM replaces, read back what it stored
src/tools/richText.ts The rich-text allowlist and image keys, used by create and update
src/tools/writeOutcome.ts, displayId.ts How an uncertain write is reported; the one display-id lookup
src/tools/analyticsCatalog.ts, recipes.ts, codeLists.ts Static knowledge surfaced by calm_resources
src/tools/counting.ts, aggregate.ts, paging.ts count_only, group_by and the paging behind them
YAML/ (gitignored) The Cloud ALM OpenAPI specs; see docs/API_VERSIONS.md

Read the full file on GitHub · 89 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. 4d ago Changed · +7 lines · +259 tokens per session 8e01927b14d2
  2. 21d ago Changed · +1 lines · +38 tokens per session 19c494e4d6ce
  3. 1mo ago Changed · +5 lines · +170 tokens per session 361643f6eb69
  4. 2mo ago First seen · 76 lines · 1,248 tokens per session scan A 349939ca3efd

Subscribe to this mod's changes

calmcp AGENTS.md is an instructions file published in the GitHub repository consetto/calmcp (6 stars, last pushed today), licensed MIT. It adds 1,715 tokens to every session, about $0.0069 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-10-02.

Related

calmcp AGENTS.md compared with instructions from other repositories

calmcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
calmcp AGENTS.mdconsetto/calmcpInstructions file6todayMITA1,715Codex, OpenCode
plan-forge dapr.instructions.mdsrnichols/plan-forgeInstructions file61mo agoMITA4,975GitHub Copilot
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