Skip to main content

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 MultiAgentTaskConfiguration and ResearchTaskConfiguration.

        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. 
          

Metadata

Release files for equitrcoder 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for equitrcoder 2.3.0
File Size Uploaded
equitrcoder-2.3.0.tar.gz 162.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for equitrcoder 2.3.0
File Interpreter ABI Platform
equitrcoder-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 360.1 kB

Release files / equitrcoder-2.3.0.tar.gz

Download URL equitrcoder-2.3.0.tar.gz
Size 162.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ea425a2a34d96c08df5b97654c3c52f3e2801146594b3c8b649fa245dfd26ba
BLAKE2b-256 checksum
How to use checksums
c67222b7923432b3900c61c8d527398c53956c2476153035e40cb4dec6a99af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / equitrcoder-2.3.0-py3-none-any.whl

Download URL equitrcoder-2.3.0-py3-none-any.whl
Size 197.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af4ea013b22fc2128524204a3b1bfd522d1d49079651e189be62cb5dc163e628
BLAKE2b-256 checksum
How to use checksums
954bd581f2aed3b9183f3fe638fc355d7462265826232386174d25c50cfd8925
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.0.1

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page