mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-26 19:56:37 +08:00
feat: convert all codex agent definitions from .md to .toml format
Convert 20 agent .md files to Codex-native .toml format with proper metadata (name, description, model, sandbox_mode, developer_instructions). Update all 19 skill files to use agent_type references instead of .md file paths. Remove "Read role definition" bootstrapping step from spawn messages since TOML developer_instructions replaces it. Agent format: YAML frontmatter + body → TOML with inline instructions Calling schema: agent: "path.md" → agent_type: "toml_name" Sandbox: read-only for exploration agents, workspace-write for executors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,13 +39,13 @@ Create a new subagent with task assignment.
|
||||
|
||||
```javascript
|
||||
const agentId = spawn_agent({
|
||||
agent_type: "{agent_type}",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/{agent-type}.md (MUST read first)
|
||||
2. Read: .workflow/project-tech.json
|
||||
3. Read: .workflow/project-guidelines.json
|
||||
1. Read: .workflow/project-tech.json
|
||||
2. Read: .workflow/project-guidelines.json
|
||||
|
||||
## TASK CONTEXT
|
||||
${taskContext}
|
||||
@@ -502,13 +502,13 @@ Bash(`mkdir -p ${sessionFolder}`)
|
||||
|
||||
if (hasCodebase !== 'none') {
|
||||
const exploreAgentId = spawn_agent({
|
||||
agent_type: "cli_explore_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/cli-explore-agent.md (MUST read first)
|
||||
2. Read: .workflow/project-tech.json
|
||||
3. Read: .workflow/project-guidelines.json
|
||||
1. Read: .workflow/project-tech.json
|
||||
2. Read: .workflow/project-guidelines.json
|
||||
|
||||
---
|
||||
|
||||
@@ -553,13 +553,13 @@ Return findings as JSON with schema:
|
||||
2. **Execute Decomposition Agent**
|
||||
```javascript
|
||||
const decompositionAgentId = spawn_agent({
|
||||
agent_type: "cli_roadmap_plan_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/cli-roadmap-plan-agent.md (MUST read first)
|
||||
2. Read: .workflow/project-tech.json
|
||||
3. Read: .workflow/project-guidelines.json
|
||||
1. Read: .workflow/project-tech.json
|
||||
2. Read: .workflow/project-guidelines.json
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user