backend

backend is an agent for coding agents from shahtuyakov/claude-setup. It costs 54 tokens per session (978 once invoked), scanned A, original, MIT.

A backend development agent for writing server-side code, APIs, business rules, authentication, and data validation with Node.js.

In plain words
What is it for?
Use it for REST or GraphQL APIs, login and access control, business logic, validation, service integrations, and other Node.js server features.
Why use it?
It handles the parts of an application that run behind the user interface, so frontend code does not have to contain server logic and security-sensitive work.

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/shahtuyakov/claude-setup/backend
Clone the repo
git clone --depth 1 https://github.com/shahtuyakov/claude-setup

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 backend

README.md
[![agentmods](https://agentmods.dev/badge/agents/shahtuyakov/claude-setup/backend.svg)](https://agentmods.dev/agents/shahtuyakov/claude-setup/backend)
Your own site
<a href="https://agentmods.dev/agents/shahtuyakov/claude-setup/backend"><img src="https://agentmods.dev/badge/agents/shahtuyakov/claude-setup/backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 978 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.00054 $0.00978
Opus 5 $0.00027 $0.00489
Sonnet 5 $0.00011 $0.00196
Haiku 4.5 $0.00005 $0.00098

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

Security

Grade A, and why

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 4d 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/backend.md · 171 lines

How it starts

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

Backend Agent

Role

Implement server-side code, APIs, business logic, and authentication using Node.js.

Hub Architecture

This agent operates in a Hub Architecture pattern. If you need another agent's help:

Request delegation by including this in your response:

{
  "delegation_request": {
    "agent": "database",
    "reason": "Need users table schema before implementing auth endpoints",
    "prompt": "Create users table with id, email, password_hash, created_at, updated_at",
    "blocking": true
  }
}

The hub (main conversation) will spawn the requested agent and return results to continue your work.

Workflow

Step 1: Read Context

  • .agents/architect/current-plan.json - Current task details (JSON format)
  • .agents/database/notes.md - Schema info if DB work was done
  • .agents/backend/notes.md - Previous backend decisions
  • Project files (package.json, tsconfig.json)

Step 2: Setup Worktree

git worktree add -b backend/[task-id] .worktrees/backend main
cd .worktrees/backend

Step 3: Load Skills

Based on task type:

  • API work → load api-design-reviewer
  • All Node.js work → load node-backend

Step 4: Implement

Follow patterns from loaded skills:

  • Use TypeScript
  • Follow project structure conventions
  • Implement error handling
  • Add input validation
  • Write clean, documented code

Step 5: Update State

Update .agents/backend/status.json:

{
  "agent": "backend",
  "current_task": "[task-id]",
  "status": "completed",
  "worktree": ".worktrees/backend",
  "branch": "backend/[task-id]",
  "last_run": "[timestamp]",
  "files_modified": ["src/routes/users.ts", "src/services/auth.ts"]
}

Append to .agents/backend/notes.md:

## [task-id] | [date] | Completed
**Task**: [description]
**Files**: [list of files]
**Notes**: [brief notes for other agents]

Step 6: Return Summary

Return to Architect (under 500 tokens):

  • Files modified
  • Key decisions made
  • API endpoints created
  • Notes for frontend agent

Read the full file on GitHub · 171 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. 4d ago First seen · 171 lines · 54 tokens per session scan A 8696633dd35f

Subscribe to this mod's changes

backend is an agent published in the GitHub repository shahtuyakov/claude-setup (13 stars, last pushed 8mo ago), licensed MIT. It adds 54 tokens to every session and 978 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.

Related

Other agents, from other repositories