# justvugg/colibri — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `ai-models`
- Overall score: `4.0/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `e479104ae01b` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/justvugg/colibri
- Radar entry: https://radar.alplab.co/#repo/justvugg/colibri
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `llm-inference`, `moe`, `expert-offload`, `gguf`, `openai-api`, `local-llm`

## Summary

A pure-C local inference engine (one .c per model family: c/colibri.c, glm53, inkling, kimi_k3, deepseek_v4, deepseek_v41, mimo, qwen38, qwen36, olmoe, qwenimage, laya, gliner_decide, tui.c) that runs very large MoE models by keeping dense weights in RAM and streaming routed experts from disk, with a Python OpenAI/Anthropic-compatible gateway, one-step setup, MCP server, and CPU/Vulkan/CUDA/Metal backends.

## Implementation Check

README claims (13 engines, OpenAI+Anthropic APIs, tool calling, System One decisions, GGUF import, MCP, TUI) are all implemented: c/openai_server.py implements /v1/chat/completions streaming with per-family tool-call parsers (parse_arch_tool_calls, parse_dsv4_tool_calls, parse_k3_tool_calls) and a KV-slot Scheduler, c/mcp_server.py implements the MCP tools, c/tui.c the terminal UI, and c/version.py __version__ matches the released v2.2.0.

## When to Use

Use it to run 100B-2.8T MoE chat/coder/vision models on ordinary consumer hardware (16-64 GB RAM, NVMe) with an OpenAI-compatible local API; not for multi-tenant production serving or when you need guaranteed-latency GPU-cluster throughput, and note the largest models require 100s of GB to 1.5 TB of downloads.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.5/5 |

## Code Evidence

c/openai_server.py (602 KB) contains the request Scheduler class (queue admission, _available_slot, prometheus() metrics), content_text() validation, span-map machinery (_cut_span_map, _compose_span_maps, _tool_call_content_spans) aligning logprobs across stream transforms, and per-architecture tool parsers (_parse_tool_calls for GLM box syntax, parse_dsv4_tool_calls / parse_dsv41_tool_calls for DSML, parse_k3_tool_calls for XTML, InklingStreamSplit / Inkling2StreamSplit marker buffering); it refuses to bind beyond localhost without COLI_API_KEY (openai_server.py:11115). c/colibri.c is a full single-file GLM-5.2/5.3 engine (read at offsets; real C kernels, not stubs). c/Makefile builds all engines with VK=1/CUDA=1/METAL=1 variants. c/setup_download.py implements resumable downloads; c/mcp_server.py, c/tui.c, c/resource_plan.py, c/doctor.py, docker/Dockerfile all match README claims. Tests: c/tests holds per-engine tiny harnesses (glm53_tiny_harness.py, olmoe compare, qwen38_mtp_harness.py, test_openai_tools_*_e2e.py, test_backend_loader.py) and .github/workflows/check.yml + ci.yml (143 KB) run them; no telemetry/sentry/posthog found; no eval/exec of model output (tool args parsed via ast.literal_eval with _JsonNames, capped at _LITERAL_MAX).

## Issues Found

38 unpinned third-party GitHub Actions across .github/workflows/ci.yml/check.yml/release.yml are a supply-chain exposure for anyone building from CI artifacts; c/openai_server.py serves unauthenticated on 127.0.0.1 by default (refuses non-localhost bind without COLI_API_KEY, but any local process can then call the API).

## Key Risks

Nothing was executed: benchmark numbers are self-reported in docs/ and not reproduced; model support targets a specific 2026 model ecosystem whose checkpoints require very large downloads; auth is optional by default on localhost (documented design); Python is required only for setup/launcher/gateway; 38 unpinned GitHub Actions in CI; single-maintainer-heavy development (top author 47% of recent commits).

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `Makefile`
- `start-here.sh`
- `START-HERE.bat`
- `c/version.py`
- `c/colibri.c`
- `c/setup.sh`
- `c/Makefile`
- `c/setup_download.py`
- `c/openai_server.py`
- `c/mcp_server.py`
- `colibri/cli.py`
- `colibri/__init__.py`
- `docker/Dockerfile`
- `.github/workflows/check.yml`
- `tests/test_start_here_python_detection.sh`
