CafeKit
Native spec-driven workflows for Claude Code and Codex CLI.
Quick Install
npx @haposoft/cafekit
Install Codex explicitly:
npx @haposoft/cafekit --platform codex
The installer records the package version in the selected runtime:
.claude/cafekit.json or .codex/cafekit.json.
Document and multimodal skills are optional. Choose them in the interactive
installer, or opt in explicitly:
npx @haposoft/cafekit --with-document-skills
Use --without-document-skills to skip them or remove pristine CafeKit-owned
copies from an existing install. User-modified skill files are preserved.
Install as plugins
CafeKit also ships as a plugin for Claude Code and for Codex CLI, from the
release repository haposoft/cafekit-plugins:
# Claude Code
claude plugin marketplace add haposoft/cafekit-plugins
claude plugin install cf@cafekit
# Codex CLI (then run $cf-setup-agents once to install the agents)
codex plugin marketplace add haposoft/cafekit-plugins
codex plugin add cf@cafekit
Each release is tagged with its npm version; on Codex,
haposoft/[email protected] pins one.
Moving from the npx install to the plugins
Once the CafeKit Claude Code and Codex plugins are installed, remove the npx
install from a repository so its hooks do not run twice and the Codex plugin
stops standing down:
Run it from the repository root:
npx @haposoft/cafekit@latest migrate # dry-run: prints the plan, writes nothing
npx @haposoft/cafekit@latest migrate --apply # removes it, with a backup in .cafekit-backup/
Installed files that still match their install hash go, except skills and
agents no plugin ships yet, together with CafeKit's hook entries and its blocks
in AGENTS.md and CLAUDE.md (the response-language choice in that block goes
too). Edited files, files you added and the shared files they name,
runtime.json, the selected output style, and every user entry in
settings.json, hooks.json, AGENTS.md and CLAUDE.md stay. If --apply
fails or is interrupted with Ctrl-C, it restores the backup; if a restore step
fails, it prints what to copy back by hand. A repository with an .omp/
install, a symlinked .claude, .codex or .agents, or an install without a
readable manifest is refused, and nothing is changed.
What It Is
CafeKit installs a native runtime bundle for each supported coding agent:
cf:ask for evidence-backed questions about source code, docs, specs, config, dependencies, or external technical knowledge
cf:scout for fast scoped discovery of files, entrypoints, call paths, and blast radius
cf:brainstorm for unresolved product or architecture choices, with proportional routing before delivery
cf:research for proportional, traceable evidence when a technical decision remains uncertain
cf:specs for structured specification work
cf:develop for implementation after technical spec readiness and an explicit invocation
cf:debug and cf:fix for evidence-first diagnosis and root-cause repairs — every repair consumes the debug handoff before mutation; Quick/local stays direct; Standard and Incident/deep bound outcome, constraints, non-goals, and acceptance; complex repairs use post-diagnosis research, brainstorm, and staged planning only when the evidence leaves a real decision; all depths retain shared PASS | PASS_WITH_WARNINGS | FAIL | BLOCKED verdicts
- optional
cf:docs, DOCX, PDF, PPTX, XLSX, and multimodal skills when selected during install — cf:docs consumes a post-task docs checkpoint (none | minor | major, updating only affected existing docs), gates delegation behind the Delegation Gate, and keeps the Observed | Inferred | Unknown evidence taxonomy
cf:test and cf:code-review for verification
- supporting hooks, agents, rules, and platform-native runtime integration
- a configurable Claude statusline driven by
.claude/runtime.json — "statusline" picks the mode (full/compact/minimal/none), statuslineColors toggles ANSI colors, and an optional statuslineLayout ({ "lines": [["model", "context"], ["directory", "git"]] }) composes lines from the section ids model, context, quota, directory, git, plan, cost, changes; leaving the key out keeps the default output unchanged
CafeKit uses rule-based skill routing guidance and an installed skill catalog.
Agents choose the right cf:* skill from workflow/domain rules instead of
using an automatic prompt-scoring hook.