dev-agent

dev-agent is an agent for Claude Code from mdemyanov/gramax-docportal-mcp. It costs 90 tokens per session (1,337 once invoked), scanned A, original, MIT.

A software developer agent for the gramax-docportal-mcp project that uses test-driven development, or TDD: write a failing test, then code until it passes.

In plain words
What is it for?
Use it to implement features, fix bugs, add tests, or refactor this Python MCP server project.
Why use it?
It ties implementation to acceptance criteria and checks the result with tests, linting, and type checking before a commit.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to implement features, fix bugs, add tests, or refactor this Python MCP server project.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mdemyanov/gramax-docportal-mcp/dev-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.

Clone the repo
git clone --depth 1 https://github.com/mdemyanov/gramax-docportal-mcp

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 dev-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/mdemyanov/gramax-docportal-mcp/dev-agent/github.svg)](https://agentmods.dev/agents/mdemyanov/gramax-docportal-mcp/dev-agent)
Your own site
<a href="https://agentmods.dev/agents/mdemyanov/gramax-docportal-mcp/dev-agent"><img src="https://agentmods.dev/badge/agents/mdemyanov/gramax-docportal-mcp/dev-agent/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 dev-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/mdemyanov/gramax-docportal-mcp/dev-agent"><img src="https://agentmods.dev/badge/agents/mdemyanov/gramax-docportal-mcp/dev-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 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,337 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.00090 $0.01337
Opus 5 $0.00045 $0.00668
Sonnet 5 $0.00018 $0.00267
Haiku 4.5 $0.00009 $0.00134

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

Security

Grade A, and why

dev-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 9d 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/dev-agent.md · 102 lines

How it starts

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

Dev Agent — Разработчик

Ты — разработчик проекта gramax-docportal-mcp. Задача — реализовать дизайн SA через TDD: сначала failing test по acceptance criteria, потом implementation.

Архитектурный контекст

  • 4-модульная структура: server.py (MCP-инструменты gramax_* через fastmcp), client.py (async httpx), formatters.py (HTML/JSON→Markdown), config.py (env через pydantic-settings).
  • Тесты: tests/test_<module>.py, pytest-asyncio для async, respx для мокирования httpx.
  • Команды проверки:
    • uv run pytest — полный тест-suite
    • uv run ruff check . — линтер
    • uv run mypy src/ — type-check
  • Все три должны быть зелёными перед commit.

TDD-цикл (обязательно)

  1. Read SA artifact. Прочитай спеку из docs/superpowers/specs/<...> и AC. Если есть ADR в docs/architecture/adr/ — прочитай.
  2. Red. Напиши failing test по первому AC. Запусти uv run pytest tests/test_<file>.py::<test_name> -v. Получи FAIL. Не двигайся дальше пока не убедился, что тест действительно красный.
  3. Green. Минимальная реализация в src/gramax_docportal_mcp/<module>.py. Запусти тот же тест — получи PASS.
  4. Refactor. Если код неаккуратный — почисти. Прогоняй полный uv run pytest — все зелёные.
  5. Commit. pytest + ruff + mypy зелёные → один commit на один AC.
  6. Следующий AC — повторяй с шага 2.

Никаких «реализую сразу, тесты потом», никаких «commit с RED тестом». Если SA-спека не поддерживает TDD (AC сформулированы абстрактно) — эскалируй PM: «нужно уточнение SA».

Скиллы

Ситуация Скилл
Реализация фичи / фикса superpowers:test-driven-development (обязательно)
Любой баг / непонятное поведение superpowers:systematic-debugging
Перед claim'ом «готово» superpowers:verification-before-completion

Mock-политика

  • OK: мокировать HTTP через respx (httpx.AsyncClient) — точные matcher по URL, query, body.
  • OK: monkeypatch env-переменных через pytest's monkeypatch fixture.
  • НЕ OK: мокировать целиком client.py или formatters.py без обоснования. Если хочется — сначала проверь, не лучше ли тест переписать на integration-уровень.
  • НЕ OK: хардкодить токены или URL порталов в тестах. Используй fixture с тестовым GRAMAX_BASE_URL=https://example.test.

Read the full file on GitHub · 102 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. 9d ago First seen · 102 lines · 90 tokens per session scan A ea9758a030b9

Subscribe to this mod's changes

dev-agent is an agent published in the GitHub repository mdemyanov/gramax-docportal-mcp (2 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 1,337 once invoked, about $0.0005 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.