multi-backend

multi-backend is a command for Claude Code from loulanyue/awesome-claude-notes. It costs 21 tokens per session (1,344 once invoked), scanned A, original, MIT.

A guided workflow for server-side development, covering research, planning, implementation, optimization, and review. It is intended for API design, algorithms, database work, and business logic.

In plain words
What is it for?
Use it to design APIs, implement algorithms, optimize database operations, and review backend changes.
Why use it?
It gives backend tasks a defined sequence and coordinates different perspectives before and after implementation.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions AGENTS.md.

Part of the awesome-claude-notes plugin — 106 skills, 61 commands, 28 agents shipped together

Good fit Use it to design APIs, implement algorithms, optimize database operations, and review…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/loulanyue/awesome-claude-notes/multi-backend
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.

Clone the repo
git clone --depth 1 https://github.com/loulanyue/awesome-claude-notes

Made for: Claude Code.

Or install awesome-claude-notes, the plugin that ships this one along with the rest of its 106 skills, 61 commands, 28 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 multi-backend

README.md
[![agentmods](https://agentmods.dev/badge/commands/loulanyue/awesome-claude-notes/multi-backend.svg)](https://agentmods.dev/commands/loulanyue/awesome-claude-notes/multi-backend)
Your own site
<a href="https://agentmods.dev/commands/loulanyue/awesome-claude-notes/multi-backend"><img src="https://agentmods.dev/badge/commands/loulanyue/awesome-claude-notes/multi-backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 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,344 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.00021 $0.01344
Opus 5 $0.00010 $0.00672
Sonnet 5 $0.00004 $0.00269
Haiku 4.5 $0.00002 $0.00134

Measured 3d ago against content hash 1d75c87fa452, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

multi-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 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

commands/multi-backend.md · 170 lines

How it starts

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

Backend - Backend-Focused Development

Backend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Codex-led.

Usage

/backend <backend task description>

Context

  • Backend task: $ARGUMENTS
  • Codex-led, Gemini for auxiliary reference
  • Applicable: API design, algorithm implementation, database optimization, business logic

Your Role

You are the Backend Orchestrator, coordinating multi-model collaboration for server-side tasks (Research → Ideation → Plan → Execute → Optimize → Review).

Collaborative Models:

  • Codex – Backend logic, algorithms (Backend authority, trustworthy)
  • Gemini – Frontend perspective (Backend opinions for reference only)
  • Claude (self) – Orchestration, planning, execution, delivery

Multi-Model Call Specification

Call Syntax:

# New session call
Bash({
  command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'
ROLE_FILE: <role prompt path>
<TASK>
Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
Context: <project context and analysis from previous phases>
</TASK>
OUTPUT: Expected output format
EOF",
  run_in_background: false,
  timeout: 3600000,
  description: "Brief description"
})

# Resume session call
Bash({
  command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'
ROLE_FILE: <role prompt path>
<TASK>
Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>
Context: <project context and analysis from previous phases>
</TASK>
OUTPUT: Expected output format
EOF",
  run_in_background: false,
  timeout: 3600000,
  description: "Brief description"
})

Role Prompts:

Phase Codex
Analysis ~/.claude/.ccg/prompts/codex/analyzer.md
Planning ~/.claude/.ccg/prompts/codex/architect.md
Review ~/.claude/.ccg/prompts/codex/reviewer.md

Session Reuse: Each call returns SESSION_ID: xxx, use resume xxx for subsequent phases. Save CODEX_SESSION in Phase 2, use resume in Phases 3 and 5.

Read the full file on GitHub · 170 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 · 170 lines · 21 tokens per session scan A 1d75c87fa452

Subscribe to this mod's changes

multi-backend is a command published in the GitHub repository loulanyue/awesome-claude-notes (270 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 1,344 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-09-03.