.cursor/README.md
cursor-agent in this repoThis directory holds Cursor-specific onboarding. For general Gas Town agent instructions, see ../AGENTS.md and ../CLAUDE.md.
gt from the repo root (make build or go install ./cmd/gt). Gas Town expects a working gt on your PATH for hooks and crew workflows.bd (beads) — issue DB under .beads/; see ../CONTRIBUTING.md for workflow.cursor-agent binary per Cursor’s documentation. The Gas Town preset name is cursor; the process is typically cursor-agent (an agent symlink may exist).cursor (GT_AGENT=cursor) — defined in internal/config/agents.go.cursor-agent (args include -f for auto-approve in autonomous flows).Hooks are installed under .cursor/hooks.json when roles are provisioned (EnsureSettingsForRole). After template or hook changes, restart agents (e.g. gt up --restore) so sessions pick up new files.
See .cursor/skills/gas-town-cursor/SKILL.md for agent-facing workflow (gt, resume, pointers to code).
Epic tasks for Cursor runtime parity are tracked in beads; coordination notes and script:
CI already runs go test ./... (same coverage as a “gate” over these packages). For a faster loop while touching Cursor-related code, narrow packages:
go test ./internal/config/... ./internal/hooks/... ./internal/crew/... ./internal/tmux/... ./internal/runtime/... -count=1 -short
Run as a non-root user if you want chmod/read-only failure tests in hooks and util (root skips those cases by design).
Run these only when changing behavior that tests do not cover end-to-end:
make build — gt binary builds.gt config agent list — output includes the cursor preset.GT_AGENT=cursor (or --agent cursor) and confirm the pane command shows cursor-agent or agent and the session receives hooks/nudges as expected.For full §9-style checklists, see the Cursor parity plan document in your planning folder if present; prefer adding automated tests in-repo when possible.