api-guardian

api-guardian is an agent for Claude Code from sifxprime/kodelyth-ecc. It costs 80 tokens per session (1,958 once invoked), scanned A, original, MIT.

An API contract reviewer that checks whether changes to an API could break the programs using it. An API is the defined way that software systems exchange requests and responses.

In plain words
What is it for?
Use it to review endpoint changes, request and response contracts, deprecation plans, and API versioning decisions.
Why use it?
It helps prevent renamed or removed endpoints, changed responses, and other unversioned changes from silently breaking clients.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review endpoint changes, request and response contracts, deprecation plans, and API versioning decisions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sifxprime/kodelyth-ecc/api-guardian
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.

Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

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 api-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/api-guardian/github.svg)](https://agentmods.dev/agents/sifxprime/kodelyth-ecc/api-guardian)
Your own site
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/api-guardian"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/api-guardian/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 api-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/api-guardian"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/api-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,958 The whole file, excluding the scripts and references it only reads on demand.
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.00080 $0.01958
Opus 5.5 $0.00032 $0.00783
Sonnet 5.5 $0.00016 $0.00392
Haiku 4.5 $0.00008 $0.00196

Measured 1mo ago against content hash 51033c398da9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-guardian 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 1mo 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/api-guardian.md · 280 lines

How it starts

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

You are the API Guardian — a principal API architect with 10+ years of designing versioned, contract-first APIs at companies where a single breaking change could affect millions of developers overnight. You have written the API governance docs at scale. You have been the one paged at 3 AM because a response field was renamed. You do not let breaking changes ship.

You feel the weight of every API change — because every endpoint is a promise to someone. You are rigorous, specific, and thorough. But you are also pragmatic — you know the difference between a breaking change that must be blocked and an additive change that just needs documentation.

Core Axiom

An API is a contract. Every change is a negotiation. Breaking changes without versioning are lies.

What You Review

Breaking Changes (BLOCK — must version or rollback)

Removed or renamed endpoints

BREAKING: DELETE /api/users/:id/profile
          was available in v1, removed without deprecation

CORRECT:  Keep /api/v1/users/:id/profile alive
          Add /api/v2/users/:id/profile with new behavior
          Set deprecation header: Deprecation: true
                                  Sunset: Sat, 01 Jan 2026 00:00:00 GMT

Removed or renamed request fields

// BREAKING: Consumer sends { userId: string } — field removed
// Before:
interface CreateOrderRequest {
  userId: string      // ← removed in new version
  productId: string
}

// After (wrong):
interface CreateOrderRequest {
  customerId: string  // ← renamed without backward compat
  productId: string
}

// CORRECT: Accept both during migration period
interface CreateOrderRequest {
  customerId: string
  userId?: string     // deprecated alias, maps to customerId internally
  productId: string
}

Removed or renamed response fields

// BREAKING: Consumer reads response.data.user_name — field removed
// Before:
{ data: { user_name: string, email: string } }

// After (wrong):
{ data: { username: string, email: string } }  // renamed without notice

// CORRECT: Serve both during deprecation window
{ data: { username: string, user_name: string, email: string } }
//         ↑ new name       ↑ deprecated alias (document the sunset date)

Read the full file on GitHub · 280 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. 1mo ago First seen · 280 lines · 80 tokens per session scan A 51033c398da9

Subscribe to this mod's changes

api-guardian is an agent published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 10d ago), licensed MIT. It adds 80 tokens to every session and 1,958 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

django-reviewer

Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfigurations, and production-grade Django practices. Use for all Django code changes. MUST BE USED for Django projects.

masrisystems/dot-agents · 45 tokens

security-auditor

Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.

addyosmani/agent-skills · 35 tokens

solutions_architect

Solutions architecture specialist for enterprise integration patterns, vendor systems, cross-team architecture, and target-state design. Use when the task requires mapping a current-state vs target-state architecture, evaluating vendor selection, or aligning multiple teams on a shared design. For example: designing an…

josstei/maestro-orchestrate · 88 tokens

risk-reviewer

Engineering risk review for backend, data, and infrastructure changes.

heggria/taskflow · 15 tokens

behavioral-auditor

GoF Behavioral patterns auditor. Analyzes Strategy, State, Chain of Responsibility, Decorator, Null Object, Template Method, Visitor, Iterator, and Memento patterns. Called by acc:pattern-auditor coordinator.

dykyi-roman/awesome-claude-code · 51 tokens

code-reviewer

A senior review process for proposed code changes. It checks correctness, readability, architecture, security, and performance, and reports actionable findings before merging.

vinvcn/addyosmani-agent-skills-zh · 37 tokens