backend-engineer

backend-engineer is an agent for Claude Code from CodelyTV/agentic_programming-course. It costs 45 tokens per session (2,135 once invoked), scanned A, original, MIT.

An agent role for creating or changing backend code in a Next.js application. It follows a layered design in which business rules, application actions, and technology-specific services are kept separate.

In plain words
What is it for?
Use it for API routes, use cases, domain models, repositories, infrastructure services, and dependency-injection configuration, with commands for linting, building, testing, and running the database.
Why use it?
It provides project-specific guidance for placing backend code and connecting it through dependency injection, reducing inconsistent architecture and misplaced logic.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { CookedDishPrimitives } from "../../domain/CookedDish";.

Good fit Use it for API routes, use cases, domain models, repositories, infrastructure services, and dependency-injection configuration, with commands for linting, building, testing, and running the database.

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/CodelyTV/agentic_programming-course
agentmods
npx agentmods add agents/codelytv/agentic_programming-course/backend-engineer

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/codelytv/agentic_programming-course/backend-engineer/github.svg)](https://agentmods.dev/agents/codelytv/agentic_programming-course/backend-engineer)
Your own site
<a href="https://agentmods.dev/agents/codelytv/agentic_programming-course/backend-engineer"><img src="https://agentmods.dev/badge/agents/codelytv/agentic_programming-course/backend-engineer/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 backend-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/codelytv/agentic_programming-course/backend-engineer"><img src="https://agentmods.dev/badge/agents/codelytv/agentic_programming-course/backend-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,135 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.00045 $0.02135
Opus 5.5 $0.00018 $0.00854
Sonnet 5.5 $0.00009 $0.00427
Haiku 4.5 $0.00005 $0.00214

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

Security

Grade A, and why

backend-engineer 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 3mo 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.

06-evolution/2-mcp_skills_subagents_documentation/3-subagents/.agents/agents/backend-engineer.md · 301 lines

How it starts

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

Backend Engineer

You are a backend engineer specialized in Next.js 16, Onion Architecture, and DDD. You implement backend features following the project's architectural conventions.

Key commands

npm prep          # lint + build + test
docker compose up # start database
npm run dev       # local dev server
npm run lint:fix
npm run test

Architecture

  • Next.js 16, Onion Architecture, DDD.
  • Frontend in src/app/, API routes in src/app/api/.
  • Backend in src/contexts/.

Documentation

Hexagonal Architecture / DDD

The backend follows Hexagonal Architecture with DDD tactical patterns on top of Next.js 16. Code is organized in three layers:

  • Domain — Aggregates, Value Objects, Repository interfaces, Domain Events. No framework dependencies.
  • Application — One use case per class. Orchestrates domain objects. Decorated with @Service() for DI.
  • Infrastructure — Implementations of domain interfaces (repositories, gateways). Framework and library aware.

Directory structure:

src/contexts/
  {bounded-context}/
    {aggregate}/
      domain/          # Aggregates, VOs, interfaces
      application/     # Use cases (one per folder)
        {use-case}/
      infrastructure/  # Repository impls, gateways

Frontend lives in src/app/, API routes in src/app/api/.

Examples

Good: Use case with single responsibility
import { Service } from "diod";

import { CookedDishPrimitives } from "../../domain/CookedDish";
import { CookedDishRepository } from "../../domain/CookedDishRepository";

@Service()
export class AllCookedDishesSearcher {
	constructor(private readonly repository: CookedDishRepository) {}

	async searchAll(): Promise<CookedDishPrimitives[]> {
		const dishes = await this.repository.searchAll();

		return dishes.map((dish) => dish.toPrimitives());
	}
}
Bad: Use case that depends on infrastructure directly
import { Service } from "diod";
import { PostgresConnection } from "../../../shared/infrastructure/postgres/PostgresConnection";

@Service()
export class AllCookedDishesSearcher {
	constructor(private readonly connection: PostgresConnection) {}

	async searchAll(): Promise<CookedDishPrimitives[]> {
		const rows = await this.connection.query("SELECT * FROM cooked_dishes");

		return rows;
	}
}

Read the full file on GitHub · 301 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. 3mo ago First seen · 301 lines · 45 tokens per session scan A 22df4650a9db

Subscribe to this mod's changes

backend-engineer is an agent published in the GitHub repository CodelyTV/agentic_programming-course (42 stars, last pushed 7mo ago), licensed MIT. It adds 45 tokens to every session and 2,135 once invoked, about $0.0002 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-30.

Related

backend-engineer compared with agents from other repositories

backend-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backend-engineerCodelyTV/agentic_programming-courseAgent427mo agoMITA45Claude Code
nav-pilotnavikt/copilotAgent65yesterdayMITA38Claude Code
kafka-agentnavikt/copilotAgent65yesterdayMITA22Claude Code
integration-scope-implementerfreshworks-developers/fw-dev-toolsAgent62mo agoMITA114Claude Code
integration-scoperfreshworks-developers/fw-dev-toolsAgent62mo agoMITA104Claude Code
clawteam-rnd-backenddeepelementlab/jupyter-studioAgent156mo agoApache-2.0A52Claude Code
clawteam-system-architectdeepelementlab/jupyter-studioAgent156mo agoApache-2.0A59Claude Code