Skip to content

culi v0.2.0 — Robusta

Choose a tag to compare

@hung12ct hung12ct released this 23 Jul 16:45
· 42 commits to main since this release

Second release of culi — Codex harness support, a full learning-backend lineup, background-learning auth, and review-console analytics on top of v0.1.0. Fully backward-compatible; every new knob has a safe default.

Codex harness

  • First-class OpenAI Codex support alongside Claude Code — normalized hooks (UserPromptSubmit / SessionStart / Stop / SessionEnd), a typed Harness enum across culi core, and aligned SessionEnd timeouts.
  • Rollout discovery & backfill — culi finds and mines existing Codex rollout history; drops known synthetic user envelopes so only real turns are learned.
  • Auto-recovery scan — a throttled, read-only rollout scan fills in when transcript_path is missing. Scanner telemetry is content-free and surfaced by culi doctor.

Learning

  • Five backends — OpenAI API, Codex CLI, Claude terminal, Anthropic API, and Ollama, all behind hard daily caps. OpenAI/Codex also power import-merge.
  • Headless background auth — claude -p / Anthropic API work from the detached session-end worker. A persisted claude auth login is enough; optional learn.oauth_token_file / learn.anthropic_api_key_file for env-var-only or headless setups. Auth/config failures halt cleanly and no longer burn the daily cap.
  • Throughput controls — newest-first mining, learn.max_jobs_per_run (default 50), and culi learn --no-cap to drain the whole backlog in one parallel run.
  • Configurable auto-confirm — learn.confirm_at (default 2) tunes how many observations promote a candidate to a confirmed, injecting card; 1 = confirm on first sighting.
  • No more self-ingestion — culi no longer mines its own claude -p learning calls.

Review console (culi serve)

  • Knowledge Pulse analytics — new overview analytics, learning settings, and light/dark theming.
  • Editable Settings — safe knobs (budgets, caps, models, credential files, confirm_at, cheap_model / strong_model) write straight to config.yaml with comments preserved.
  • Activity filters — filter the injection log by harness, repo, and date (Today / 7d / 30d), with per-session badges.
  • "To learn" indicator — queued-transcript backlog in the status strip.
  • Clearer savings baseline, stale-card navigation, and a repos-manager note (watched repos drive learning/generation; injection works in any repo).

Storage & tooling

  • Runtime history preserved across schema changes via explicit forward migrations (injections, card stats, session state, metadata survive rebuilds).
  • culi doctor — health/telemetry command for hooks, backends, and the Codex scanner.

Fixes

  • Overview crash on empty data; prompt-drain halt-on-backend-down; comment-preserving config writes.

Install / upgrade

go install github.com/hung12ct/culi/cmd/culi@latest   # or @v0.2.0

Existing users: that's it — hooks/MCP stay registered and your config is preserved (new knobs default safely). Optionally re-run culi init (idempotent) and restart culi serve to pick up the new UI. Confirm with culi version.