A private AI coding agent for the free Google Colab T4: local 7B model, git-backed memory, reviewable branches.
pip install co-agent-coder==0.1.1 Copy PIP instructions
Open in Colab · Design · PRD · Web front door
Alpha release. 0.1.1 is published on PyPI as co-agent-coder. The architecture lives in DESIGN.md and the requirements in PRD.md; the interfaces below are the shipped v0.1 surface.
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.
Open the bootstrap notebook in Colab — Runtime → Change runtime type → T4 GPU — and run the cells. The whole install story is three lines:
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/ 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. This repo is the agent itself.
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.
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:
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.
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.
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.
The target flow is one Colab notebook, one repo URL, and a task. Everything below ships with v0.1.
!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 " " 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:
Bootstrap sets the git identity, installs the credential helper, and warns — never silently edits — when .gitignore is missing .env or .coagent/secrets*.
# .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
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.
This is a design-led repo. The documents are the product until the code exists, and they are expected to change with evidence.
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 with steps to reproduce and I will respond privately.
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.
The runtime is cattle. The repo is the pet. Every step leaves a commit. lyle-mlengineer.github.io · lyleokoth.mlengineer@gmail.com
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




