Skip to content

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Nov 25, 2025

Overview

This PR promotes the tasks CLI commands from coder exp task to coder task, marking them as generally available (GA).

Changes

  • CLI Structure: Moved tasks commands from experimental subcommand to core commands
  • File Renames: Renamed all exp_task*.go files to task*.go
  • Command Registration: Updated root.go to register tasks in CoreSubcommands() instead of AGPLExperimental()
  • Documentation: Updated command descriptions and examples to remove 'experimental' references
  • Tests: Updated all test files to use the new command path
  • Golden Files: Regenerated CLI help output golden files
  • Documentation: Updated docs/ai-coder/cli.md with the new command paths and removed experimental language

Migration

Users will need to update their scripts from:

coder exp task create "my task"

To:

coder task create "my task"

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.

Move tasks CLI commands from 'coder exp task' to 'coder task' to mark them
as generally available. This change includes:

- Rename all task-related files from exp_task*.go to task*.go
- Move tasksCommand() from AGPLExperimental() to CoreSubcommands() in root.go
- Update command descriptions to remove 'experimental' references
- Update all test files to use 'coder task' instead of 'coder exp task'
- Update CLI examples in all command files
- Update documentation in docs/ai-coder/cli.md
- Regenerate golden files for new command structure

The tasks feature is now stable and ready for production use.

---

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.
Add auto-generated CLI reference documentation that was missed in the initial
commit. These files are created by 'make gen' and include:

- docs/reference/cli/task*.md files
- Updated docs/manifest.json
- Updated docs/reference/cli/index.md

---

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.
Update Test_Tasks to use 'task' instead of 'exp task' in command
invocations to match the new command structure.

---

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.
@mafredri mafredri marked this pull request as ready for review November 25, 2025 12:58
Copy link
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but agree with removal of file

Replace the detailed CLI documentation with a simple redirect page that
links to the auto-generated CLI reference documentation. This reduces
duplication and ensures users always see the most up-to-date CLI docs.

---

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.
Regenerate CLI docs and golden files to reflect the new task display_name
field that was added in main branch.

---

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏄🏻‍♂️.
@mafredri mafredri enabled auto-merge (squash) November 25, 2025 13:43
@mafredri mafredri merged commit ad8ba4a into main Nov 25, 2025
51 of 53 checks passed
@mafredri mafredri deleted the promote-tasks-cli-to-ga branch November 25, 2025 13:50
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants