Create and run an agent shift
Use this guide to walk through the core shift lifecycle — creating a shift, running it against target repositories, and merging the resulting pull requests.- Navigate to
Fleetshiftin the sidebar. - Click
New Shiftand selectAgent. - Fill in:
- Name:
add-codeowners - Prompt:
Add a CODEOWNERS file to the root of the repository based on the existing contributors. - PR title:
Add CODEOWNERS file
- Name:
- Select two or three target repositories and click
Create. - On the shift details page, select all targets and click
Run. - Watch the target status transition from
pendingtojobRunningtojobComplete. - Open the
Logstab to follow the agent’s progress in real time. - Once complete, open the
Difftab to review the generated changes. - Click
Create PRon a completed target. - The status transitions to
prCreatingand thenprOpen. Click the PR link to open it in GitHub. - After you merge the PR in GitHub, the status automatically updates to
prMergedthrough the webhook you configured during setup.
Fix a failing Soundcheck check
If a component is failing a Soundcheck check, you can launch a Fleetshift shift directly from the Soundcheck UI to generate a fix.- Navigate to
Soundcheckand open a check that has failing components. - On the Check Insights page, find a failing component.
- Click
Fix with Fleetshift. - You are taken to the Fleetshift new shift wizard with the Soundcheck check pre-filled as the target source.
- Write a prompt that describes the fix, such as:
Fix the failing check by adding the required configuration file. - Click
Create, then trigger the shift and wait for it to complete. - Create a PR from the completed target.
- Back in Soundcheck, the check details page shows the Fleetshift PR with its
current status. Click
View Progressto jump to the shift details. - After the PR is merged, the Soundcheck check transitions from
FailtoPassand theFix with Fleetshiftbutton is hidden.
Fix a failing check with AiKA
You can also remediate failing Soundcheck checks conversationally through AiKA.- Navigate to
Soundcheckand open a check with failing components. - On a failing component, click
Fix with AiKA. - The AiKA chat panel opens with the check context preloaded — including the check name, entity ref, and failure details.
- AiKA analyzes the failure and proposes a fix. Follow its guidance to remediate the issue.
Fix with AiKA is only available when AiKA is configured on your Portal
instance.Run a campaign-level bulk fix
When a Soundcheck campaign has many failing components, you can use Fleetshift to fix them all at once instead of one at a time.- Navigate to
Soundcheckand open a campaign with multiple failing components. - On the Campaign Insights page, click
Fix with Fleetshift. - The Fleetshift wizard opens with the campaign as the target source, showing all failing components.
- Create and trigger the shift. Jobs run against all failing components in parallel.
- Back on the Campaign Insights page, a
Shift in progresslabel indicates the shift is running. - The Pull Requests table shows all created PRs with their status, component name, and links. You can sort and filter by component name or status.
- As you merge PRs in GitHub, the campaign pass rate increases automatically as
checks transition from
FailtoPass.
Use MCP actions for an AI-assisted workflow
If you use AiKA or another MCP-compatible AI agent, you can drive the entire shift workflow through conversation. See the MCP actions reference for the full list of available actions. Here is an example conversation flow:- Ask your agent:
What Soundcheck checks are failing on <component name>?The agent callsfind-shift-for-soundcheckand returns matching shifts or suggests creating one. - Ask:
Fix the failing <check name> check on <component name>.The agent callstrigger-honk-planningand presents a remediation plan for your approval. - After you approve, the agent calls
trigger-honk-joband pollsget-job-statusto report progress. - When the job completes, the agent calls
create-prsand shares the PR link. - At any point, ask
How is my shift doing?and the agent callsget-shift-statsto report completion percentage, merge rate, and failure rate.
Fetch job logs programmatically
Job logs are available through a REST endpoint and as an MCP action, so you can pull them into scripts, CI pipelines, or AI agent conversations.REST API
Send aGET request to the logs endpoint with a Bearer token for authentication:
targetId is the full entity ref (for example, component:default/my-service), URL-encoded in the path. The response is text/plain log output.
This endpoint requires the
fleetshift.shift.trigger permission. The token
must belong to a user or service account with this permission assigned.MCP (AI agents)
MCP-compatible agents such as AiKA discover theget-job-logs action automatically. Ask your agent to fetch logs for a specific target:
Show me the logs for theThe agent callsadd-codeownersshift oncomponent:default/my-service.
get-job-logs and returns the log output inline in the conversation.