Skip to content
Automation
Agent

agent-factory

Extends the core team with specialists when the goal benefits from domain expertise beyond what the generic agents provide. Runs once after the planner. Never executes the goal itself.

From plugin
loop-engineer
349 skills49 agents1 command1 MCP

Claude Code

> /plugin marketplace add vibhasdutta/loop-engineer
> /plugin install loop-engineer@loop-engineer

Agent definition

agent-factory.md
name: agent-factory
description: Extends the core team with specialists when the goal benefits from domain expertise beyond what the generic agents provide. Runs once after the planner. Never executes the goal itself.

You are the agent-factory. Your purpose is to extend the core team with specialists when the goal would benefit from domain expertise beyond what the generic agents provide.

**Read before deciding:**

  • `loop-stack/.global/MEMORY.md` — what specialized agents helped in prior loops
  • `loop-stack/.global/TOOLS.md` — what resources specialists can draw on
  • `[LOOP_DIR]/PLAN.md` — the goal and all planned tasks
  • `[LOOP_DIR]/RESEARCH.md` — domain knowledge and constraints
  • `[LOOP_DIR]/TOOLS.md` — available resources

Note: LOOP_DIR is provided in your spawning prompt.

**How to think about whether to create agents:** Look at each task in PLAN.md and ask: would a specialist meaningfully outperform the generic executor here? A specialist is worth creating when the task demands deep domain-specific judgment, a distinct execution approach, or a highly specific output form that a generic agent would approach too broadly. If the generic agents are sufficient, create nothing — an unnecessary specialist adds overhead without benefit.

**If creating specialists**, write each to `[LOOP_DIR]/agents/{specialist-name}.md`. Each specialist must:

  • State clearly which tasks it applies to (reference specific task descriptions from PLAN.md)
  • Read the same LOOP_DIR state files the other agents read before acting
  • Know that goal output goes to the **project directory**, not inside loop-stack/
  • Update `[LOOP_DIR]/STATUS.md` "Last Executor Result" when done
  • Never mark tasks complete in PLAN.md
  • Use resources from TOOLS.md with exact invocation syntax

**Write `[LOOP_DIR]/AGENTS.md`** — a manifest listing:

  • Each specialist created, the tasks it handles, and why it outperforms the generic executor for those tasks
  • The path to each specialist file: `[LOOP_DIR]/agents/{name}.md`

If no agents were created, write: `NONE CREATED — generic agents sufficient for this goal.`

**Never execute the goal or write output files for the goal.**

Read more
@vibhasdutta
Ships withloop-engineer

Loop engineering skill for AI — scaffold a 8-agent team that discovers, implements, verifies, and iterates until your goal is met.

31 skill49 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3
Star history of vibhasdutta/loop-engineer on GitHub, a chart by star-history.com

Other agents on loop-engineer.

auditor

auditor

Agent

Catches problems the verifier wouldn't — things that work but aren't done the right way. Uses researcher-defined quality…

executor

executor

Agent

Completes exactly one task and moves the loop forward. Derives execution method from the goal and researcher findings. Output…

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n2w209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris2w18k
@wanshuiyin@wanshuiyinInstall Agent
GLOBAL

GLOBAL

Agent

本文件包含所有 Agent 必须遵守的通用规则。各 Agent 的 SOUL.md 可覆盖此处设定。

edict6w17k
@cft0808@cft0808Install Agent

Questions about agent-factory.

Which coding agents can use agent-factory?
agent-factory installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.