Modular AI coding assistant supporting single and multi-agent workflows
Project description
EQUITR Coder
Modular AI coding assistant supporting single and multi-agent workflows and an ML-focused researcher mode. Includes an advanced TUI.
Quick Start
- Install (latest from PyPI):
</code></pre> </li> </ul> <p>pip install equitrcoder</p> <pre><code>- Optional extras: - API server: `pip install "equitrcoder[api]"` - TUI (Textual+Rich): `pip install textual rich` ## Configure API keys (env vars) Set whatever providers you plan to use: - `OPENAI_API_KEY` - `ANTHROPIC_API_KEY` - `OPENROUTER_API_KEY` - `MOONSHOT_API_KEY` - `GROQ_API_KEY` You can also set `CLAUDE_AGENT_MODEL`, `CLAUDE_AGENT_BUDGET`, and `CLAUDE_AGENT_PROFILE` to override defaults. Export examples (macOS/Linux): ```bash export OPENAI_API_KEY=sk-... export ANTHROPIC_API_KEY=... export OPENROUTER_API_KEY=...
TUI (Interactive)
- Launch TUI:
</code></pre> </li> </ul> <p>equitrcoder tui --mode single # or multi, research</p> <pre><code>- Keys: - Enter: execute task in current mode (requires task in input field) - m: open model selector - Ctrl+C: exit - Research mode fields: - Datasets: comma-separated paths - Experiments: `name:command; name:command; ...` Troubleshooting: - If you see a Textual widget error, ensure `textual` and `rich` are installed. - If you have no API keys, you can still launch the TUI, but model listings will be minimal and execution may fail when contacting providers. ## CLI - Single: ```bash equitrcoder single "Build a small API" --model moonshot/kimi-k2-0711-preview
- Multi:
</code></pre> </li> </ul> <p>equitrcoder multi "Ship a feature" --supervisor-model moonshot/kimi-k2-0711-preview <br /> --worker-model moonshot/kimi-k2-0711-preview --workers 3 --max-cost 15</p> <pre><code>- Research (ML only): ```bash equitrcoder research "Evaluate model X on dataset Y" \ --supervisor-model moonshot/kimi-k2-0711-preview --worker-model moonshot/kimi-k2-0711-preview \ --workers 3 --max-cost 12
Programmatic Usage
from equitrcoder import EquitrCoder, TaskConfiguration coder = EquitrCoder(mode="single", repo_path=".") config = TaskConfiguration(description="Refactor module X", max_cost=2.0, max_iterations=20) result = await coder.execute_task("Refactor module X", config) print(result.success, result.cost, result.iterations)
- Multi-agent and researcher programmatic configs are available via
MultiAgentTaskConfigurationandResearchTaskConfiguration.
API Server
- Start server (requires extras):
</code></pre> </li> </ul> <p>equitrcoder api --host 0.0.0.0 --port 8000</p> <pre><code>- Endpoints: - `GET /` root - `GET /health` - `GET /tools` - `POST /single/execute` - `POST /multi/create` - `POST /multi/{id}/execute` - `GET /multi/{id}/status` - `DELETE /multi/{id}` ## Configuration - Default config lives in `equitrcoder/config/default.yaml`. - User overrides: `~/.EQUITR-coder/config.yaml`. - Env overrides supported for selected keys (see code and docs). - `session.max_context: "auto"` is supported and normalized automatically. ## Examples See `examples/` for patterns: - `create_react_website.py` - `mario_parallel_example.py` - `research_programmatic_example.py` ## Troubleshooting - Missing models or keys: ensure relevant env vars are set. The TUI will still load, but execution may fail when contacting providers. - Textual errors: install TUI deps: `pip install textual rich`. - Git integration issues: run inside a git repo or disable with `git_enabled=False` in programmatic usage.
- Multi-agent and researcher programmatic configs are available via
- Multi:
- Launch TUI:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
equitrcoder-2.3.0.tar.gz
(162.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
equitrcoder-2.3.0-py3-none-any.whl
(197.5 kB
view details)
File details
Details for the file equitrcoder-2.3.0.tar.gz.
File metadata
- Download URL: equitrcoder-2.3.0.tar.gz
- Upload date:
- Size: 162.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea425a2a34d96c08df5b97654c3c52f3e2801146594b3c8b649fa245dfd26ba
|
|
| MD5 |
54ccca519d33738d9635cead93200dab
|
|
| BLAKE2b-256 |
c67222b7923432b3900c61c8d527398c53956c2476153035e40cb4dec6a99af6
|
File details
Details for the file equitrcoder-2.3.0-py3-none-any.whl.
File metadata
- Download URL: equitrcoder-2.3.0-py3-none-any.whl
- Upload date:
- Size: 197.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af4ea013b22fc2128524204a3b1bfd522d1d49079651e189be62cb5dc163e628
|
|
| MD5 |
29c3ea2c67cf0c693cf6e7c529a03b2e
|
|
| BLAKE2b-256 |
954bd581f2aed3b9183f3fe638fc355d7462265826232386174d25c50cfd8925
|