Metadata-Version: 2.4
Name: co-agent-coder
Version: 0.1.4
Summary: A private AI coding agent for the free Google Colab T4: local 7B model, git-backed memory, reviewable branches.
Author: Lyle Okoth
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/lyle-mlengineer/coagent
Project-URL: Documentation, https://github.com/lyle-mlengineer/coagent/blob/main/README.md
Project-URL: Source, https://github.com/lyle-mlengineer/coagent
Project-URL: Issues, https://github.com/lyle-mlengineer/coagent/issues
Project-URL: Changelog, https://github.com/lyle-mlengineer/coagent/blob/main/CHANGELOG.md
Keywords: coding-agent,colab,llm,transformers,git,qwen
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tomli>=2.0.1; python_version < "3.11"
Provides-Extra: llm
Requires-Dist: torch<2.7,>=2.4; extra == "llm"
Requires-Dist: transformers<4.49,>=4.45; extra == "llm"
Requires-Dist: accelerate<1.2,>=0.34; extra == "llm"
Requires-Dist: bitsandbytes<0.51,>=0.46.1; extra == "llm"
Requires-Dist: safetensors>=0.4.3; extra == "llm"
Provides-Extra: ui
Requires-Dist: ipywidgets>=8.1; extra == "ui"
Requires-Dist: ipython>=8.18; extra == "ui"
Requires-Dist: nbformat>=5.10; extra == "ui"
Requires-Dist: nbconvert>=7.16; extra == "ui"
Provides-Extra: gradio
Requires-Dist: gradio<6,>=4.44; extra == "gradio"
Provides-Extra: context
Requires-Dist: tree-sitter<0.25,>=0.23; extra == "context"
Requires-Dist: tree-sitter-python>=0.23; extra == "context"
Requires-Dist: tree-sitter-javascript>=0.23; extra == "context"
Requires-Dist: json5>=0.9.25; extra == "context"
Provides-Extra: dev
Requires-Dist: pytest>=8.2; extra == "dev"
Requires-Dist: pytest-cov>=5.0; extra == "dev"
Requires-Dist: ruff>=0.6; extra == "dev"
Requires-Dist: nbformat>=5.10; extra == "dev"
Requires-Dist: nbconvert>=7.16; extra == "dev"
Requires-Dist: ipykernel>=6.29; extra == "dev"
Provides-Extra: colab
Requires-Dist: coagent[context,llm,ui]; extra == "colab"
Provides-Extra: all
Requires-Dist: coagent[context,dev,gradio,llm,ui]; extra == "all"
Dynamic: license-file

# coAgent

<p align="center">
  <img src="https://raw.githubusercontent.com/lyle-mlengineer/coagent/main/assets/cover.png" alt="coAgent — a private coding agent for the free Google Colab T4 that commits every checkpoint back to git" width="100%" />
</p>

<p align="center">
  <img src="https://img.shields.io/badge/Status-design%20v1.0-FFC24B?style=for-the-badge&logoColor=black" alt="Design v1.0"/>
  <img src="https://img.shields.io/badge/Target-free%20Colab%20T4-F9AB00?style=for-the-badge&logo=googlecolab&logoColor=white" alt="Free Colab T4"/>
  <img src="https://img.shields.io/badge/Model-7B%20NF4%20%C2%B7%2012k-7EF0C0?style=for-the-badge&logoColor=black" alt="7B NF4, 12k context"/>
  <img src="https://img.shields.io/badge/Python-3.11-3776AB?style=for-the-badge&logo=python&logoColor=white" alt="Python 3.11"/>
  <a href="https://github.com/lyle-mlengineer/coagent-web"><img src="https://img.shields.io/badge/Web-coagent--web-E05785?style=for-the-badge&logo=github&logoColor=white" alt="Web front door"/></a>
  <a href="https://colab.research.google.com/github/lyle-mlengineer/coagent/blob/main/notebooks/bootstrap.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab"/></a>
  <img src="https://img.shields.io/badge/License-Apache%202.0-D22128?style=for-the-badge&logo=apache&logoColor=white" alt="Apache 2.0"/>
</p>

**[Open in Colab](https://colab.research.google.com/github/lyle-mlengineer/coagent/blob/main/notebooks/bootstrap.ipynb) · [Design](https://github.com/lyle-mlengineer/coagent/blob/main/DESIGN.md) · [PRD](https://github.com/lyle-mlengineer/coagent/blob/main/PRD.md) · [Web front door](https://github.com/lyle-mlengineer/coagent-web)**

> **Alpha release.** `0.1.4` is published on PyPI as [`co-agent-coder`](https://pypi.org/project/co-agent-coder/). The architecture lives in `DESIGN.md` and the requirements in `PRD.md`; the interfaces below are the shipped v0.1 surface.

### Install

```bash
pip install co-agent-coder            # core: config, loop, tools, git plumbing
pip install "co-agent-coder[colab]"   # + the GPU stack, notebook surface, and context tools
```

The distribution is named `co-agent-coder`; the import name and the CLI are both `coagent`.

The **`[colab]` extra is not optional if you intend to load a model.** It carries
torch, transformers, and bitsandbytes; the plain install is the loop, tools, and
git plumbing only, which is why it works on a laptop CPU. Installing without the
extra and then calling `agent.chat(...)` fails at model load with
`Using bitsandbytes 4-bit quantization requires bitsandbytes`. bitsandbytes must
be `>=0.46.1` — that is the floor transformers enforces before its NF4 quantizer
will run.

### Run it

Open the bootstrap notebook in Colab — **Runtime → Change runtime type → T4 GPU** — and run the cells. The whole install story is three lines:

```python
from coagent import coAgent
agent = coAgent(repo="https://github.com/you/project.git")
agent.chat("add a chunked CSV loader and test that dtypes are preserved")
```

The notebook checks your hardware before loading weights and refuses with a reason if the runtime cannot host the model. Everything after that — the plan, each edit, the test result, the commit — appears in the cell, and every checkpoint lands on a `coagent/<session>` branch you can review.

**coAgent is an AI coding agent that lives inside a Google Colab notebook.** It clones your repo into the free T4, plans inside your own files, edits with a locally loaded 7B model, runs your tests on CPU, and commits every checkpoint back to git — on a branch you can review. The runtime is disposable; the repository is the memory.

No API keys. No per-token cost. Nothing sent to a third-party model API — your code only travels to the repo you already own.

The public landing page, waitlist, and GitHub sign-in live in [coagent-web](https://github.com/lyle-mlengineer/coagent-web). This repo is the agent itself.

## What it does

**Cloud coding agents assume a credit card and that you will send them your code.** Colab gives students, researchers, and independent engineers a free GPU but none of the workflow: no durable disk, no inbound ports, and a runtime that disappears without warning. coAgent is designed backwards from that constraint.

- 🔒 **Private by construction** — the 7B model runs in your Colab VM. Your code is never sent to a third-party API, and there is no account beyond GitHub.
- 💸 **Zero keys, zero marginal cost** — 7B at NF4 fits the free T4 (4.2–4.6 GB of weights, ≤10 GB peak VRAM), so exploration is never metered.
- 🧠 **Git is the state store** — one commit per verified step, pushed or bundled off the VM before the next turn. A dead runtime costs at most one step.
- ✅ **Tests are the critic** — a 7B model cannot hold a system in its head, so deterministic checks decide what counts as done: parse, lint, then your suite.
- 🧯 **Honest about failure** — a VRAM OOM ladder, step/wall-clock/token budgets, loop detection, and a written report instead of a silent stop.
- 📓 **Notebook-native** — plots render inline, artifacts persist to the repo or Drive with a manifest, and the UI works without hosting anything.

## Who it's for

| If you are… | coAgent gives you… |
| --- | --- |
| **A solo ML engineer** *(primary)* | Repo changes and test runs without leaving Colab or paying per token — with your code staying private. |
| **A data analyst** | A cell edited, executed, and a figure rendered and saved with a manifest, not just source files. |
| **A student or learner** | A real coding agent at zero marginal cost, on hardware you already have. |
| **Not for:** teams needing concurrent users, monorepos over ~50k LOC, or fully autonomous long-running agents. | Those needs would compromise the T4-only, single-user design. |

## How it works

```mermaid
flowchart TB
  subgraph U["You · browser tab"]
    NB["Notebook cell · chat, plan approval, artifacts"]
  end
  subgraph V["Colab VM · disposable"]
    K["IPython kernel"]
    A["agent loop · survey → plan → act → verify"]
    M["Qwen2.5-Coder-7B · NF4 · 12k ctx"]
    T["tool runtime · subprocess · git"]
    W["/content/repo"]
  end
  subgraph D["Durable"]
    GH["GitHub · branch coagent/2026-11-12-a1b2c3"]
    DR["Drive · bundles, artifacts, HF cache"]
  end
  NB --> K --> A
  A <--> M
  A --> T --> W
  W -->|"checkpoint: commit + push"| GH
  W -.->|"bundle when push is unavailable"| DR
  V -.->|"eviction"| D
```

The loop is split into five phases with **different prompts and different tool sets**, because a small model does one job well:

| Phase | Sees | Can do | Sampling |
| --- | --- | --- | --- |
| **SURVEY** | repo map, task, plan | read tools only | T=0.2 |
| **PLAN** | task + retrieved files | nothing — writes a plan file | T=0.7 |
| **ACT** | plan, excerpts, last 3 observations | one write or exec | T=0.2 |
| **VERIFY** | diff, test output | run tests/lint only | deterministic |
| **REPORT** | plan, log | nothing | T=0.5 |

**PLAN cannot write.** A model that can act while planning will start editing before it has read the file. For anything beyond a single-file change, the plan is shown and must be approved before ACT — the human supplies intent, the model executes.

### A worked turn

```text
user:  add a chunked CSV loader to src/loader.py and test dtype preservation

SURVEY  read src/loader.py, src/frame.py; repo map shows Frame.from_rows exists
PLAN    .coagent/plans/chunked-csv.md written        [approved]
ACT     edit_file src/loader.py  (+18 -3)            [syntax ok]
VERIFY  pytest tests/test_loader.py -q → 1 failed    [assert dtype]
ACT     edit_file src/loader.py:31                   [fix cast]
VERIFY  pytest -q → 12 passed
CHECKPOINT commit a1b2c3d "coagent: add chunked CSV loader" (Coagent-Step: 7) + push
REPORT  branch coagent/2026-11-12-a1b2c3 ready; 1 file, +18 -3, 12 tests green
```

## Designed backwards from a free T4

Every design decision is a response to a Colab constraint.

| Colab reality | What coAgent does about it |
| --- | --- |
| **Ephemeral VM**, ~12 h cap, ~90 min idle disconnect | Commit per verified step, sync off the VM before the next turn, and resume from the last checkpoint on any new VM. |
| **One free T4**, 16 GB, compute capability 7.5 | 7B at NF4, 12,288-token hard cap, fp16 + SDPA. Model resident ~6.5–8 GB, leaving ≥7 GB for your own work. |
| **~25 tokens/s decode** | Repo map instead of exploration, diffs instead of rewrites, tests instead of self-critique. Turns-to-done is the metric. |
| **2 vCPU, ~12.7 GB RAM** | No vector database. BM25 over function-sized chunks plus a symbol graph. |
| **No inbound ports** | The UI lives in the notebook; no daemon, no tunnel, no hosted service. |
| **Root-ish shell, no containers** | Approval matrix, command denylist, path jail on reads *and* writes. The denylist is a seatbelt, not a sandbox — the real control is the human click. |

Preflight prints the GPU, VRAM, RAM, cache state, and chosen context budget before loading weights, then refuses anything that is not a T4 (compute capability 7.5, ≥14 GB VRAM) unless `--allow-unsupported` is passed. If the 7B cannot fit after the OOM ladder, the fallback is the 3B at 8k — never a larger model, never CPU-only, never a paid tier.

## Safety and trust

| Action | Default |
| --- | --- |
| read / grep / repo map, inside the jail | allow |
| read outside the jail | deny unless explicitly allowed |
| write inside the repo, on the session branch | allow |
| run tests, lint, syntax check | allow |
| arbitrary shell command, network, install | ask |
| delete / move / chmod, write outside the repo | ask |
| `git push` to `coagent/*` on a configured remote | allow at checkpoint |
| push to `main`, `--force`, `reset --hard` | deny |

- **Branch isolation** — coAgent works on `coagent/<date>-<id>` and never pushes to `main`. `git log --author=coagent` is the audit trail.
- **Secrets** — read from Colab `userdata` into memory, injected only into the git child process, never into the repo or a log. Clone through a `GIT_ASKPASS` helper instead of putting a token in the remote URL.
- **Redaction** — GitHub, Hugging Face, OpenAI, AWS, Google, and JWT-shaped tokens are scrubbed before any log or display write.
- **Prompt injection** — observations are wrapped as data, side effects require approval, and the agent branch cannot reach `main`. The second layer is the real guarantee; the docs say so plainly.

## How to use it

The target flow is one Colab notebook, one repo URL, and a task. Everything below ships with v0.1.

1. **Open the bootstrap notebook in Colab** and select a T4 runtime. Preflight reports the hardware and the context budget before a single weight is loaded.
2. **Add a fine-grained GitHub PAT** to Colab secrets as `GH_TOKEN`, scoped to the one repo. It never enters the notebook source.
3. **Run the cell.** Install, construct, chat — at most three lines of user code. Cold start targets ≤10 minutes; the weights are cached locally for the next session.
4. **Describe the task.** coAgent surveys, proposes a plan, and waits for your approval before it writes anything.
5. **Review the branch.** Every verified step is a commit with `Coagent-Session`, `Coagent-Step`, and `Coagent-Verify` trailers; `coagent push` opens the PR path.
6. **Recover.** If the runtime dies, run `coagent resume` on a fresh VM and it replays from the last checkpoint, losing at most one step.

```python
!pip -q install co-agent-coder        # or: git+https://github.com/lyle-mlengineer/coagent

from coagent import coAgent

agent = coAgent(repo="https://github.com/you/my-project.git")
agent.chat("add a chunked CSV loader and test dtype preservation")
```

### Commands

| Command | What happens |
| --- | --- |
| `coagent chat` | Opens the notebook chat loop in the current kernel. |
| `coagent run "<task>"` | One-shot: survey → plan → act → verify → checkpoint → report. |
| `coagent resume` | Rebuilds session state from branch + plan + log on any VM. |
| `coagent doctor` | Versions, GPU, cache, git auth, and a one-line verdict. |
| `coagent report` | Session summary generated from `.coagent/sessions/*.jsonl`. |
| `coagent eval` | Runs the task suite and reports turns-to-done. |
| `coagent push` | Pushes `coagent/*` and optionally opens a PR. |

## Configuration

Per-repo settings are committed so a session is reproducible on any machine:

| Key | Default | Notes |
| --- | --- | --- |
| `model.name` | `Qwen/Qwen2.5-Coder-7B-Instruct` | 3B is the validated fallback. |
| `model.quant` | `nf4` | bitsandbytes NF4; fp16 compute on T4. |
| `model.max_context` | `12288` | Hard cap, counted with the model's tokenizer. |
| `verify.commands` | `["ruff check .", "pytest -q"]` | CPU-only by default. |
| `verify.gpu_commands` | `[]` | Explicit opt-in; the model yields VRAM first. |
| `verify.timeout_s` | `300` | Per command; process group is killed. |
| `verify.require_tests` | `true` | A feature without a test is not done. |
| `durability.mode` | `push` | `push` to git, or `bundle` to Drive when offline. |
| `durability.remote` | `origin` | Push target; `main` is denied. |
| `safety.deny` | force-push, `main` | Enforced in code, not in the prompt. |
| `safety.require_approval` | network, install, delete, outside-repo writes | Default flips to deny when non-interactive. |

Bootstrap sets the git identity, installs the credential helper, and warns — never silently edits — when `.gitignore` is missing `.env` or `.coagent/secrets*`.

```toml
# .coagent/config.toml
[model]
name = "Qwen/Qwen2.5-Coder-7B-Instruct"
quant = "nf4"
max_context = 12288

[verify]
commands = ["ruff check .", "pytest -q"]   # CPU-only by default
gpu_commands = []                          # run once, after the model yields VRAM
timeout_s = 300
require_tests = true

[durability]
mode = "push"                              # push | bundle (Drive)
remote = "origin"

[safety]
deny = ["git push --force", "git push origin main"]
```

## Tech stack

<p align="center">
  <img src="https://img.shields.io/badge/Python%203.11-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11"/>
  <img src="https://img.shields.io/badge/PyTorch-EE4C2C?style=flat-square&logo=pytorch&logoColor=white" alt="PyTorch"/>
  <img src="https://img.shields.io/badge/Transformers-FFD21E?style=flat-square&logo=huggingface&logoColor=black" alt="Transformers"/>
  <img src="https://img.shields.io/badge/bitsandbytes%20NF4-4B8BBE?style=flat-square" alt="bitsandbytes"/>
  <img src="https://img.shields.io/badge/Qwen2.5--Coder-615CED?style=flat-square" alt="Qwen2.5-Coder"/>
</p>
<p align="center">
  <img src="https://img.shields.io/badge/tree--sitter-2F6F44?style=flat-square" alt="tree-sitter"/>
  <img src="https://img.shields.io/badge/outlines-111111?style=flat-square" alt="outlines"/>
  <img src="https://img.shields.io/badge/nbformat-F37626?style=flat-square&logo=jupyter&logoColor=white" alt="nbformat"/>
  <img src="https://img.shields.io/badge/pytest-0A9EDC?style=flat-square&logo=pytest&logoColor=white" alt="pytest"/>
  <img src="https://img.shields.io/badge/Ruff-D7FF64?style=flat-square&logoColor=black" alt="Ruff"/>
</p>
<p align="center">
  <img src="https://img.shields.io/badge/Google%20Colab-F9AB00?style=flat-square&logo=googlecolab&logoColor=white" alt="Google Colab"/>
  <img src="https://img.shields.io/badge/Git-F05032?style=flat-square&logo=git&logoColor=white" alt="Git"/>
  <img src="https://img.shields.io/badge/Drive-4285F4?style=flat-square&logo=googledrive&logoColor=white" alt="Google Drive"/>
  <img src="https://img.shields.io/badge/Apache%202.0-D22128?style=flat-square&logo=apache&logoColor=white" alt="Apache 2.0"/>
</p>

- **Runtime** — PyTorch, Hugging Face Transformers, bitsandbytes NF4, accelerate. fp16 + SDPA on Turing; bf16 and FlashAttention-2 are never assumed.
- **Context and editing** — tree-sitter repo map, BM25 retrieval, JSONL session logs, and SEARCH/REPLACE edits with a unique-match requirement. `outlines` is the optional constrained-decoding path.
- **Verification** — pytest and Ruff as the reference commands, run CPU-only with `CUDA_VISIBLE_DEVICES=""`; `nbformat` + `nbconvert` for notebooks.
- **Delivery** — `pip install co-agent-coder` (or from git) and one bootstrap notebook. No daemon, no tunnel, no client framework.

## Project structure

```text
coagent/
├─ DESIGN.md                 architecture and rationale — the why
├─ PRD.md                    product requirements, personas, acceptance tests
├─ assets/                   cover art used by this README
├─ notebooks/                bootstrap notebook                     (planned)
├─ src/coagent/
│  ├─ cli.py                 chat | run | resume | doctor | report | eval | push
│  ├─ agent/                 loop, prompts, budget, state
│  ├─ llm/                   transformers backend, registry, grammar
│  ├─ context/               repo map, retrieval, compression, tokens
│  ├─ tools/                 fs, shell, python, git, notebooks, artifacts
│  ├─ gitx/                  session, commit, durable sync, resume, lock
│  ├─ ui/                    notebook render, optional Gradio
│  ├─ safety/                policy, denylist, redaction
│  └─ evals/                 harness + task suite
└─ tests/
```

## Build plan

| Release | Week | Scope | Exit criterion |
| --- | --- | --- | --- |
| **v0.1** | 1 | loop, six tools, transformers backend, notebook chat | fixes a failing test in a toy repo, end to end |
| **v0.2** | 2 | repo map, SEARCH/REPLACE reliability, verify loop, durable checkpoints, resume | a killed runtime resumes losing ≤1 step |
| **v0.3** | 3 | plan approval, artifacts, approvals UI, Drive cache, OOM ladder | 5-task eval ≥60%; injection and rejected-plan tests pass |
| **v1.0** | 4 | constrained decoding, evals, docs, demo, T4 matrix | 20-task eval ≥70%; all acceptance tests green |

> **Definition of shipped:** a stranger with a free Colab account and a repo URL can install, run a task, review the branch, and recover from a disconnect using only this README.

## What it deliberately isn't

| Option | Why not |
| --- | --- |
| LangChain / LangGraph | Hidden prompt layers and token overhead make a weak model harder to debug. The loop is ~600 lines of explicit Python. |
| Whole-file rewrites | Catastrophic diffs above ~200 lines. SEARCH/REPLACE, with a unique-match requirement, is safer. |
| Vector database over the repo | A CPU and memory tax beside the GPU; BM25 plus a symbol graph covers a repo of this size. |
| Multi-agent fan-out | One GPU serializes inference; extra agents are just turns with less shared context. |
| Hosted API (OpenAI, Anthropic) | Defeats the privacy and zero-cost guarantees. The `llm/` interface exists, but v1 ships local-only. |
| Pro GPUs, TPUs, CPU-only, multi-GPU | The product is defined by the free tier. Preflight refuses unsupported hardware rather than pretending. |
| `share=True` Gradio / ngrok | Tunnel flakiness, rate limits, and a public exposure surface. Colab's port proxy is enough. |

## How to contribute

**This is a design-led repo.** The documents are the product until the code exists, and they are expected to change with evidence.

1. Open an issue before a large PR. Reference the section (`DESIGN.md §4.5`) or requirement (`PRD FR-BOOT-2`) you are changing.
2. If a decision changes, update **both** `DESIGN.md` (rationale) and `PRD.md` (requirements) in the same PR. A design change without a rationale is a regression.
3. Keep the constraints honest: free T4 only, 12,288-token cap, ≤10 GB peak VRAM, no hidden framework.
4. Implementation PRs: add or update a task in `src/coagent/evals/tasks/`, run the suite CPU-only, and report turns-to-done rather than "it feels better".
5. Conventional commits (`feat:`, `fix:`, `docs:`, `test:`) and a PR body that explains the **why**.

Good first contributions: a DESIGN/PRD consistency pass, an eval task with a deterministic pass criterion, a failure-mode repro from §10, or a threat-model review of §9.

Please **do not** open a public issue for a security problem. Email [lyleokoth.mlengineer@gmail.com](mailto:lyleokoth.mlengineer@gmail.com) with steps to reproduce and I will respond privately.

## Author

<p align="center">
  <a href="https://lyle-mlengineer.github.io"><img src="https://img.shields.io/badge/Portfolio-Live-E05785?style=for-the-badge&logo=googlechrome&logoColor=white" alt="Portfolio"/></a>
  <a href="https://www.linkedin.com/in/lyle-okoth/"><img src="https://img.shields.io/badge/LinkedIn-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn"/></a>
  <a href="https://medium.com/@lyle-okoth"><img src="https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white" alt="Medium"/></a>
  <a href="https://x.com/LyleOkoth"><img src="https://img.shields.io/badge/X-000000?style=for-the-badge&logo=x&logoColor=white" alt="X"/></a>
  <a href="mailto:lyleokoth.mlengineer@gmail.com"><img src="https://img.shields.io/badge/Email-D14836?style=for-the-badge&logo=gmail&logoColor=white" alt="Email"/></a>
</p>

|  |  |
| --- | --- |
| **Name** | Lyle Okoth |
| **Email** | [lyleokoth.mlengineer@gmail.com](mailto:lyleokoth.mlengineer@gmail.com) |
| **GitHub** | [@lyle-mlengineer](https://github.com/lyle-mlengineer) |
| **Portfolio** | [lyle-mlengineer.github.io](https://lyle-mlengineer.github.io) |

Machine learning engineer working on speech and voice AI by day, and building coAgent to make a free Colab GPU behave like a dependable teammate the rest of the time.

## Attribution

- **Model** — [Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) by Alibaba, with [Qwen2.5-Coder-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-3B-Instruct) as the validated fallback.
- **Inference** — [Hugging Face Transformers](https://huggingface.co/docs/transformers), [bitsandbytes](https://github.com/bitsandbytes-foundation/bitsandbytes) for NF4, and [outlines](https://github.com/dottxt-ai/outlines) as an optional constrained-decoding path.
- **Context** — [tree-sitter](https://tree-sitter.github.io/tree-sitter/) for the repo map, BM25 for retrieval, and [nbformat](https://nbformat.readthedocs.io/) for notebook handling.
- **Editing format** — SEARCH/REPLACE blocks follow the format proven by [Aider](https://aider.chat/); the multi-phase loop and tool protocol are coAgent's own.
- **Quality** — [pytest](https://pytest.org/) and [ruff](https://docs.astral.sh/ruff/) are the reference verifier commands in the eval suite.
- **Platform** — [Google Colab](https://colab.research.google.com/) free tier; notebooks and Drive are the runtime and the artifact store.
- **Artwork** — the cover was composed for this project by Lyle Okoth; badges come from [shields.io](https://shields.io/) and brand marks from [Simple Icons](https://simpleicons.org/).
- **License** — released under the [Apache License 2.0](https://github.com/lyle-mlengineer/coagent/blob/main/LICENSE).

---

<p align="center">
  <i>The runtime is cattle. The repo is the pet. Every step leaves a commit.</i><br/>
  <a href="https://lyle-mlengineer.github.io">lyle-mlengineer.github.io</a> · <a href="mailto:lyleokoth.mlengineer@gmail.com">lyleokoth.mlengineer@gmail.com</a>
</p>
