api-agent

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

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/bentleypark/claude-code-mobile-spine/api-agent
Clone the repo
git clone --depth 1 https://github.com/bentleypark/claude-code-mobile-spine
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. 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.00035 $0.01414
Opus 5 $0.00017 $0.00707
Sonnet 5 $0.00007 $0.00283
Haiku 4.5 $0.00003 $0.00141

Measured yesterday against content hash 564b0d7fbfc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,414 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

argent-environment-inspector

Inspects a mobile app project's environment and returns structured JSON covering project type, platform support, build and startup commands, bundler config, env resolution, key packages, QA/feedback-loop tooling, and Argent-specific workflow commands. Works on any project — determines whether it is React Native, Expo…

software-mansion/argent · 149 tokens

e2e-verifier

FlutterアプリのE2E動作検証エージェント。MCP(dart-mcp + Marionette)を使い、シミュレーター上でUI操作・検証を行う。mobile-automationスキルから呼び出される。.

K9i-0/ccpocket · 65 tokens

codebase-analyzer

Explores mobile codebases to understand architecture, detect existing telemetry, and identify instrumentation opportunities.

nexus-labs-automation/mobile-observability · 22 tokens

mobile-architect

Mobile architecture expert. Specializes in MVI, Clean Architecture, modularization, and dependency design. Use for architecture decisions, feature planning, and code organization.

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

kmp-architect

KMP architecture expert. Designs shared module structures, expect/actual patterns, navigation, and DI for Kotlin Multiplatform projects.

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

mobile-compactor

Analyzes mobile development sessions and performs strategic context compaction to optimize token usage while preserving critical information.

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