diff options
Diffstat (limited to 'Omni/Agent')
| -rw-r--r-- | Omni/Agent/DESIGN.md | 7 | ||||
| -rw-r--r-- | Omni/Agent/WORKER_AGENT_GUIDE.md | 7 |
2 files changed, 3 insertions, 11 deletions
diff --git a/Omni/Agent/DESIGN.md b/Omni/Agent/DESIGN.md index 3ff00fc..0ee1004 100644 --- a/Omni/Agent/DESIGN.md +++ b/Omni/Agent/DESIGN.md @@ -11,7 +11,6 @@ agent start <name> [--background] # Start a worker (foreground by default, back agent stop <name> # Stop a background worker agent status # List all workers and their status agent log <name> [-f] # View/tail worker logs -agent harvest # Harvest task updates from all workers agent sync # Sync local state with live (helper) ``` @@ -81,12 +80,6 @@ The Haskell implementation should replicate the logic of `start-worker.sh` but w - **Completion**: When a task finishes, print a summary line (e.g., `[✓] Task t-123 completed in 12m 30s`) and a hard line break before starting the next loop. - **History**: Previous log lines (tool outputs, thoughts) scroll up above these two status lines. -### 4.4 Harvesting -- Iterate over `.tasks/workers/` or `git worktree list`. -- For each worker, extract `.tasks/tasks.jsonl` via `git show`. -- Run `Task.import`. -- **Squashing**: If the previous commit on the target branch (live) was a harvest commit, use `git commit --amend` to consolidate updates and reduce commit noise. - ### 4.5 Git Robustness (Learnings) - **Identity**: Configure `git config user.name "Omni Worker"` and `user.email` in the worktree to clearly distinguish worker commits from human commits. - **Force Checkout**: The worker must use `git checkout -f` (or equivalent) when switching to task branches to ensure untracked files (like `.tasks/counters.jsonl`) don't block the switch. diff --git a/Omni/Agent/WORKER_AGENT_GUIDE.md b/Omni/Agent/WORKER_AGENT_GUIDE.md index e832a2a..d0bc7a7 100644 --- a/Omni/Agent/WORKER_AGENT_GUIDE.md +++ b/Omni/Agent/WORKER_AGENT_GUIDE.md @@ -90,20 +90,19 @@ task update t-123 in-progress # Sync to get latest state ./Omni/Agent/sync-tasks.sh - # Ensure the task is marked review here too (for harvest visibility) + # Ensure the task is marked review here too task update t-123 review # Commit this status change to the worker branch ./Omni/Agent/sync-tasks.sh --commit ``` - *Note: The Planner will now see 't-123' in 'Review' when it runs `harvest-tasks.sh`.* + *Note: The Planner will now see 't-123' in 'Review' when it runs `task list --status=review`.* ## 3. Planner (Reviewer) Workflow The Planner Agent (running in the main repo) will: -1. **Harvest Updates**: Run `./Omni/Agent/harvest-tasks.sh` to pull "In Progress" and "Review" statuses from workers. -2. **Find Reviews**: Run `task list --status=review`. +1. **Find Reviews**: Run `task list --status=review`. 3. **Review Code**: * Check out the feature branch: `git checkout task/t-123`. * **Rebase onto Live**: Ensure the branch is up-to-date and linear. |
