Skip to main content
← Back to list
01Issue
BugShippedSwamp CLITeam
Assigneesstack72

Relationships

#931 Agent setup suggests repo init in already initialized repos

Opened by evrardjp · 7/2/2026· Shipped 7/2/2026

Summary

In an already initialized swamp repository, swamp agent setup should not suggest running swamp repo init --tool pi to set up the repo. That guidance is misleading because the repo already exists.

Expected behavior

When the current directory is already initialized as a swamp repo and the user wants to enable the Pi agent integration, the suggested command should be:

swamp repo upgrade --tool pi

The message could say:

Run swamp repo upgrade --tool pi to use pi agent with this repo.

Actual behavior

The setup guidance suggests:

swamp repo init --tool pi

with wording like:

Run swamp repo init --tool pi to set up this repo.

Impact

This can confuse users and points them at the initialization path instead of the repository upgrade path for an existing repo.

Suggested fix

Detect when the repository is already initialized and switch the guidance from repo init to repo upgrade for adding the Pi agent tooling.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 1 MORECONTRIBUTOR_NOTIFIED

Shipped

7/2/2026, 10:46:06 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/2/2026, 10:10:10 PM
Editable. Press Enter to edit.

stack72 commented 7/2/2026, 10:46:16 PM

Thanks @evrardjp for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.