add-agent

SkillDocs & knowledge

Scaffold a new Forge subagent (planner/architect/executor/reviewer/debugger/memory-style).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the add-agent skill

What this skill tells your AI

The instructions your AI receives, as published by hoangsonww/forge-agentic-coding-cli in .agents/skills/add-agent/SKILL.md and read by ahel’s review.

Agents extend src/agents/base.ts. Copy from the simplest existing agent (src/agents/reviewer.ts or src/agents/debugger.ts).

Steps

  1. src/agents/<name>.ts — extend base. Declare:
    • allowed tool set (narrow, not "all tools"),
    • model preferences (router falls back if unavailable),
    • system prompt (short — it's paid for every turn).
  2. Register in src/agents/registry.ts.
  3. Unit test — mock callModel (see test/unit/executor-loop.test.ts). Cover:
    • the agent only calls the tools it declared,
    • a failing tool call is surfaced as a structured error, not a throw,
    • turn caps from src/core/mode-policy.ts are respected.
  4. Docs — update the agent list in docs/ARCHITECTURE.md if user-visible.

Invariants you cannot break:

  • Do not widen the allowed tool set to "all tools" to make a test pass.
  • Do not bypass src/core/validation.ts.
  • Do not call the model directly — always go through router/adapter.

Finish with the verify skill.

Signals

GitHub stars
22
Forks
9
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
add-agent-hoangsonww
Source
github.com/hoangsonww/forge-agentic-coding-cli