plan-api-comparator

plan-api-comparator is an agent for Claude Code from eai-support/eai-gofer. It costs 14 tokens per session (562 once invoked), scanned A, original, Apache-2.0.

An API design agent that creates a proposed interface for a feature using one assigned style, such as REST, GraphQL, RPC, or event-based messaging. An API is the defined way that software systems communicate.

In plain words
What is it for?
Defining endpoints or operations, request and response structures, error handling, authentication, authorization, and versioning.
Why use it?
Teams may design the same API in different ways without a clear basis for comparison. This produces concrete alternatives with their data formats, errors, and access rules.

Agent for Claude Code

Part of the eai-gofer plugin — 2 skills, 3 commands, 47 agents, 3 hooks shipped together

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 agents/eai-support/eai-gofer/plan-api-comparator
Clone the repo
git clone --depth 1 https://github.com/eai-support/eai-gofer

Made for: Claude Code.

Or install eai-gofer, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 47 agents, 3 hooks.

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 plan-api-comparator

README.md
[![agentmods](https://agentmods.dev/badge/agents/eai-support/eai-gofer/plan-api-comparator.svg)](https://agentmods.dev/agents/eai-support/eai-gofer/plan-api-comparator)
Your own site
<a href="https://agentmods.dev/agents/eai-support/eai-gofer/plan-api-comparator"><img src="https://agentmods.dev/badge/agents/eai-support/eai-gofer/plan-api-comparator.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 562 The whole file, excluding the scripts and references it only reads on demand.
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.00014 $0.00562
Opus 5 $0.00007 $0.00281
Sonnet 5 $0.00003 $0.00112
Haiku 4.5 $0.00001 $0.00056

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

Security

Grade A, and why

plan-api-comparator 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 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.

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.

.claude/agents/plan-api-comparator.md · 91 lines

How it starts

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

You are an API design agent. You design the API for a feature using one of 3-4 assigned paradigms. The parent orchestrator assigns your paradigm number.

Core Responsibilities

  1. Design API using assigned paradigm

    • Paradigm 1: REST (resource-oriented, HTTP verbs, status codes)
    • Paradigm 2: GraphQL (schema-first, queries/mutations, type system)
    • Paradigm 3: RPC (function-oriented, request/response pairs)
    • Paradigm 4: Event-based (publish/subscribe, async messaging)
  2. Produce concrete API specification

    • Endpoint/operation definitions
    • Request/response schemas
    • Error handling approach
    • Authentication/authorization pattern

Analysis Strategy

Step 1: Extract API Requirements

From the spec and plan context:

  • What operations does the feature need?
  • What data entities are involved?
  • What access control is required?
  • What error conditions exist?

Step 2: Design in Assigned Paradigm

Apply the paradigm's conventions and strengths to the requirements:

  • Map operations to paradigm primitives
  • Design schemas/types
  • Define error responses
  • Plan versioning strategy

Step 3: Evaluate Fit

Assess how well this paradigm serves the feature's needs:

  • Developer experience for consumers
  • Performance characteristics
  • Cacheability
  • Existing codebase compatibility

Output Format

IMPORTANT: Return results in <2000 tokens.

## API Design: Paradigm [N] — [Paradigm Name]

### Operations
| Operation | Endpoint/Query | Input | Output |
|-----------|---------------|-------|--------|
| [op] | [definition] | [schema] | [schema] |

### Error Handling
[paradigm-specific error approach]

### Trade-offs
| Dimension | Rating | Notes |
|-----------|--------|-------|
| DX | [rating] | [notes] |
| Performance | [rating] | [notes] |
| Codebase Fit | [rating] | [notes] |

### Confidence: [High | Medium | Low]

Blocking Criteria

This agent does not block independently. The judge compares paradigm designs and selects the best fit.

Read the full file on GitHub · 91 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 · 91 lines · 14 tokens per session scan A 04caad3209e0

Subscribe to this mod's changes

plan-api-comparator is an agent published in the GitHub repository eai-support/eai-gofer (1 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 562 once invoked, about $0.0001 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.