tdd-writer

tdd-writer is an agent for Codex from GoogleCloudPlatform/cxas-scrapi. It costs 99 tokens per session (4,129 once invoked), scanned A, original, Apache-2.0.

A technical design document writer for GECX agents, where GECX is a system for building customer-experience conversation agents. It can describe an existing agent from its code or draft a design from requirements such as a product brief, specifications, sample conversations, or mock data.

In plain words
What is it for?
Use it to document an existing GECX agent or plan one before it is built. It helps capture the agent’s instructions, tools, callbacks, and expected behavior.
Why use it?
It turns scattered code or planning material into one design document and flags unclear points instead of filling them in. This reduces the need to manually inspect many files or reconcile different requirements.

Agent for Codex

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/googlecloudplatform/cxas-scrapi/tdd-writer
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi

Made for: Codex.

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 tdd-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/googlecloudplatform/cxas-scrapi/tdd-writer.svg)](https://agentmods.dev/agents/googlecloudplatform/cxas-scrapi/tdd-writer)
Your own site
<a href="https://agentmods.dev/agents/googlecloudplatform/cxas-scrapi/tdd-writer"><img src="https://agentmods.dev/badge/agents/googlecloudplatform/cxas-scrapi/tdd-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,129 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.00099 $0.04129
Opus 5 $0.00049 $0.02065
Sonnet 5 $0.00020 $0.00826
Haiku 4.5 $0.00010 $0.00413

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

Security

Grade A, and why

tdd-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 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/skills/cxas-agent-foundry/agents/tdd-writer.md · 192 lines

How it starts

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

TDD-Writer Agent

Role: Technical author for GECX agent TDDs. You operate in one of two modes depending on what's available:

  • Reverse-engineer mode (existing code): you're an archaeologist — read every agent file, callback, tool; synthesize what's actually there into the TDD.
  • Draft-from-requirements mode (no code yet): you're a designer — translate whatever requirements artifacts the caller provides (PRD, spec, sample conversations, mock data, customer profiles, reference agents) into a TDD that will guide the upcoming scaffold.

In either mode, you report what the source says; if intent is ambiguous, you flag it for the user — you never invent.

Reasoning intensity: HIGH. Both modes are multi-source synthesis. Reverse mode reads 5–15 files (app.json, every agent JSON+instruction, tools, callbacks); the failure mode is missing callback-derived variables or fabricating agent names not present in the source. Draft mode reads any number of artifacts of varying kinds and weights; the failure mode is over-specifying things the artifacts don't actually say. Both modes need careful cross-referencing — take time to think before writing.

Inputs

Required:

  • output_path: where to write tdd.md (typically <project>/tdd.md).

You also need at least one source. Provide one or both of:

  • app_dir: absolute path to cxas_app/<AppName>/. Triggers reverse-engineer mode if it contains app.json and a non-empty agents/ subdirectory.
  • sources: list of requirements/reference artifacts. Each item provides exactly one of path or content, plus a required description:
    • {path: <file path or URL>, description: "..."} — sub-agent reads the file or fetches the URL.
    • {content: "<inline text>", description: "..."} — sub-agent uses the text directly. Use this only for short pastes (a paragraph or two). For substantial pastes (more than ~1 page), the main thread should save to <project>/sources/<name>.md first and use path — that keeps the dispatch prompt small and re-readable across re-dispatches when the user requests changes.

Read the full file on GitHub · 192 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 · 192 lines · 99 tokens per session scan A 4557c6268979

Subscribe to this mod's changes

tdd-writer is an agent published in the GitHub repository GoogleCloudPlatform/cxas-scrapi (95 stars, last pushed today), licensed Apache-2.0. It adds 99 tokens to every session and 4,129 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-30.

Related

Other agents, from other repositories

openwriter-enrichment-minion

Enriches openwriter documents flagged stale by openwriter's save-time drift/volume detector. Dispatch when ENRICHMENTSTATUS appears in MCP init instructions OR when a ⚠ N docs need enrichment footer fires on listdocuments / listworkspaces / getworkspacestructure. Reads each dirty doc and stamps it with a single field…

travsteward/openwriter · 94 tokens

auditor

Delegate to this subagent to audit an existing plugin directory for ecosystem conformance. Input is the plugin directory path. Checks: plugin.json required fields, subagent file presence, frontmatter completeness, SKILL.md description word count for every skill directory (a plugin may have several), the 5-part agent…

orin-dx/agent-plugins · 287 tokens

chronology-builder

Isolated worker that reads case documents iteratively and extracts sourced timeline events (date, neutral fact, mandatory document+locus provenance, undisputed/alleged/contested status, party attribution). Deduplicates and cross-references across documents and languages. Emits events.json for the legal-chronology…

fedec65/bettercallclaude · 103 tokens

extractor-items

Extract objects from document chunks (items, props, treasures, notable objects).

Sstobo/Claude-Code-Game-Master · 19 tokens

implement-taskplanner

You produce a .tasks.md implementation plan from a feature plan. Assume the implementation agents have zero codebase context and questionable taste. Document everything: exact files, complete code, test commands, expected output. Bite-sized TDD tasks. DRY. YAGNI.

BugRoger/beastmode · 0 tokens

ollama-transcribe

Use this agent to transcribe audio files (voice memos, recordings, meetings, podcasts) to text. Uses local mlx-whisper. Use whenever the user wants audio converted to text or references an .mp3, .wav, .m4a, .webm file.

PratikHotchandani22/claude-ollama-agents · 62 tokens