-
Notifications
You must be signed in to change notification settings - Fork 1
feat: agent auto-coordination mode (claim + fallback) #15
Copy link
Copy link
Open
Description
Problem
Today agents need explicit prompts telling them to use grit claim, handle Blocked, and retry. This is fragile — the agent might forget or misuse the CLI.
Proposal
Add a high-level command that handles coordination automatically:
grit assign -a agent-1 -i "implement math functions" --file src/MathService.csThis would:
- List available (unlocked) symbols in the file
- Pick one and claim it
- Output the worktree path and symbol name
- If all symbols in the file are locked, wait or return an error
The agent only needs one command instead of: symbols → status → claim → handle blocked → retry.
Use case
Simplify the agent prompt from 10 lines of grit instructions to:
Run: grit assign -a <your-id> -i "<task>" --file <file>
Edit the assigned function in the worktree path.
Run: grit done -a <your-id>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels