Skip to main content
Version: 2.0.0

Draft pull request

When the plan is clear, the agent applies the change in an isolated environment and leaves the result in a draft pull request in Bitbucket.

Repository​

The agent works with a single Bitbucket repository. It resolves it from a bitbucket.org URL in the work item description or in the relevant context.

  • If there is no repository, it asks.
  • If there are several, it asks.
  • GitHub URLs are ignored.
  • It does not support multi-repo.

Branch and pull request​

  • The branch is named deepseek/<key>-<slug>.
  • The pull request is created as a draft and cites the work item key.
  • The agent does not push to the default branch or merge.

Implementation​

The change runs in an isolated environment. If the repository already has tests or lint, the agent runs them. If they do not exist, it says so.

If the repository has an AGENTS.md file, the agent uses it as context.

Result​

When it finishes, the agent response includes:

  • The change summary.
  • The executed tests.
  • The detected risks.
  • The Bitbucket pull request link.

Jira offers to draft the comment on the work item. The agent does not publish the comment: the reviewer decides whether to publish it.

If the environment, tests, or Bitbucket fail, the message explains why and there is no push to the default branch.

Closing message with the summary, tests, risks, and pull request link

Iterating on the same pull request​

A later mention continues on the same branch and the same pull request for that key.

  • Each iteration starts from the existing branch, the pull request diff against the base branch, and the new instruction.
  • New commits go to that branch.
  • No merge is performed.

Cancelling a task​

You can cancel an in-progress task, including during implementation. The work stops and partial work is not published.

Usage limits​

The administrator defines token, step, and time limits per task. When a limit is reached:

  • The task stops.
  • The message states which limit was reached and what was completed.
  • Partial work is not published.
  • The branch remains as it was before that task.

Frequently asked questions​

If the agent cannot continue due to missing information, the task ends with the reason and a suggested question. You can continue with a mention. For other cases, see the Frequently asked questions.