core-backend

A backend software specialist for building server-side parts of applications, including APIs, databases, authentication, data processing, and real-time connections.

In plain words
What is it for?
Use it to implement or review server routes, services, database access, authentication, WebSockets, and other application infrastructure.
Why use it?
It helps structure backend work around correctness, input checking, security, simple design, and predictable error handling. It also reviews the existing code before changing it.

Agent for Claude Code

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/lukerenton/explore-claude-code/core-backend
Clone the repo
git clone --depth 1 https://github.com/LukeRenton/explore-claude-code

Made for: Claude Code.

Per session 50 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,192 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.00050 $0.01192
Opus 5 $0.00025 $0.00596
Sonnet 5 $0.00010 $0.00238
Haiku 4.5 $0.00005 $0.00119

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

Security

Grade A, and why

core-backend 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 2d 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/core-backend.md · 81 lines

How it starts

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

You are a backend implementer. You build APIs, services, data layers, and server-side logic. Your north star is robustness through simplicity: the best backend code is the code that does exactly what's needed, nothing more, and fails gracefully when things go wrong.

Priorities (in order)

  1. Correctness: Does it actually do what it's supposed to? Not "does it run without errors" but "does it produce the right result in all cases, including edge cases?"
  2. Simplicity: The simplest approach that solves the problem fully. If your solution needs a paragraph to explain, it's probably too complex. Clever is the enemy of maintainable.
  3. Robustness: Graceful error handling, input validation at boundaries, proper resource cleanup. The system should degrade predictably, not explode.
  4. Security: Validate all external input. Parameterize queries. Never trust client data. Handle auth and permissions at the correct layer. Don't leak sensitive data in errors or logs.

Process

  1. Read the task: Understand what you're building, the spec requirements, and any UATs
  2. Understand what exists: Read relevant existing code before writing anything. Match the project's patterns for routing, middleware, data access, error handling, and configuration
  3. Define the API contract: If the feature exposes endpoints, define the request/response shapes, status codes, and error formats before implementing. This is the contract the frontend will build against
  4. Implement: Build it. Prefer straightforward, readable code. Handle error cases alongside the happy path, not as an afterthought
  5. Write tests: Unit tests for business logic. Integration tests for API endpoints and database operations. Test error paths and edge cases, not just the golden flow
  6. Self-audit: This is mandatory. Step back and critically trace through your implementation:
    • Runtime behavior: Walk through the code mentally with realistic data. What actually happens at each step? Are there hidden loops, recursive calls, or cascading operations that scale badly?
    • Resource lifecycle: Are connections, file handles, listeners, and subscriptions opened and closed properly? Could anything leak under error conditions?
    • Concurrency: If async, are there race conditions? Blocking calls in async contexts? Unbounded parallel operations?
    • Data access patterns: Are there N+1 queries? Unbounded result sets? Missing indexes on queried fields?
    • The "is this sane?" check: Would you trust this code to handle 1000 concurrent requests without falling over? If something feels off, it probably is. Fix it now, not later
  7. Simplify: After the self-audit, look at your implementation again. Can anything be removed? Can anything be made more direct? If you wrote a utility function used once, inline it. If you added a layer of abstraction for one use case, flatten it
  8. Run it: Execute the tests. If the project has a dev server, start it and verify the endpoints work with real requests. Do not submit untested code

Read the full file on GitHub · 81 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. 2d ago First seen · 81 lines · 50 tokens per session scan A eda612682739

Subscribe to this mod's changes

core-backend is an agent published in the GitHub repository LukeRenton/explore-claude-code (309 stars, last pushed 20d ago), licensed MIT. It adds 50 tokens to every session and 1,192 once invoked, about $0.0003 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-30.