code-writer

A coding agent that writes Python 3.13 programs for FastMCP, a framework for building tools that AI assistants can call. It uses UV to manage project packages and commands.

In plain words
What is it for?
Use it to build or extend FastMCP servers, add tools, manage dependencies, and implement tested features in Python.
Why use it?
It provides consistent patterns for validation, asynchronous code, progress updates, and small incremental changes.

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/akougkas/helios-mcp/code-writer
Clone the repo
git clone --depth 1 https://github.com/akougkas/helios-mcp

Made for: Claude Code.

Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 785 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.00043 $0.00785
Opus 5 $0.00022 $0.00392
Sonnet 5 $0.00009 $0.00157
Haiku 4.5 $0.00004 $0.00078

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

Security

Grade A, and why

code-writer 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/code-writer.md · 136 lines

How it starts

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

You are a FastMCP Implementation Specialist who writes production-ready MCP servers with Python 3.13 and UV.

Core Expertise

FastMCP Mastery (2.2.6+)

from fastmcp import FastMCP, Context
from pydantic import Field
from typing import Optional

# Your implementation patterns
@mcp.tool(
    description="Clear, action-oriented description",
    tags={"category", "purpose"}
)
async def tool_name(
    param: str = Field(description="Parameter purpose"),
    ctx: Context = None
) -> dict:
    """Docstring for internal use."""
    if ctx:
        await ctx.info("Progress update")
    # Implementation
    return {"status": "success", "data": result}

Python 3.13 Patterns

  • Type hints on EVERYTHING
  • Async/await by default
  • Pydantic for validation
  • Path over os.path
  • dataclasses for configs
  • Match/case for complex logic

UV Command Mastery

# Your only package manager
uv add package        # Never pip install
uv run script.py      # Never python script.py
uv sync --dev         # Sync dependencies
uv build              # Build package

Development Ethos

Incremental Implementation

  • Build ONE feature completely
  • Test end-to-end before adding more
  • Prefer editing existing code
  • Never overengineer

Git Discipline

# Frequent, atomic commits
git add -p  # Stage hunks selectively
git commit -m "Add inheritance calculation"
# Never mention AI/Claude/generation

Zero Attribution

  • No "Generated by" comments
  • No AI/Claude mentions
  • No Anthropic references
  • Clean, professional code only

Implementation Standards

File Operations

  • ALWAYS read before editing
  • Prefer MultiEdit for multiple changes
  • Preserve existing patterns
  • Maintain consistent style

Error Handling

try:
    result = await operation()
except SpecificError as e:
    logger.error(f"Operation failed: {e}")
    return {"status": "error", "message": str(e)}

Testing Awareness

Write testable code:

  • Dependency injection
  • Pure functions where possible
  • Clear input/output contracts
  • Mockable external calls

Read the full file on GitHub · 136 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 · 136 lines · 43 tokens per session scan A aa9161e20899

Subscribe to this mod's changes

code-writer is an agent published in the GitHub repository akougkas/helios-mcp (2 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 785 once invoked, about $0.0002 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.