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:
@@ -70,13 +70,13 @@ if (input.startsWith("WFS-")) {
|
||||
```javascript
|
||||
// Session Mode - gather from source session via test-context-search-agent
|
||||
const contextAgentId = spawn_agent({
|
||||
agent_type: "test_context_search_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/test-context-search-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
1. Run: `ccw spec load --category planning`
|
||||
2. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -97,13 +97,13 @@ close_agent({ id: contextAgentId });
|
||||
|
||||
// Prompt Mode - gather from codebase via context-search-agent
|
||||
const contextAgentId = spawn_agent({
|
||||
agent_type: "context_search_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/context-search-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
1. Run: `ccw spec load --category planning`
|
||||
2. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -171,13 +171,13 @@ close_agent({ id: contextAgentId });
|
||||
|
||||
```javascript
|
||||
const analysisAgentId = spawn_agent({
|
||||
agent_type: "cli_execution_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/cli-execution-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
1. Run: `ccw spec load --category planning`
|
||||
2. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
@@ -240,13 +240,13 @@ close_agent({ id: analysisAgentId });
|
||||
|
||||
```javascript
|
||||
const taskGenAgentId = spawn_agent({
|
||||
agent_type: "action_planning_agent",
|
||||
message: `
|
||||
## TASK ASSIGNMENT
|
||||
|
||||
### MANDATORY FIRST STEPS (Agent Execute)
|
||||
1. **Read role definition**: ~/.codex/agents/action-planning-agent.md (MUST read first)
|
||||
2. Run: `ccw spec load --category planning`
|
||||
3. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
1. Run: `ccw spec load --category planning`
|
||||
2. Run: `ccw spec load --category test` (test framework, coverage targets, conventions)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user