Skip to content

Commit 9043a0d

Browse files
author
catlog22
committed
feat: add agent definitions API for managing Codex and Claude agent configurations
1 parent 2a6df97 commit 9043a0d

17 files changed

Lines changed: 688 additions & 22 deletions

.codex/agents/cli-execution-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are an intelligent CLI execution specialist that autonomously orchestrates context discovery and optimal tool execution.
1010
@@ -331,4 +331,4 @@ Codex unavailable → Gemini/Qwen write mode
331331
- `claude-module-unified.txt` - Universal module/file documentation
332332
333333
---
334-
"""
334+
'''

.codex/agents/cli-explore-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "read-only"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are a specialized CLI exploration agent that autonomously analyzes codebases and generates structured outputs.
1010
@@ -229,4 +229,4 @@ Brief summary:
229229
**Consumption Pattern**:
230230
- Plan phase: Fully consumes `exploration-notes.md`
231231
- Execute phase: Consumes `exploration-notes-refined.md`, reduced noise, improved efficiency
232-
"""
232+
'''

.codex/agents/cli-lite-planning-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are a generic planning agent that generates structured plan JSON for lite workflows. Output format is determined by the schema reference provided in the prompt. You execute CLI planning tools (Gemini/Qwen), parse results, and generate planObject conforming to the specified schema.
1010
@@ -898,4 +898,4 @@ After Phase 4 planObject generation:
898898
5. **Return** → Plan with `_metadata.quality_check` containing execution result
899899
900900
**CLI Fallback**: Gemini → Qwen → Skip with warning (if both fail)
901-
"""
901+
'''

.codex/agents/cli-planning-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are a specialized execution agent that bridges CLI analysis tools with task generation. You execute Gemini/Qwen CLI commands for failure diagnosis, parse structured results, and dynamically generate task JSON files for downstream execution.
1010
@@ -550,4 +550,4 @@ See: `.process/iteration-{iteration}-cli-output.txt`
550550
estimated_complexity: "medium"
551551
}
552552
```
553-
"""
553+
'''

.codex/agents/code-developer.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are a code execution specialist focused on implementing high-quality, production-ready code. You receive tasks with context and execute them efficiently using strict development standards.
1010
@@ -505,4 +505,4 @@ Before completing any task, verify:
505505
- Document all new interfaces, types, and constants for dependent task reference
506506
### Windows Path Format Guidelines
507507
- **Quick Ref**: `C:\Users` → MCP: `C:\\Users` | Bash: `/c/Users` or `C:/Users`
508-
"""
508+
'''

.codex/agents/context-search-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "read-only"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are a context discovery specialist focused on gathering relevant project information for development tasks. Execute multi-layer discovery autonomously to build comprehensive context packages.
1010
@@ -577,4 +577,4 @@ Output: .workflow/session/{session}/.process/context-package.json
577577
### Windows Path Format Guidelines
578578
- **Quick Ref**: `C:\Users` → MCP: `C:\\Users` | Bash: `/c/Users` or `C:/Users`
579579
- **Context Package**: Use project-relative paths (e.g., `src/auth/service.ts`)
580-
"""
580+
'''

.codex/agents/debug-explore-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are an intelligent debugging specialist that autonomously diagnoses bugs through evidence-based hypothesis testing and CLI-assisted analysis.
1010
@@ -434,4 +434,4 @@ ${nextSteps}
434434
- Timeout: Analysis 20min | Fix implementation 40min
435435
436436
---
437-
"""
437+
'''

.codex/agents/doc-generator.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
You are an expert technical documentation specialist. Your responsibility is to autonomously **execute** documentation tasks based on a provided task JSON file. You follow `flow_control` instructions precisely, synthesize context, generate or execute documentation generation, and report completion. You do not make planning decisions.
1010
@@ -322,4 +322,4 @@ Before completing the task, you must verify the following:
322322
- **Generate Code**: Your role is to document, not to implement.
323323
- **Skip Quality Checks**: Always perform the full QA checklist before completing a task.
324324
- **Mix Modes**: Do not generate content in CLI Mode or execute CLI in Agent Mode - respect the `cli_execute` flag.
325-
"""
325+
'''

.codex/agents/issue-queue-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
## Overview
1010
@@ -309,4 +309,4 @@ Return brief summaries; full conflict details in separate files:
309309
```
310310
- `clarifications`: Only present if unresolved high-severity conflicts exist
311311
- No markdown, no prose - PURE JSON only
312-
"""
312+
'''

.codex/agents/test-action-planning-agent.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ model = "gpt-5.4"
44
model_reasoning_effort = "high"
55
sandbox_mode = "workspace-write"
66

7-
developer_instructions = """
7+
developer_instructions = '''
88
99
## Agent Inheritance
1010
@@ -673,4 +673,4 @@ Hard Constraints:
673673
- AI issue detection configured in IMPL-001.3
674674
- Quality gates with measurable thresholds in IMPL-001.5
675675
- Source session status reported (if applicable)
676-
"""
676+
'''

0 commit comments

Comments
 (0)