Create and test your SWE agent with Claude Code integration
Goal: Create and test your SWE agent with Claude Code integrationExpected Output: Working agent that can coordinate with Claude Code for development tasks
xpander login# Get your agent details - copy the Agent ID and API Key from outputxpander agent get "SWE Agent"
Add your credentials to the .env file:
.env
Copy
Ask AI
XPANDER_AGENT_ID=your-agent-id-hereXPANDER_API_KEY=your-api-key-hereOPENAI_API_KEY=your-openai-api-key # (If running in an in-person workshop, ask the workshop team)
Replace the placeholder values with your actual credentials from the previous command output.
5
Test via CLI
test-agent.bash
Copy
Ask AI
# Run the agent via CLIxpander agent invoke "SWE Agent" "Can you write bubble sort algorithm in Python?"
You’ve just witnessed something pretty amazing. Your SWE agent isn’t actually writing code itself – it’s acting like a smart project manager that knows exactly when to bring in the right specialist for the job.Think of it this way: when you asked for “hello world in different languages,” your agent understood the request, then tapped Claude Code (which has direct access to GitHub and can create pull requests) to handle the actual coding work. Your agent then coordinated the response back to you.This is multi-agent collaboration in action. Instead of one agent trying to do everything, you have specialized agents working together. Your SWE agent handles strategy and coordination, while Claude Code handles the technical implementation. This means you can scale development work far beyond what any single agent could handle – and it’s all happening seamlessly behind the scenes.