Skip to content

Commit 8f97ef7

Browse files
committed
fix(plugins): align docs, tests, and prompts with 4-agent reality
- Test expectations: 4 redirect entries (removed bash-exec, statusline-config) - Orchestrator prompt: removed bash-exec from agent catalog and selection - AGENT-REDIRECTION.md: updated REDIRECT_MAP example and file count - Docs agents reference: removed 15 archived agent sections, updated counts - Docs agent-system plugin: updated tables and model selection note - Container README: updated agent table from 17 to 4 active agents
1 parent c7876f0 commit 8f97ef7

6 files changed

Lines changed: 33 additions & 269 deletions

File tree

container/.devcontainer/README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -358,29 +358,18 @@ All methods persist across container rebuilds via the bind-mounted `/workspaces/
358358

359359
Agents and skills are distributed across focused plugins (replacing the former `code-directive` monolith).
360360

361-
### Custom Agents (17) — `agent-system` plugin
361+
### Custom Agents (4) — `agent-system` plugin
362362

363363
Agent definitions in `plugins/devs-marketplace/plugins/agent-system/agents/` provide enhanced behavior when spawned via the `Task` tool. The `redirect-builtin-agents.py` hook transparently swaps built-in agent types to these custom agents.
364364

365365
| Agent | Purpose |
366366
|-------|---------|
367367
| `architect` | System design and implementation planning |
368-
| `bash-exec` | Command execution specialist |
369368
| `claude-guide` | Claude Code feature guidance |
370-
| `debug-logs` | Log analysis and error diagnosis |
371-
| `dependency-analyst` | Dependency analysis and upgrades |
372-
| `documenter` | Documentation, specs, and spec lifecycle |
373369
| `explorer` | Fast codebase search and navigation |
374370
| `generalist` | General-purpose multi-step tasks |
375-
| `git-archaeologist` | Git history forensics |
376-
| `migrator` | Code migration and upgrades |
377-
| `perf-profiler` | Performance profiling |
378-
| `refactorer` | Code refactoring with regression checks |
379-
| `researcher` | Research and information gathering |
380-
| `security-auditor` | Security vulnerability analysis |
381-
| `spec-writer` | Specification and requirements authoring |
382-
| `statusline-config` | ccstatusline configuration |
383-
| `test-writer` | Test authoring with pass verification |
371+
372+
15 previously active agents have been archived to `agents/_archived/`.
384373

385374
### General Skills (23) — `skill-engine` plugin
386375

container/.devcontainer/defaults/codeforge/config/orchestrator-system-prompt.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You are a delegation-first orchestrator. You decompose tasks, delegate to agents
6868

6969
Hard rules:
7070
- NEVER use `Edit` or `Write` tools — delegate to the implementer or documenter agent
71-
- NEVER use `Bash` for commands with side effects — delegate to the implementer or bash-exec agent
71+
- NEVER use `Bash` for commands with side effects — delegate to the implementer agent
7272
- `Read`, `Glob`, `Grep` are permitted for quick context gathering before delegation
7373
- NEVER write code, generate patches, or produce implementation artifacts directly
7474
- NEVER run tests directly — delegate to the tester agent
@@ -140,9 +140,7 @@ Specialist agents (use when a workhorse doesn't fit):
140140
|-------|--------|--------|-------|---------|
141141
| architect | Architecture planning | Read-only | Opus | Complex system design, trade-off analysis, implementation planning |
142142
| security-auditor | Security | Read-only | Sonnet | OWASP audits, secrets scanning, vulnerability detection |
143-
| bash-exec | Command execution | Bash only | Sonnet | Simple terminal commands when no other agent is appropriate |
144143
| claude-guide | Claude Code help | Read-only | Haiku | Claude Code features, configuration, SDK questions |
145-
| statusline-config | Status line | Read-write | Sonnet | Claude Code status line widget configuration |
146144

147145
Selection criteria:
148146
- Is the task research/investigation? → investigator
@@ -151,8 +149,7 @@ Selection criteria:
151149
- Does the task involve documentation or specs? → documenter
152150
- Is it a targeted security review? → security-auditor
153151
- Is it a complex architecture decision? → architect
154-
- Is it a simple command to run? → bash-exec
155-
- Does the task require a specialist not listed above? → consult the agent-system README for the full 17-agent specialist catalog
152+
- Does the task require a specialist not listed above? → consult the agent-system README for the full agent catalog
156153
</agent_catalog>
157154

158155
<question_surfacing>

container/.devcontainer/plugins/devs-marketplace/plugins/agent-system/AGENT-REDIRECTION.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ The `redirect-builtin-agents.py` hook maps Claude Code's built-in agent types to
5656

5757
```python
5858
REDIRECT_MAP = {
59-
"Explore": "explorer", # Fast codebase search
60-
"Plan": "architect", # Implementation planning
59+
"Explore": "explorer", # Fast codebase search
60+
"Plan": "architect", # Implementation planning
6161
"general-purpose": "generalist", # Multi-step tasks
62-
"Bash": "bash-exec", # Command execution
6362
"claude-code-guide": "claude-guide",
64-
"statusline-setup": "statusline-config",
6563
}
6664
```
6765

@@ -198,7 +196,7 @@ This is how the auto-linter and syntax validator work — they inspect the resul
198196

199197
```
200198
agent-system/
201-
├── agents/ # Agent definitions (17 .md files)
199+
├── agents/ # Agent definitions (4 active .md files)
202200
│ ├── explorer.md
203201
│ ├── architect.md
204202
│ ├── generalist.md

container/tests/plugins/test_redirect_builtin_agents.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ def test_redirect_map_has_all_entries(self) -> None:
5959
"Explore": "explorer",
6060
"Plan": "architect",
6161
"general-purpose": "generalist",
62-
"Bash": "bash-exec",
6362
"claude-code-guide": "claude-guide",
64-
"statusline-setup": "statusline-config",
6563
}
6664
assert redirect_builtin_agents.REDIRECT_MAP == expected
6765

@@ -110,7 +108,6 @@ class TestUnqualifiedRedirect:
110108
"unqualified_name, expected_target",
111109
[
112110
("explorer", "agent-system:explorer"),
113-
("bash-exec", "agent-system:bash-exec"),
114111
],
115112
)
116113
def test_unqualified_to_qualified(

docs/src/content/docs/extend/plugins/agent-system.md

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Agent System
3-
description: The agent system plugin provides 19 specialized AI agents with automatic delegation and read-only enforcement.
3+
description: The agent system plugin provides 4 specialized AI agents with automatic delegation and read-only enforcement.
44
sidebar:
55
order: 2
66
---
77

8-
The agent system is CodeForge's flagship plugin. It gives you access to 19 specialized AI agents, each purpose-built for a specific kind of development task — from architecture planning and code exploration to test writing and security auditing. When you make a request, the system automatically delegates to the most appropriate agent, so you get expert-level results without having to think about which tool to use.
8+
The agent system is CodeForge's flagship plugin. It gives you access to 4 specialized AI agents, each purpose-built for a specific kind of development task — from architecture planning and code exploration to general-purpose development. When you make a request, the system automatically delegates to the most appropriate agent, so you get expert-level results without having to think about which tool to use.
99

1010
Most users should start with [Agents and Skills in Practice](/use/agents-and-skills/) and use this page for internal behavior and hook details.
1111

@@ -48,16 +48,14 @@ The `redirect-builtin-agents.py` script registers as a `PreToolUse` hook on the
4848
4. The modified request proceeds, and the custom agent spawns instead of the stock one
4949
5. All other parameters — the prompt, description, and context — pass through unchanged
5050

51-
The redirect map covers all six of Claude Code's built-in agent types:
51+
The redirect map covers four of Claude Code's built-in agent types:
5252

5353
```python
5454
REDIRECT_MAP = {
5555
"Explore": "explorer",
5656
"Plan": "architect",
5757
"general-purpose": "generalist",
58-
"Bash": "bash-exec",
5958
"claude-code-guide": "claude-guide",
60-
"statusline-setup": "statusline-config",
6159
}
6260
```
6361

@@ -74,7 +72,7 @@ Each redirect is a strict improvement. The custom agents carry capabilities that
7472
The redirect is fully transparent to you and to Claude. Using either name works — `Explore` and `explorer` both resolve to the same enhanced agent.
7573

7674
:::note[The Seventh Agent Type]
77-
Claude Code has a seventh built-in agent type, `magic-docs`, which handles internal documentation generation tasks within Claude Code itself. This agent is **not** redirected — it runs natively as implemented by Claude Code. CodeForge has no custom equivalent because `magic-docs` serves a Claude Code internal function, not a user-facing development task. All other six built-in types are intercepted and replaced.
75+
Claude Code has additional built-in agent types (`Bash`, `statusline-setup`, `magic-docs`) that are **not** redirected — they run natively as implemented by Claude Code. The `Bash` and `statusline-setup` agents were previously redirected to custom equivalents (`bash-exec`, `statusline-config`) that have since been archived. `magic-docs` serves a Claude Code internal function, not a user-facing development task.
7876
:::
7977

8078
## Safety Mechanisms
@@ -105,43 +103,28 @@ Read-only agents don't just have instructions saying "don't write files." The gu
105103

106104
## Agent Reference
107105

108-
CodeForge includes 19 specialized agents. Each one is tailored for a specific class of development task.
106+
CodeForge includes 4 active specialized agents. Each one is tailored for a specific class of development task. 15 additional agents have been archived to `agents/_archived/` and can be restored if needed.
109107

110108
### Read-Only Agents
111109

112110
These agents investigate, analyze, and report — they never modify files.
113111

114112
| Agent | Role | Model | Skills |
115113
|-------|------|-------|--------|
116-
| **architect** | System design, implementation planning, trade-off analysis | Opus | api-design, spec skills |
117-
| **explorer** | Fast codebase navigation, file discovery, pattern matching | Haiku | ast-grep-patterns |
118-
| **researcher** | Deep investigation, information gathering, web research | Sonnet | documentation-patterns |
114+
| **architect** | System design, implementation planning, trade-off analysis | Opus | api-design |
115+
| **explorer** | Fast codebase navigation, file discovery, pattern matching | Haiku ||
119116
| **claude-guide** | Claude Code usage guidance and best practices | Haiku | claude-code-headless, claude-agent-sdk |
120-
| **debug-logs** | Log analysis, error diagnosis, debugging | Sonnet | debugging |
121-
| **dependency-analyst** | Dependency analysis, version conflicts, upgrade paths | Haiku | dependency-management |
122-
| **git-archaeologist** | Git history analysis, blame, bisect, forensics | Haiku | git-forensics |
123-
| **perf-profiler** | Performance profiling, bottleneck identification | Sonnet | performance-profiling |
124-
| **security-auditor** | Security audit, vulnerability assessment, OWASP checks | Sonnet | security-checklist |
125-
| **spec-writer** | Specification authoring and refinement | Opus | spec, specs |
126117

127118
### Full-Access Agents
128119

129120
These agents can read and write files, run commands, and make changes to your codebase.
130121

131122
| Agent | Role | Model | Isolation | Skills |
132123
|-------|------|-------|-----------|--------|
133-
| **generalist** | General-purpose development tasks | Inherited | No | spec skills |
134-
| **test-writer** | Test creation, coverage analysis, framework detection | Opus | Worktree | testing |
135-
| **refactorer** | Behavior-preserving code transformations | Opus | Worktree | refactoring-patterns |
136-
| **documenter** | Documentation writing and maintenance | Opus | Worktree | documentation-patterns |
137-
| **migrator** | Code migration, framework upgrades | Opus | Worktree | migration-patterns |
138-
| **implementer** | Task implementation from specs and plans | Opus | No | spec skills |
139-
| **investigator** | Deep codebase investigation and root-cause analysis | Sonnet | No | debugging |
140-
| **bash-exec** | Shell command execution and scripting | Sonnet | No ||
141-
| **statusline-config** | Statusline customization | Sonnet | No ||
124+
| **generalist** | General-purpose development tasks | Inherited | No ||
142125

143126
:::note[Model Selection]
144-
Agents use different Claude models based on task complexity. The architect, test-writer, refactorer, documenter, migrator, implementer, and spec-writer use Opus for maximum reasoning capability. The explorer, dependency-analyst, and git-archaeologist use Haiku for speed. The researcher, security-auditor, debug-logs, perf-profiler, investigator, bash-exec, and statusline-config use Sonnet for balanced performance. The generalist inherits the session's model setting.
127+
Agents use different Claude models based on task complexity. The architect uses Opus for deep reasoning. The explorer and claude-guide use Haiku for speed. The generalist inherits the session's model setting.
145128
:::
146129

147130
## Hook Scripts

0 commit comments

Comments
 (0)