stoa CLAUDE.md

stoa CLAUDE.md is an instructions file for coding agents from stoa-platform/stoa. It costs 3,597 tokens per session, scanned B, original, Apache-2.0.

Project instructions for STOA Platform, an open-source API management system that connects traditional APIs to AI agents. They describe its architecture and its Universal API Contract, the main definition of how an API operation is exposed.

In plain words
What is it for?
Use them when changing API contracts, MCP tool generation, agent-facing metadata, or related smoke tests in the STOA repository.
Why use it?
They give coding agents the project’s rules for designing, exposing, and testing API operations consistently.

Instructions file

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/stoa-platform/stoa/claude-md
Clone the repo
git clone --depth 1 https://github.com/stoa-platform/stoa

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 stoa CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stoa-platform/stoa/claude-md.svg)](https://agentmods.dev/instructions/stoa-platform/stoa/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stoa-platform/stoa/claude-md"><img src="https://agentmods.dev/badge/instructions/stoa-platform/stoa/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,597 This file is loaded in full into every session.
When invoked 3,597 The same file — it is already loaded in full.
Security scan B 2 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.03597 $0.03597
Opus 5 $0.01799 $0.01799
Sonnet 5 $0.00719 $0.00719
Haiku 4.5 $0.00360 $0.00360

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

Security

Grade B, and why

stoa CLAUDE.md scanned grade B with 2 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Règles binaires GO/NOGO. Détail on-demand dans `.claude/docs/<rule>.md`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- stoactl > curl/bash. Lire `.claude/context/cli-reference.md` avant de scanner src/.
CLAUDE.md · 250 lines

How it starts

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

CLAUDE.md — STOA Platform

Project

STOA Platform — "The European Agent Gateway"

  • API Management AI-Native Open Source (Apache 2.0)
  • Kill feature: UAC (Universal API Contract) — "Define Once, Expose Everywhere"
  • Legacy-to-MCP Bridge: connect traditional APIs to AI agents

UAC / Agent Contract Doctrine

Canonical rule from ADR-067:

UAC describes.
MCP projects.
Smoke proves.

For any API operation exposed to agents:

  • UAC is the primary product contract; MCP tools are projections of UAC operations.
  • LLM metadata is endpoint-level, not contract-level.
  • V1: missing endpoint.llm metadata is a warning/review note; malformed metadata is an error.
  • V2 target: new MCP-exposed endpoints must be LLM-ready before merge.
  • side_effects=destructive requires requires_human_approval=true.
  • A feature exposed to an agent should not exist only in code; it must be attached to a UAC operation or flow contract.

Load .claude/docs/uac-llm-ready.md when touching UAC schemas, UAC examples, MCP tool generation, smoke tests for MCP projections, or API operations exposed to agents.

Architecture

CONTROL PLANE (Cloud)                    DATA PLANE (On-Premise)
┌────────────────────────────┐           ┌──────────────────────┐
│ Portal  Console  API  Auth │  ←sync→   │ STOA GW webMethods   │
│ (React) (React) (Py) (KC) │           │ (Rust)  Kong/Envoy   │
└────────────────────────────┘           └──────────────────────┘

Components

Component Tech Path
Control Plane API Python 3.11, FastAPI, SQLAlchemy control-plane-api/
Console UI React 19, TypeScript, Keycloak-js control-plane-ui/
Developer Portal React, Vite, TypeScript portal/
STOA Gateway Rust, Tokio, axum stoa-gateway/
STOA Go (stoactl + stoa-connect) Go 1.25, Cobra, keyring stoa-go/
CLI (legacy) Python, Typer, Rich cli/
E2E Tests Playwright, BDD, Gherkin e2e/
Helm Chart Helm 3 charts/stoa-platform/

Read the full file on GitHub · 250 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. 3d ago First seen · 250 lines · 3,597 tokens per session scan B 3aac1103f9bc

Subscribe to this mod's changes

stoa CLAUDE.md is an instructions file published in the GitHub repository stoa-platform/stoa (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3,597 tokens to every session, about $0.0180 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.