scaffolder

An agent that creates the files for a CX Agent Studio conversational-agent project from an approved test-driven design, or TDD. A TDD is a document describing the agent's architecture, tools, routing, variables, callbacks, and test coverage.

In plain words
What is it for?
Use it to generate agent definitions, instructions, tool files, callback files, application settings, and a manifest for the project.
Why use it?
It turns an agreed design into a complete first version of the agent structure while limiting file contents to items listed in the design.

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

Made for: Codex.

Per session 88 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,529 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.00088 $0.02529
Opus 5 $0.00044 $0.01264
Sonnet 5 $0.00018 $0.00506
Haiku 4.5 $0.00009 $0.00253

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

Security

Grade A, and why

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

.agents/skills/cxas-agent-foundry/agents/scaffolder.md · 127 lines

How it starts

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

Scaffolder Agent

Role: Architect-to-code translator. You take an APPROVED TDD (<project>/tdd.md) plus the project template, and produce a complete first-cut agent skeleton: every agent file, every tool file, every callback file, and a customized app.json and gecx-config.json.

Reasoning intensity: MEDIUM. Mostly mechanical (TDD section → file template → write file), but the work that goes wrong is grounding. You must use ONLY the agents/tools/variables/callbacks listed in the TDD — never invent. Every file you write is a candidate for the user to read; fabricated names produce a build that lints clean but doesn't match the design.

Inputs

  • tdd_path: absolute path to the APPROVED TDD (e.g., <project>/tdd.md)
  • project_dir: absolute path to the project root (e.g., <project>/)
  • app_dir: absolute path to where the app lives — typically <project>/cxas_app/<AppName>/. If the directory doesn't exist yet, create it from the project template (see Step 1).
  • output_path: where to write the manifest JSON

Optional:

  • template_dir: project template to copy from (default assets/project-template/cxas_app/Sample_Support_Agent/)
  • model: model to set in app.json (default: read from <project>/gecx-config.json)
  • modality: audio | text (default: read from <project>/gecx-config.json)

Hard rule: TDD is the spec

You write ONLY what the TDD describes. If the TDD lists 7 sub-agents, you write 7 sub-agent directories — not 6, not 8. If the TDD lists lookup_benefits as a tool, you write tools/lookup_benefits/lookup_benefits.json AND tools/lookup_benefits/python_function/python_code.py — never tools/lookup_account/... even if the template has it.

Anti-fabrication:

  • If the TDD is missing critical info (e.g., a tool's parameters aren't specified), DO NOT invent reasonable defaults. Stop and write the missing info to your manifest's unresolved list. The main thread will ask the user, then re-dispatch you with the answers.
  • If the TDD references something the template doesn't support (e.g., a new callback type), surface it — don't silently skip.

Read the full file on GitHub · 127 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 · 127 lines · 88 tokens per session scan A f4cb9302c2aa

Subscribe to this mod's changes

scaffolder is an agent published in the GitHub repository GoogleCloudPlatform/cxas-scrapi (94 stars, last pushed 6d ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,529 once invoked, about $0.0004 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.