Terry chen's SWE Agent powered by GitHub Copilot Pro
A Minimal, Ready-to-Run SWE Agent — Designed specifically for GitHub Copilot Pro users (especially for students who get education ceritification LOL).
Powered by your Copilot Pro subscription, this agent acts like a real software engineer: it automatically clones repositories, explores code, fixes GitHub Issues, and generates a ready-to-apply patch.
- Zero-config Copilot Pro support via LiteLLM (uses gpt-4o, Claude, etc. with your existing Copilot Pro quota)
- Fully autonomous Issue fixing: runs
ls,cat,grep,sed -i, tests, and more until the bug is fixed - Clean output: automatically creates
final_patch.diffthat you can apply withgit apply - Safe by design: every task runs in a temporary folder that is deleted when finished
- Perfect Windows support (PowerShell + CMD optimized)
- Extremely simple code: only ~150 lines, easy to read, modify, and learn from
git clone https://github.com/YOUR-USERNAME/my-swe-agent.git
cd my-swe-agent# Windows PowerShell
.venv\Scripts\Activate.ps1
# Windows CMD
.venv\Scripts\activate.bat
# macOS / Linux
source .venv/bin/activate###3. Install dependencies
pip install -r requirements.txt
###4. Run the agent (first run will open browser for authorization)
python swe_agent.py https://github.com/pallets/flask.git "Fix a simple bug: when input is empty, the homepage should show a welcome message instead of throwing an error"
• Thought: thinks about the next step
• Command: outputs exactly one bash command
The entire process is fully autonomous — just like having a junior software engineer working for you.