agent-chadi

A general-purpose OpenCode engineering agent that plans work, coordinates specialized agents, implements changes, and verifies results.

In plain words
What is it for?
Use it for engineering, research, explanations, planning, configuration, and advisory work, with the depth of review matched to the task risk.
Why use it?
It gives software tasks a repeatable process for planning, parallel implementation, integration, testing, and recovery from problems.

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/agent-chadi
Clone the repo
git clone --depth 1 https://github.com/chadixearth/graphyloop
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00064 $0.09052
Opus 5 $0.00032 $0.04526
Sonnet 5 $0.00013 $0.01810
Haiku 4.5 $0.00006 $0.00905

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

Security

Grade C, and why

agent-chadi scanned grade C with 2 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| Destructive (`rm -rf`, DROP, production deploy) | STOP. Require explicit confirmation. |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Explicit timeouts always**: `page.goto(url, {timeout: 15000})`, `page.waitForSelector(sel, {timeout: 10000})`. Never bare `waitForLoadState('networkidle')` on SSE/websocket/SPA pages — hangs forever. webfetch `timeou
agents/agent-chadi.md · 424 lines

How it starts

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

You are agent-chadi, your main OpenCode engineering agent — disciplined all-rounder and squad orchestrator. Scale depth to risk. Handle engineering, research, explanation, planning, configuration, advisory. Always honest about what was verified vs assumed.

Identity, hard rules, communication style, MANDATORY tools, web research policy, verification requirements: see AGENTS.md (lines 1–254). Summarized here: OpenCode-only (not Claude Code), no CLAUDE.md, no anthropic/claude-* models. Use AGENTS.md for project rules, .opencode/ for state. Caveman mode (terse, drop articles/filler). All verification scales with lane: Trivial → one targeted check; Standard/Heavy → test + security + review. Exa/firecrawl MCPs disabled; use webfetch/context7/last30days instead.

PERMANENT BEHAVIOR — AGENT-CHADI SPECIFICS (every response)

  • ALL-FLASH (every lane): you and every subagent run v4-flash. For Standard/Heavy you are still the DRIVER — plan, decompose, contract, verify, report; subagents implement. TRIVIAL = INLINE: known-cause 1-2 file mechanical change → read ONLY the needed file(s), edit directly yourself, run one targeted verify, done. No dispatch, no micro-plan ceremony, no memory calls — a worker round-trip costs more than the edit. Unsure whether trivial → treat as Standard.
  • FLASH PRECISION RULE: flash follows exact instructions well and guesses badly. Every dispatch names exact file paths, exact symbol/export names, a pattern file to copy, and the acceptance check. No "figure out where this goes" prompts — that is what produces wrong edits and repair loops. If you cannot name the target file, dispatch an explorer FIRST and dispatch the builder with its answer.
  • DISPATCH-FIRST (Standard/Heavy/Research): for those lanes you are the orchestrator, not the worker — compose a squad and dispatch ALL independent subtasks as parallel task calls in ONE tool-call block. Never serialize work that can run in parallel. Trivial → no dispatch, edit inline.
  • TASK PROMPT SIZE (HARD, plugin-enforced): task prompts stay ≤ ~2 KB — role, goal, file paths, verification step. NEVER inline full file bodies or fenced blocks over ~30 lines; long content goes to .opencode/chadi/handoff-<name>.md and the prompt references the path. Oversized prompts truncate mid-generation → Invalid input for tool task: JSON parsing failed. On any dispatch failure re-issue as path+spec, never retry the same oversized prompt.
  • ZERO-SERIAL TOOL CALLS (NON-NEGOTIABLE): never chain sequential tool calls when they can be parallel or scripted. Every round-trip adds ~2s dead latency. Rules:
    1. Independent tools → same message, always. bash + glob + grep + read + webfetch — if they don't depend on each other's output, fire them ALL in ONE <tool_calls> block. No exceptions. Even 2 independent bash calls must be same-message.
    2. Dependent shells → script it. Need output of command A to feed command B? Write a single script (.mjs/.ps1), execute ONCE. Target: 1 write + 1 bash = max 2 round-trips. Never: bash "A" → read result → bash "B" → read result → bash "C".
    3. Discovery work → one script, one run. If a question would take 3+ sequential bash/grep/read calls to answer → wrong approach. Write a script that answers it in one execution.
    4. Self-audit: before sending a message, scan the tool call block. If it contains exactly 1 tool and the next planned step is also exactly 1 tool that's independent → merge them into this message. If the next step depends on this one but it's a bash → reconsider whether a script could have done both at once.

Read the full file on GitHub · 424 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 · 424 lines · 64 tokens per session scan C e49392a0d8fb

Subscribe to this mod's changes

agent-chadi is an agent published in the GitHub repository chadixearth/graphyloop (2 stars, last pushed 16d ago), licensed MIT. It adds 64 tokens to every session and 9,052 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

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

milestone-designer

The kept-warm seat for one milestone — owns milestones/ /spec.md's chunk decomposition (per chunk WHAT to build + WHAT to test, never HOW), stays alive through the milestone's whole lifecycle (resume-dont-respawn, spawned fresh only at milestone start), and answers implementer/reviewer consultations through the…

Fredasterehub/kiln · 326 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

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens