Cursor worker — implement
Parent (Fable) orchestrates; Grok 4.6 Low executes via cursor-agent. Do not prompt cursor-agent like Claude — use a self-contained brief (paths, scope, constraints, verification).
Prerequisite
which cursor-agent # must exist; uses Cursor subscription auth
Workflow
- Confirm scope with the user if ambiguous.
- Write a self-contained prompt (repo root, files, acceptance criteria).
- Run from repo root:
REPO="$(git rev-parse --show-toplevel)"
cursor-agent -p --force --output-format json \
--workspace "$REPO" \
--model 'cursor-grok-4.6-low[fast=false]' \
"YOUR_SELF_CONTAINED_PROMPT"
- Parse JSON stdout; summarize files changed, commands run, blockers.
- If the parent needs proof, load
cursor-worker-reviewor run project checks.
--force auto-approves edits/shell (headless has no prompt to answer); --trust alone only trusts the workspace. Add --worktree <slug> for parallel edits that must not collide. Default model cursor-grok-4.6-low[fast=false] (standard speed, not Fast).
Timeouts
Long runs may exceed the parent shell timeout. For multi-hour work: run in background, log to a file, poll for completion.
When parent should use this
- Clear-spec implementation, refactors, migrations, repetitive edits
- Parent should not bulk-edit when this skill is available