tri-agent-loop

tri-agent-loop is a skill for Claude Code, Codex from Rijul1204/rashedul-agentic-engineering. It costs 193 tokens per session (2,309 once invoked), scanned A, original, MIT.

A work process that assigns planning, review, and coding to three flexible agent roles. One agent writes a plan, another challenges it in a shared Markdown discussion, and an implementer makes the change.

In plain words
What is it for?
Use it to develop a requirements document, design, or task plan, review it until agreed, then implement the approved change and open a pull request.
Why use it?
It catches unclear requirements and design problems before code is written, while making handoffs between agents explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Codex.

Good fit Use it to develop a requirements document, design, or task plan, review it until agreed, then implement the approved change and open a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop
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.

Any agent
npx skills add Rijul1204/rashedul-agentic-engineering --skill tri-agent-loop
Clone the repo
git clone --depth 1 https://github.com/Rijul1204/rashedul-agentic-engineering

Made for: Claude Code, 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 tri-agent-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop/github.svg)](https://agentmods.dev/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop)
Your own site
<a href="https://agentmods.dev/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop"><img src="https://agentmods.dev/badge/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tri-agent-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop"><img src="https://agentmods.dev/badge/skills/rijul1204/rashedul-agentic-engineering/tri-agent-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,309 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00193 $0.02309
Opus 5.5 $0.00077 $0.00924
Sonnet 5.5 $0.00039 $0.00462
Haiku 4.5 $0.00019 $0.00231

Measured 1mo ago against content hash 9ed283d82261, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tri-agent-loop 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 1mo 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.

skills/tri-agent-loop/SKILL.md · 134 lines

How it starts

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

Tri-Agent Loop

A delivery protocol that splits work across three roles and keeps each artifact rigorously vetted before it advances:

  1. Planner — drafts the artifact: an SRS, design doc, or per-task implementation plan. Decides what and how, not the code.
  2. Reviewer — adversarially reviews the artifact through a shared markdown thread, returning concrete deltas until convergence.
  3. Implementer — writes the actual code/change after the plan converges, and opens a PR.

The roles are pluggable: any agent can fill any role, in any order. The agent running this skill is the orchestrator — it authors artifacts when it holds a role, relays handoffs when a role belongs to an external agent, monitors the review thread, and reviews the implementer's PR. The orchestrator is usually also one of the three roles (commonly planner+reviewer), but need not be.

This is the generalized form of the workflow captured in the user's feedback_planner_reviewer_codex_loop memory: planner+reviewer authored by one agent, a separate implementer, every artifact Codex-reviewed before handoff. Here the agent behind each role is a parameter.

When to use

Fire when the user wants multi-agent delivery with separation of concerns:

  • "Run the planner/reviewer/implementer loop on X."
  • "Use Claude to plan, Codex to review, Cursor to implement" — or any role permutation.
  • "Tri-agent loop", "plan-review-implement", "the docs-first Codex-reviewed loop."
  • A substantial feature where the user wants each artifact adversarially reviewed before code.

Do not use for:

  • Trivial / single-file changes (one agent, no ceremony).
  • Pure research with no artifact to review or implement.
  • When the user wants one agent to do everything end-to-end.

Step 0 — Assign the three roles

Resolve, from the user's request (ask via AskUserQuestion if unstated):

Role Agent Common choices
planner who drafts this Claude · a Task subagent (Plan) · an external agent the user drives
reviewer who critiques Codex · another Claude · Gemini · a Task subagent · a human
implementer who codes Cursor · this Claude · a Task subagent · a human

Read the full file on GitHub · 134 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 134 lines · 193 tokens per session scan A 9ed283d82261

Subscribe to this mod's changes

tri-agent-loop is a skill published in the GitHub repository Rijul1204/rashedul-agentic-engineering (2 stars, last pushed 3mo ago), licensed MIT. It adds 193 tokens to every session and 2,309 once invoked, about $0.0008 per session on Opus 5.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 skills, from other repositories

ios-app-agentic-engineering

End-to-end agentic engineering for iPhone apps, from idea to a secure App Store release through 8 gated phases. Use when someone wants to build, plan, or ship an iPhone/iOS app — especially a non-programmer ("vibe coder") asking to create an app, pick a tech stack (SwiftUI, React Native, Flutter), choose a backend…

markus-smile/ios-app-agentic-engineering · 138 tokens

content-strategy

Develop a content strategy covering editorial positioning, content pillars, formats, calendar, governance, and topical authority planning. Use this skill whenever the user wants to plan a content program, define content pillars, build an editorial calendar, structure topic clusters, set up content governance, or align…

rampstackco/claude-skills · 120 tokens

incident-response

Manage active production incidents through detection, triage, mitigation, communication, and resolution with structured roles and decision-making. Use this skill whenever the user has an active incident, a production issue, a service outage, a security incident, or needs to plan incident response procedures. Triggers…

rampstackco/claude-skills · 117 tokens

stakeholder-communication

Communicate effectively with stakeholders across functions and seniority levels. Use this skill when writing status updates, preparing executive reviews, sharing technical decisions with non-technical audiences, managing up, communicating bad news, or designing the communication cadence for a project. Triggers on…

rampstackco/claude-skills · 103 tokens

analytics-strategy

Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy. Use this skill whenever the user wants to plan analytics, design dashboards, build event taxonomies, define KPIs, set up tracking, or audit existing measurement.…

rampstackco/claude-skills · 126 tokens

agb-begriff-vorformuliert-305

Für AGB Begriff Vorformuliert 305: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: agb-begriff-vorformuliert-305.

Klotzkette/claude-fuer-deutsches-recht · 68 tokens