doc/user/work_items/workplan.md
{{< details >}}
{{< /details >}}
{{< history >}}
workplan. Disabled by default.{{< /history >}}
[!flag] The availability of this feature is controlled by a feature flag. For more information, see the history. This feature is available for testing, but not ready for production use.
A workplan is a structured Markdown document attached to a work item. It captures the intent, approach, and steps for a unit of work.
A workplan provides GitLab Duo agents with an agreed specification and a human-reviewable artifact on the work item. With this context, an agent has more to work from than a short prompt, so it can run the work more accurately.
You create a workplan with GitLab Duo or write one manually. GitLab Duo drafts the workplan from the work item context, and you refine it. Agents then use the workplan as the primary specification for the work.
The workplan is part of the GitLab Duo Agent Platform and the specification-driven development workflow.
The Workplan widget appears on the work item and shows the workplan status:
Use a workplan when you plan to give work to an agent, either by selecting Implement or by providing the plan to a coding agent yourself. A workplan adds the most value when an agent runs the work.
You do not need a workplan for small or well-understood changes, where planning adds more effort than it saves.
Create a workplan to describe how to complete a unit of work.
Prerequisites:
You can generate a workplan with GitLab Duo or write one manually.
Prerequisites:
To generate a workplan with GitLab Duo:
After you approve the plan, GitLab Duo writes it to the Workplan widget.
To create a workplan manually:
Workplan templates are description templates with filenames
that end in .plan.
To view a workplan:
The workplan opens in a panel and shows the rendered content.
Prerequisites:
To edit a workplan:
To discard your changes, select Cancel.
Regenerate a workplan to replace its content with a new version from GitLab Duo.
Prerequisites:
To regenerate a workplan:
GitLab Duo replaces the existing workplan with the new version.
Prerequisites:
To delete a workplan:
This action cannot be undone.
When a workplan exists, GitLab Duo can implement it in a merge request. GitLab Duo treats the workplan as the primary specification and uses the work item description and comments only for additional context.
Prerequisites:
To implement a workplan with GitLab Duo, use one of the following methods: