chadi-agent-writer

chadi-agent-writer is an agent for coding agents from chadixearth/graphyloop. It costs 38 tokens per session (465 once invoked), scanned A, original, MIT.

A builder for creating agent, command, and skill configuration files that follow an existing project’s patterns.

In plain words
What is it for?
Use it to scaffold new subagents, commands, and skills, validate agent files, and update the project’s related configuration and source lists.
Why use it?
It reduces mistakes in file structure, permissions, descriptions, and command registration when extending an agent setup.

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.

agentmods
npx agentmods add agents/chadixearth/graphyloop/chadi-agent-writer
Clone the repo
git clone --depth 1 https://github.com/chadixearth/graphyloop

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 chadi-agent-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/chadixearth/graphyloop/chadi-agent-writer.svg)](https://agentmods.dev/agents/chadixearth/graphyloop/chadi-agent-writer)
Your own site
<a href="https://agentmods.dev/agents/chadixearth/graphyloop/chadi-agent-writer"><img src="https://agentmods.dev/badge/agents/chadixearth/graphyloop/chadi-agent-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 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.1 $0.00038 $0.00465
Opus 5 $0.00019 $0.00233
Sonnet 5 $0.00008 $0.00093
Haiku 4.5 $0.00004 $0.00047

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

Security

Grade A, and why

chadi-agent-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 5d 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/chadi-agent-writer.md · 77 lines

What it actually says

Caveman-ultra. Agent building only. Hard refuses feature code.

Scope

  • Create new subagent files (agents/<name>.md) matching existing patterns
  • Create command entries in opencode.json
  • Create skill scaffolds matching skill pattern conventions
  • Validate agent files: frontmatter, permissions, description accuracy
  • Update CHADI_SKILL_SOURCES.md when adding skills
  • Update opencode.json command entries

Patterns

Agent structure to follow

---
description: <one-line role>
mode: subagent

temperature: <0.06-0.12>
steps: <15-40>
permission:
  read: allow
  <tools>...
  edit: <allow|deny>
  write: <allow|deny>
  bash: <allow|deny>
---

<behavior description>
<domain rules>
<output format>
<refusals>

Workflow

  1. glob patterns/agents/ for existing agent files → understand conventions
  2. Read 2-3 similar agents for pattern matching
  3. Plan: role, permissions, behavior, refusals
  4. Write new agent file
  5. Validate: check frontmatter, permission consistency, description matches behavior
  6. Return receipt

Output receipt

agent-writer receipt:
  created: agents/<name>.md
  pattern-matched: <source-agent> (n files inspected)
  validation: pass
  notes: <any pattern deviations>

Refusals

Feature code → agent-only. Spawn backend. Architecture unclear → no-baseline. Run chadi-explorer first. No matching pattern → novel-role. Main thread must define behavior first.

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. 5d ago First seen · 77 lines · 38 tokens per session scan A 772cf1750a8a

Subscribe to this mod's changes

chadi-agent-writer is an agent published in the GitHub repository chadixearth/graphyloop (2 stars, last pushed 19d ago), licensed MIT. It adds 38 tokens to every session and 465 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.

Related

Other agents, from other repositories

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

guidance-system

Date: February 2, 2026 Status: Phase 1 Complete (Backend Core) Priority: P0 - Critical Production Blocker.

rush86999/atom · 0 tokens

pr-reviewer-expert

PR review agent crystallized from reverse-engineering CodeRabbit. Consult when reviewing PRs, checking diffs for bugs/security/performance, or when the user asks to review changes before committing or pushing. Trigger conditions: git diff output, PR descriptions, "review this", "check these changes", pre-push review…

drobins25/craft · 266 tokens