Ship a Copado User Story from Claude Code with the Agentia CLI

By Carlos García Abella
From backlog to a validated, promotion-ready story without leaving your IDE.
Introduction
Developers who work on Copado user stories often switch between several tools. They read the story in one place, write code in another, commit through Git, and then check validation jobs back in Copado.
The Agentia CLI brings that workflow into your IDE and into your AI coding agent. This walkthrough uses it with Claude Code, from picking a story to resolving a failed promotion.
By the end, you'll have seen how to:
- Choose a delivery workflow (local or cloud).
- Browse your backlog and set a story as your current work item.
- Ask an agent to implement the story with local quality gates.
- Review committed and synced metadata and the dependency analysis.
- Diagnose a failed promotion and resolve a merge conflict without leaving the IDE.
What you need
- The Agentia skills installed in Claude Code. They teach the agent how to work with Copado CICD.
- The Salesforce development plugin for Claude Code.
- The Agentia IDE Extension, which provides the delivery workflow view.
- A Copado CICD API key configured with
agentia auth set - A Git repository connected to your Copado pipeline
Step 1: Choose your delivery workflow
The extension's first screen is the delivery workflow. It starts unset, and you choose between two options:
| Workflow | When to use it |
|---|---|
| Local | You use Git locally and commit from your own repository. |
| Cloud | You don't use local Git. Changes are handled in the cloud. |
If you aren't sure what these mean, ask Copado Help from the IDE. Copado Help is Copado AI with a support agent. In the demo I asked it to explain the delivery workflow, and it described both flows.
I use Git locally, so I selected local repository.
Step 2: Pick a user story and make it current
The extension shows your backlog. I chose Auto-calculate shipment quote. You can also search for any other story from the same view.
Opening a story shows its fields: description, functional requirements, and the other fields on the record. Acceptance criteria and technical specifications are not shown in this view.
The story also shows where it stands relative to the rest of the pipeline. Mine was one story ahead and two behind.
Next I set the story as the current work item. This tells the tooling and the agent which story you're working on. The same view then shows the story's context:
- Ahead and behind counts
- Dependent jobs
- Deployment steps
- Metadata
Step 3: Let the agent implement the story
In Claude Code, I gave the agent one instruction:
Implement user story with local quality gates.
Because the story is the current work item, the agent has the requirements, the pipeline state and the Copado skills. It implemented the story and ran the local quality gates. It then published and synced the result to the story.
The extension then showed:
- Committed metadata: what went into the commit.
- Synced metadata: what is registered on the user story in Copado.
- Dependency analysis: how the changed components relate to other metadata.
At that point the story was ready to validate.
Step 4: Validate and troubleshoot a failed promotion
Validation creates a job. In the demo, the job was a promotion, and it failed.
Opening the job showed the error, which was a merge conflict. The promotion details were also available there. The agent helped here too. It looked at the conflicts and gave a summary: the promotion failed because of a merge conflict.
Step 5: Resolve the merge conflict in the IDE
You don't need to go anywhere else to fix the conflict. The conflict view lets you do a manual resolution. For each conflict you can:
- Accept current change (the target side), or
- Accept incoming change (your feature branch).
I chose accept incoming and saved. Then I resumed the promotion, which completed.
The story is now ready for the release manager to promote and deploy.
Why this workflow helps
- One place for the whole loop. Story context, implementation, validation and conflict resolution all happen in the IDE.
- The agent has real context. Setting a current work item means the agent works from the actual story and pipeline state.
- Quality gates run before sync. The agent runs them locally, so problems surface before the promotion.
- Failures are diagnosed where they happen. You see the failed job, the error and the fix in the same session.
- Help is built in. Copado Help answers product questions without leaving your flow.
Get new articles by email
We'll send you one email each time a new article is published. Unsubscribe anytime.