alanhuangyoo

Crux — AI skill for Claude Code

AI community

Taking the pi coding agent to Claude Code-level performance: 0.539 → 0.773 pass@1 on Terminal-Bench 2.1 with the same self-hosted 27B model, by re-engineering the agent.

How to install Crux

This entry records only its repository, not the path inside it, so there is no exact command to give. Open alanhuangyoo/crux and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Crux does

Taking the pi coding agent to Claude Code-level performance: 0.539 → 0.773 pass@1 on Terminal-Bench 2.1 with the same self-hosted 27B model, by re-engineering the agent.

Alternatives in AI

  • Invisible Dots — Open-source, self-hosted alternative to OpenAI Dots, Meta Muse, Grok Bot, Manus Cue and Claude Cowork 31.8k ★
  • Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
  • Open Dots — Open-source, self-hosted AI agent workspace and alternative to OpenAI Dots, Meta Muse, Grok Bot, Instinct, Man 5.5k ★

README

Crux

A coding agent built on pi, re-engineered for long-horizon terminal tasks.
Terminal-Bench 2.1 pass@1 from 0.539 to 0.773 — on par with Claude Code on the same model.

pass@1 0.773 pi 0.539 to Crux 0.773 Claude Code on the same model 0.730 built on pi

English · 简体中文

Results

Terminal-Bench 2.1 pass@1: Crux 0.773, Claude Code on the same model 0.730, pi upstream 0.539

Agent Terminal-Bench 2.1 pass@1
Crux 0.773 0.793 on a rerun
Claude Code, same model 0.730
pi, upstream 0.539

Self-hosted Qwen3.8-27B, identical weights for every agent · 89 tasks · pass@1 over whole runs.

What changed from pi

All changes are in the agent layer; the model is untouched.

  • Context engine. Compaction requests are sized to fit the window, retried smaller on rejection, and summarize single-task sessions in full; the task's original wording is carried verbatim through every compaction. Compaction success: 14% → 100%.
  • Agent loop. Recovery paths live in one explicit state machine: two-phase recovery from truncated output, the reasoning tail handed back after a cut, stall detection, and pacing against each task's own deadline. Truncated outputs: 18.0% → 0.7%.
  • Runtime. A stream idle watchdog, a default command timeout, pr