Skip to content

Commit f1d403e

Browse files
feat: enhance cross-platform subagent adaptation and Codex tool mapping
1 parent 2a56227 commit f1d403e

6 files changed

Lines changed: 89 additions & 10 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Once it's teased a spec out of the conversation, it shows it to you in chunks sh
1616

1717
After you've signed off on the design, your agent puts together an implementation plan that's clear enough for an enthusiastic junior engineer with poor taste, no judgement, no project context, and an aversion to testing to follow. It emphasizes true red/green TDD, YAGNI (You Aren't Gonna Need It), and DRY.
1818

19-
Next up, once you say "go", it launches a *subagent-driven-development* process, having agents work through each engineering task, inspecting and reviewing their work, and continuing forward. It's not uncommon for Claude to be able to work autonomously for a couple hours at a time without deviating from the plan you put together.
19+
Next up, once you say "go", it launches a *subagent-driven-development* process, routing each engineering task through the host's available delegation model while preserving the same review and orchestration workflow. On some hosts this appears as named agent dispatch; on others it is implemented through native subagents using Galyarder role prompts. It's not uncommon for Claude to be able to work autonomously for a couple hours at a time without deviating from the plan you put together.
2020

2121
Finally, Galyarder Agent Framework shifts into **Marketing Mode**, triggering skills for SEO, CRO, and Remotion (Video) to ensure what you built actually achieves market fit.
2222

23-
There's a bunch more to it, but that's the core of the system. And because the skills trigger automatically, you don't need to do anything special. Your coding agent just has Galyarder Agent Framework.
23+
There's a bunch more to it, but that's the core of the system. The workflow philosophy stays consistent across hosts, while runtime mechanics such as installation, command invocation, and subagent dispatch vary by platform. Once installed correctly for your host, your coding agent can follow the same Galyarder workflow.
2424

2525
## Sponsorship
2626

@@ -32,7 +32,7 @@ Thanks!
3232

3333
## Installation
3434

35-
Galyarder is a multi-platform plugin system. Installation varies by platform:
35+
Galyarder is a multi-platform agent framework with host-specific installation and runtime adapters. Installation varies by platform:
3636

3737
### Claude Code / Copilot CLI
3838

@@ -163,6 +163,11 @@ Galyarder Agent Framework provides short-hand commands for rapid execution:
163163
- **/e2e** - Generate and run end-to-end user journey tests.
164164
- **/clean** - Remove dead code and refactor for maintainability.
165165

166+
Command UX depends on the host. Some platforms expose these as native slash
167+
commands or plugin commands, while others map them through host-specific config
168+
or prompting conventions. Check the platform-specific install docs for the exact
169+
invocation model.
170+
166171
### Skills Library
167172

168173
- **Elite Design Collection**: 50+ high-fidelity `DESIGN.md` specifications from industry leaders (Vercel, Stripe, Linear, etc.) located in `rules/design/`.

docs/README.codex.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,33 @@ Skills are discovered automatically. Codex activates them when:
6464
- The task matches a skill's description
6565
- The `using-galyarder-agent-framework` skill directs Codex to use one
6666

67+
## Subagents and Agent Roles
68+
69+
Codex and Galyarder work together in two layers:
70+
71+
- `skills/` are discovered natively by Codex
72+
- `agents/*.md` are role definitions, not a native Codex agent registry
73+
74+
When a skill says to dispatch a named agent such as
75+
`galyarder-agent-framework:code-reviewer`, read that as a cross-platform workflow
76+
instruction:
77+
78+
1. On hosts with named agent dispatch, use the named agent directly.
79+
2. On Codex, read the relevant `agents/*.md` file or local prompt template.
80+
3. Spawn a native Codex subagent with those instructions using `spawn_agent`.
81+
82+
In other words: Codex runs native subagents, while Galyarder supplies the role
83+
prompt those subagents should follow.
84+
85+
This adaptation layer translates runtime mechanics only. It does not weaken or
86+
rewrite the framework's core agent constitution. The strict workflow,
87+
expectations, and foundations defined in `agents/*.md` remain authoritative; the
88+
Codex adapter is responsible only for mapping those roles onto Codex-native
89+
subagent capabilities.
90+
91+
For the exact Codex mapping, see
92+
[`skills/using-galyarder-agent-framework/references/codex-tools.md`](../skills/using-galyarder-agent-framework/references/codex-tools.md).
93+
6794
### Personal Skills
6895

6996
Create your own skills in `~/.agents/skills/`:

skills/requesting-code-review/SKILL.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ description: Use when completing tasks, implementing major features, or before m
55

66
# Requesting Code Review
77

8-
Dispatch galyarder-agent-framework:code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
8+
Dispatch a code-reviewer subagent to catch issues before they cascade. On hosts
9+
with named agent dispatch, use `galyarder-agent-framework:code-reviewer`
10+
directly. On hosts without named agent dispatch, use the platform's native
11+
subagent mechanism with the reviewer prompt/template. The reviewer gets
12+
precisely crafted context for evaluation — never your session's history. This
13+
keeps the reviewer focused on the work product, not your thought process, and
14+
preserves your own context for continued work.
915

1016
**Core principle:** Review early, review often.
1117

@@ -31,7 +37,12 @@ HEAD_SHA=$(git rev-parse HEAD)
3137

3238
**2. Dispatch code-reviewer subagent:**
3339

34-
Use Task tool with galyarder-agent-framework:code-reviewer type, fill template at `code-reviewer.md`
40+
Use the host's subagent mechanism and fill the template at
41+
`requesting-code-review/code-reviewer.md`.
42+
43+
- Hosts with named agent dispatch: use `galyarder-agent-framework:code-reviewer`
44+
- Hosts without named agent dispatch: read the template, fill placeholders, and
45+
dispatch a native subagent with that content
3546

3647
**Placeholders:**
3748
- `{WHAT_WAS_IMPLEMENTED}` - What you just built
@@ -56,7 +67,7 @@ You: Let me request code review before proceeding.
5667
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
5768
HEAD_SHA=$(git rev-parse HEAD)
5869
59-
[Dispatch galyarder-agent-framework:code-reviewer subagent]
70+
[Dispatch code-reviewer subagent using the host's native mechanism]
6071
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
6172
PLAN_OR_REQUIREMENTS: Task 2 from docs/galyarder-agent-framework/plans/deployment-plan.md
6273
BASE_SHA: a7981ec

skills/subagent-driven-development/SKILL.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@ Implementer subagents report one of four statuses. Handle each appropriately:
123123
- `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
124124
- `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
125125

126+
## Platform Adaptation
127+
128+
This skill is written in cross-platform terms.
129+
130+
- Hosts with named agent dispatch can call the named agent directly.
131+
- Hosts without named agent dispatch must translate agent names into native
132+
subagent calls using either `agents/*.md` role files or the local prompt
133+
templates listed above.
134+
- On Codex specifically, follow
135+
`using-galyarder-agent-framework/references/codex-tools.md`:
136+
`Task` means `spawn_agent`, `TodoWrite` means `update_plan`, and named agent
137+
references are implemented by spawning a native Codex agent with the filled
138+
role prompt.
139+
126140
## Example Workflow
127141

128142
```

skills/subagent-driven-development/code-quality-reviewer-prompt.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Use this template when dispatching a code quality reviewer subagent.
77
**Only dispatch after spec compliance review passes.**
88

99
```
10-
Task tool (galyarder-agent-framework:code-reviewer):
11-
Use template at requesting-code-review/code-reviewer.md
10+
Dispatch code-reviewer subagent:
11+
On hosts with named agent dispatch, use `galyarder-agent-framework:code-reviewer`
12+
On hosts without named agent dispatch, use the native subagent mechanism with
13+
the filled template at requesting-code-review/code-reviewer.md
1214
1315
WHAT_WAS_IMPLEMENTED: [from implementer's report]
1416
PLAN_OR_REQUIREMENTS: Task N from [plan-file]

skills/using-galyarder-agent-framework/references/codex-tools.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Skills use Claude Code tool names. When you encounter these in a skill, use your
66
|-----------------|------------------|
77
| `Task` tool (dispatch subagent) | `spawn_agent` (see [Named agent dispatch](#named-agent-dispatch)) |
88
| Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
9-
| Task returns result | `wait` |
9+
| Task returns result | `wait_agent` |
1010
| Task completes automatically | `close_agent` to free slot |
1111
| `TodoWrite` (task tracking) | `update_plan` |
1212
| `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
@@ -22,7 +22,7 @@ Add to your Codex config (`~/.codex/config.toml`):
2222
multi_agent = true
2323
```
2424

25-
This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
25+
This enables `spawn_agent`, `wait_agent`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
2626

2727
## Named agent dispatch
2828

@@ -43,6 +43,26 @@ When a skill says to dispatch a named agent type:
4343
| `Task tool (galyarder-agent-framework:code-reviewer)` | `spawn_agent(agent_type="worker", message=...)` with `code-reviewer.md` content |
4444
| `Task tool (general-purpose)` with inline prompt | `spawn_agent(message=...)` with the same prompt |
4545

46+
## Cross-platform dispatch rule
47+
48+
Write skills so the workflow is portable:
49+
50+
1. If the host supports named agent dispatch, use the named agent directly.
51+
2. If the host does not support named agents, treat `agents/*.md` as role prompt
52+
sources and dispatch a native subagent with those instructions.
53+
3. If the skill includes a local prompt template, prefer that template over a
54+
generic agent file because it already captures task-specific placeholders.
55+
56+
For Codex specifically, this means:
57+
- `agents/*.md` are not a runtime registry
58+
- they are role definitions used to construct `spawn_agent(...)` messages
59+
- the spawned runtime agent is still one of Codex's built-in agent types
60+
61+
This is an adapter layer, not a policy rewrite. Keep the strict workflow and
62+
expectations defined by the framework's agent and skill content intact. The
63+
Codex-specific responsibility is to translate dispatch and tool mechanics into
64+
Codex-native operations without softening the underlying protocol.
65+
4666
### Message framing
4767

4868
The `message` parameter is user-level input, not a system prompt. Structure it

0 commit comments

Comments
 (0)