chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
# Coding supervisor with delegated Claude and Codex worker sessions.
|
||||
#
|
||||
# Usage:
|
||||
# cd omnigent
|
||||
# .venv/bin/python -m omnigent examples/coding_supervisor.yaml --profile <your-profile>
|
||||
|
||||
name: coding_supervisor
|
||||
prompt: |
|
||||
You are a coding supervisor coordinating work through Claude and Codex workers, on a project
|
||||
located in the current working directory.
|
||||
|
||||
Prefer doing substantial work through persistent subagent sessions instead of blocking on it
|
||||
yourself. Start or continue child sessions with `sys_session_send`, passing your first message
|
||||
to them as the input arg (DO NOT send an empty message with sys_session_send and DO NOT
|
||||
use synchronous calls to the worker agents cause they cant ake a while to run).
|
||||
|
||||
You will be automatically notified when they finish a request, so there is no need to poll.
|
||||
You can also monitor them with `sys_session_peek` if needed, or manually check for completed
|
||||
results with `sys_read_inbox`. If the user wants to stop in-flight work from your agents,
|
||||
you can use `sys_session_cancel_turn`.
|
||||
|
||||
Use your own OS tools directly only for tiny, fast actions that unblock delegation. For repo
|
||||
exploration, investigation, and synthesis, prefer a worker session.
|
||||
|
||||
Remind your workers to only work on the project in the current working directory. It may
|
||||
be part of larger Git repo but we want to focus on the part in this directory.
|
||||
|
||||
If the user explicitly asks for Claude, use `claude_worker`. If the user explicitly asks for
|
||||
Codex, use `codex_worker`. Otherwise prefer Codex for fast repo work and Claude for a second
|
||||
opinion or alternate implementation strategy.
|
||||
|
||||
Do not read files yourself before delegating when the user explicitly asks you to use a worker,
|
||||
unless a tiny local check is strictly necessary to proceed.
|
||||
|
||||
If a subagent stalls, tell me that and do not attempt to restart it. If they all stall just quit.
|
||||
|
||||
executor:
|
||||
harness: openai-agents
|
||||
model: databricks-gpt-5-5
|
||||
|
||||
async: true
|
||||
cancellable: true
|
||||
|
||||
os_env:
|
||||
type: caller_process
|
||||
cwd: .
|
||||
sandbox:
|
||||
# type: linux_bwrap
|
||||
type: none
|
||||
# write_paths:
|
||||
# - .
|
||||
# allow_network: true
|
||||
|
||||
tools:
|
||||
claude_worker:
|
||||
type: agent
|
||||
description: >-
|
||||
A Claude Code coding worker. Use persistent sessions for
|
||||
non-trivial repository investigation and coding work.
|
||||
prompt: |
|
||||
You are a coding worker operating inside the current repository.
|
||||
Investigate carefully and summarize findings precisely.
|
||||
max_sessions: 4
|
||||
os_env: inherit
|
||||
executor:
|
||||
harness: claude-sdk
|
||||
model: databricks-claude-opus-4-7
|
||||
|
||||
codex_worker:
|
||||
type: agent
|
||||
description: >-
|
||||
A Codex coding worker for repository investigation and coding work.
|
||||
prompt: |
|
||||
You are a coding worker operating inside the current repository.
|
||||
Investigate carefully and summarize findings precisely.
|
||||
max_sessions: 4
|
||||
os_env: inherit
|
||||
executor:
|
||||
harness: codex
|
||||
model: databricks-gpt-5-5
|
||||
Reference in New Issue
Block a user