A single python script that edits code, runs terminal commands, reads images, and tests its own work. Zero extra packages for core, with 6 modular plugins.
The agent checks your workspace, decides what needs to be changed, and updates files step by step.
Checks folder layout, reads source files and images (PNG/JPEG), searches with regex, and outlines syntax.
Compares real files (+, ~, -) and git changes. Guards network fetches against SSRF and scrubs sensitive env tokens.
Figures out exact code edits. Can spawn isolated child sub-agents with all tools or a restricted tool list.
Patches lines cleanly, runs terminal commands or tests, and an independent critic verifies the result.
13 built-in tools in the core script, plus 6 modular plugins when extra capabilities are needed.
Instead of complex frameworks, Swades is built as one straightforward python file.
| Feature | Typical agent setups | Swades |
|---|---|---|
| Setup | Many python packages to install | 1 single script (zero pip install required for core) |
| Providers | Single provider lock-in or heavy SDKs | Dual providers: Groq (LPU speed) & OpenRouter (broad models) |
| Extensions | Editing core engine or complex class inheritance | Drop python files into plugins/ without modifying core script |
| Images & Vision | Separate microservices or extra vision dependencies | Automatic PNG/JPEG decoding in read_file and web_fetch |
| Verification | Assumes model output is correct | Independent critic re-checks evidence before marking done |
| Offline testing | Needs live API and network | Built-in --selftest tests all tools offline with mock servers |
| Safety & budget | Unbounded execution and open internal network calls | SSRF blocking, env scrubbing, monthly cost ledger & STOP switch |
Loading...
Run directly in your terminal or Google Colab with python:
git clone https://github.com/Xerv-Org/Swades.git && cd Swades && python agent.py --selftest