api-agent

api-agent is an agent for Claude Code from bentleypark/claude-code-mobile-spine. It costs 35 tokens per session (1,414 once invoked), scanned A, original, MIT.

A read-only coding agent that reads a backend codebase and creates client-facing API specification files in Markdown.

In plain words
What is it for?
Use it to document API domains for mobile or other client developers. It requires a configured mobile-spine workspace.
Why use it?
It turns backend implementation details into documentation without changing the backend code.

Agent for Claude Code

Written for Claude Code: Claude Code plugin machinery.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Source: ../myapp-backend/{controller path}.

Part of the mobile-spine plugin — 1 skill, 3 commands, 5 agents shipped together

Good fit Use it to document API domains for mobile or other client developers. It requires a configured mobile-spine workspace.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bentleypark/claude-code-mobile-spine
agentmods
npx agentmods add agents/bentleypark/claude-code-mobile-spine/api-agent

Made for: Claude Code.

Or install mobile-spine, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 5 agents.

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-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/bentleypark/claude-code-mobile-spine/api-agent/github.svg)](https://agentmods.dev/agents/bentleypark/claude-code-mobile-spine/api-agent)
Your own site
<a href="https://agentmods.dev/agents/bentleypark/claude-code-mobile-spine/api-agent"><img src="https://agentmods.dev/badge/agents/bentleypark/claude-code-mobile-spine/api-agent/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-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/bentleypark/claude-code-mobile-spine/api-agent"><img src="https://agentmods.dev/badge/agents/bentleypark/claude-code-mobile-spine/api-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 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,414 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.00035 $0.01414
Opus 5.5 $0.00014 $0.00566
Sonnet 5.5 $0.00007 $0.00283
Haiku 4.5 $0.00003 $0.00141

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

Security

Grade A, and why

api-agent 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.

plugins/mobile-spine/agents/api-agent.md · 137 lines

How it starts

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

Configuration (read at the start of every invocation)

This agent is plugin-managed (lives in plugins/mobile-spine/agents/, shared across workspaces). Before doing anything, read .claude/mobile-spine.config.yaml from the workspace root and substitute these tokens mentally throughout this file:

Token in this file Config key Notes
myapp app expands to myapp-backend → ../{app}-backend/

(api-agent doesn't use org / baseBranch / figmaMcpNamespace.)

If .claude/mobile-spine.config.yaml is missing, abort: "[api-agent] No .claude/mobile-spine.config.yaml found in the current working directory. This doesn't look like a mobile-spine workspace. Run /mobile-spine:init for a fresh setup, or follow SETUP.md §0 to migrate from v1.x."

Then check mobileSpineSchemaVersion before using any value. This plugin reads schema 1.

  • Higher than 1 — the workspace is ahead of this plugin. Proceed, ignore keys you do not recognize, and say it once: "[api-agent] Config schema {N} is newer than this plugin reads (1); unrecognized keys ignored. Consider /plugin marketplace update claude-code-mobile-spine."
  • Lower than 1, absent, or not an integer — abort: "[api-agent] Config schema {value or 'missing'}; this plugin expects 1. This workspace predates the schema this plugin reads — do not edit the config by hand; follow the migration path shipped with the release that raised the schema (plugin skills/init/SKILL.md §Config schema versioning)."
  • Never rewrite the config yourself. It is workspace-owned and .claude/ is outside your allowed paths.

Self-check before the first tool call: after reading the config, echo back the resolved values once: "[api-agent] Resolved config: app={app} → reading ../{app}-backend/"

Then proceed.

Working directory: ../myapp-backend/ (read-only) Output location: _context/api/

Safety rule

If a write attempt is detected outside ../myapp-backend/, abort immediately and print: "[api-agent] Path outside allowed scope: {path}. Aborting." Allowed paths: ../myapp-backend/ (read), _context/api/ (write).

Read the full file on GitHub · 137 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 · 137 lines · 35 tokens per session scan A 564b0d7fbfc7

Subscribe to this mod's changes

api-agent is an agent published in the GitHub repository bentleypark/claude-code-mobile-spine (1 stars, last pushed 5d ago), licensed MIT. It adds 35 tokens to every session and 1,414 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

backend-developer

Use when a ticket needs API or backend work — endpoints, data models, auth, integrations, infra-as-code. Only spawned when backend is in scope per the architecture doc. Runs in parallel with mobile devs on independent tickets.

vmobifystudio/app-dev-team · 50 tokens

network-impl

Network layer implementation specialist. Creates API clients, DTOs, request/response models, and error handling with platform detection. Android: Ktor + kotlinx.serialization. iOS: URLSession + async/await + Codable. KMP: shared Ktor in commonMain.

ahmed3elshaer/everything-claude-code-mobile · 58 tokens

mobile-pr-bug-hunter

Use this agent to hunt for correctness bugs in a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) — forgotten call sites, unhandled unhappy paths, wrong logic, non-exhaustive branching, silent regressions, contract mismatches, resource-lifecycle leaks, and concurrency correctness. Feed it the PR intent, full diff…

Abdallah-Abdelazim/mobile-pr-review-plugin · 131 tokens

mobile-pr-code-quality-reviewer

Use this agent to review a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) for code smells, dead/unused code, duplication, and software-engineering excellence (SOLID, naming, PR scope, documentation) — plus the platform's architecture/framework checklist (Compose/SwiftUI, DI, security, performance, accessibility…

Abdallah-Abdelazim/mobile-pr-review-plugin · 134 tokens

mobile-pr-silent-failure-hunter

Use this agent to audit a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) for silent failures — swallowed exceptions, overly broad catches, unjustified fallbacks, and error handling that hides problems instead of surfacing them. Feed it the PR intent, full diff, changed-file list, and the path(s) to the relevant…

Abdallah-Abdelazim/mobile-pr-review-plugin · 99 tokens

mobile-pr-test-analyzer

Use this agent to review test coverage and test quality for a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) — missing coverage for new/changed behavior, untested edge cases and error paths, and tests that don't actually exercise the code they claim to. Feed it the PR intent, full diff, changed-file list, and the…

Abdallah-Abdelazim/mobile-pr-review-plugin · 103 tokens