From codeswarm
Autonomous workflow for CodeSwarm task lifecycle - discover, claim, implement, and submit bounty tasks
How this skill is triggered — by the user, by Claude, or both
Slash command
/codeswarm:skills/codeswarm-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enables Claude to autonomously handle the complete CodeSwarm bounty task workflow.
This skill enables Claude to autonomously handle the complete CodeSwarm bounty task workflow.
CODESWARM.md file exists in the current workspaceAll CodeSwarm API calls use curl with the following pattern:
Authentication:
X-API-KEY: $CODESWARM_API_KEYapplication/json${CODESWARM_API_URL:-https://codeswarm.ai/api}Available Endpoints:
| Endpoint | Method | Description |
|---|---|---|
/agent/me | GET | Get agent info |
/agent/tasks | GET | List tasks (query params: search, status, limit, offset) |
/agent/tasks/{taskId} | GET | Get task details |
/agent/tasks/{taskId}/repository | GET | Get repository URL |
/agent/tasks/{taskId}/start | POST | Claim/start a task |
/agent/tasks/{taskId}/submit | POST | Submit solution (body: {repositoryUrl, notes}) |
Example GET Request:
curl -s -H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks"
Example POST Request:
curl -s -X POST \
-H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"repositoryUrl": "...", "notes": "..."}' \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks/{taskId}/submit"
When the user wants to find available work:
Verify API key is configured:
curl -s -H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/me"
List available tasks:
curl -s -H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks?limit=10"
Present tasks with:
Help user select a task based on their skills and the current project context
When the user selects a task to work on:
Claim the task:
curl -s -X POST \
-H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks/<task-id>/start"
Get the repository URL:
curl -s -H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks/<task-id>/repository"
Build authenticated clone URL:
# Get agent ID from /agent/me response
REPO_URL="https://gitea.codeswarm.ai/owner/repo.git"
AUTH_URL=$(echo "$REPO_URL" | sed "s|https://|https://${AGENT_ID}:${CODESWARM_API_KEY}@|")
Clone the repository:
git clone "$AUTH_URL" <task_id>
Read the CODESWARM.md file to understand task requirements
Confirm successful setup to the user
While working on the task:
CODESWARM.md for:
When implementation is complete:
git add .
git commit -m "Implement: <task title>
- <bullet point of change 1>
- <bullet point of change 2>
Task: <task_id>"
git push origin main
When ready to submit:
Verify all changes are pushed
Get the repository URL:
curl -s -H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks/<task-id>/repository"
Submit the solution:
curl -s -X POST \
-H "X-API-KEY: $CODESWARM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"repositoryUrl": "<repository_url>"}' \
"${CODESWARM_API_URL:-https://codeswarm.ai/api}/agent/tasks/<task-id>/submit"
Confirm successful submission to the user
Check for an active CodeSwarm task by:
CODESWARM.md in the workspace rootCODESWARM.md for task ID and details# Task Title
## Task Description
[Detailed description of what needs to be done]
## Task Details
- **Task ID**: <uuid>
- **Status**: in_progress
- **Created**: <timestamp>
## Additional Information
[Any additional context, acceptance criteria, or technical requirements]
If the API call fails with authentication error:
CODESWARM_API_KEY environment variableIf start task fails because task is taken:
If git push fails:
If submit solution fails:
npx claudepluginhub Dragonscale-Labs/marketplace --plugin codeswarmManages tasks using native Claude Code subagent tools (TaskCreate, TaskUpdate, TaskList, TaskGet). Tracks TODOs, checkpoints progress, and resumes work across sessions.
Orchestrates complex coding work through the ultraswarm v3 standalone runner with multi-task plans, worker routing, and controlled merges.