mirror of
https://github.com/openai/codex.git
synced 2026-09-16 12:13:30 +00:00
agentydragon: refine developer-agent scaffolding and task guidance
- create-task-worktree.sh: load developer-agent prompt from prompts/developer.md - prompts/developer.md: require populating blank Implementation section - tasks/task-template.md: require high-level plan in blank Implementation placeholders - tasks/17-sandbox-precommit-permission-error.md: add task stub for sandbox pre-commit PermissionError
This commit is contained in:
@@ -6,6 +6,7 @@ Use the task Markdown file under `agentydragon/tasks/` as your progress tracker:
|
||||
Before making any changes, read the task definition in `agentydragon/tasks/` and note that its **Status** and **Implementation** sections are placeholders.
|
||||
|
||||
After reviewing, update the task’s **Status** to "In progress" and fill in the **Implementation** section with your planned approach.
|
||||
If the **Implementation** section is blank or does not describe your intended design and steps, populate it with a concise high‑level plan before proceeding.
|
||||
Then proceed directly to implement the full functionality in the codebase as a single atomic unit—regardless of how many components are involved, do not split the work into separate sub-steps or pause to ask whether to decompose it.
|
||||
|
||||
Do not pause to seek user confirmation after editing the Markdown;
|
||||
|
||||
29
agentydragon/tasks/17-sandbox-precommit-permission-error.md
Normal file
29
agentydragon/tasks/17-sandbox-precommit-permission-error.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
id: 17
|
||||
title: Sandbox Pre-commit Permission Error
|
||||
status: Not started
|
||||
summary: Pre-commit hooks fail in sandbox due to inability to lock user gitconfig.
|
||||
goal: |
|
||||
Investigate and resolve pre-commit setup failures in sandbox environments caused by permission errors on ~/.gitconfig so that pre-commit checks can run reliably within agent worktrees.
|
||||
---
|
||||
|
||||
> *This task addresses scaffolding/setup for Agent worktrees.*
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- Pre-commit hooks detect sandbox environment and skip or override gitconfig locking.
|
||||
- Documentation in scaffold guides is updated to note pre-commit limitations and workarounds.
|
||||
- Verification steps demonstrate pre-commit hooks succeeding in sandbox without modifying user gitconfig.
|
||||
|
||||
## Implementation
|
||||
|
||||
**How it was implemented**
|
||||
*(Not implemented yet)*
|
||||
|
||||
**How it works**
|
||||
*(Not implemented yet)*
|
||||
|
||||
## Notes
|
||||
|
||||
- The sandbox prevents locking ~/.gitconfig, leading to PermissionError.
|
||||
- Consider configuring pre-commit to use a repo-local config or skip locking by passing `--config` or setting `PRE_COMMIT_HOME`.
|
||||
@@ -117,6 +117,11 @@ echo "Done."
|
||||
|
||||
if [ "$agent_mode" = true ]; then
|
||||
echo "Launching codex agent for task $task_slug in $worktree_path"
|
||||
prompt_file="$repo_root/agentydragon/prompts/developer.md"
|
||||
if [ ! -f "$prompt_file" ]; then
|
||||
echo "Error: developer prompt file not found at $prompt_file" >&2
|
||||
exit 1
|
||||
fi
|
||||
cd "$worktree_path"
|
||||
codex "Read the task definition in agentydragon/tasks/$task_slug.md and update its **Status** and **Implementation** sections to make progress on the task. Continue editing the file until the task is complete."
|
||||
codex "$(<"$prompt_file")"
|
||||
fi
|
||||
@@ -18,12 +18,13 @@ goal: |
|
||||
List measurable criteria for completion.
|
||||
|
||||
## Implementation
|
||||
|
||||
**How it was implemented**
|
||||
Provide details on code modules, design decisions, and steps taken.
|
||||
Provide details on code modules, design decisions, and steps taken.
|
||||
*If this section is left blank or contains only placeholder text, the implementing developer should first populate it with a concise high-level plan before writing code.*
|
||||
|
||||
**How it works**
|
||||
Explain runtime behavior and overall operation.
|
||||
Explain runtime behavior and overall operation.
|
||||
*If this section is left blank or contains only placeholder text, the implementing developer should update it to describe the intended runtime behavior.*
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user