Thank you for considering a contribution to Sober. Whether it's a bug report, a new skill or hook, or a documentation fix — all contributions are welcome regardless of skill level.
Sober is a policy-spine harness for Claude Code and Codex CLI. Every design decision keeps the LLM caged to judgment and offloads the rest to deterministic tools.
- Ways to Contribute
- Getting Started
- Project Structure
- Design Principles
- What We Look For
- Submitting Changes
- Code Guidelines
- Documentation
- Report bugs — something broken during install or in a Claude Code / Codex session
- Suggest features — new skills, hooks, or rules that save quota
- Improve docs — fix typos, clarify instructions, add examples
- Share data — if you've measured impact (Claude Code
/measure, or your runtime's cost/context view), your findings help everyone
- Node.js ≥ 18
- Claude Code and/or Codex CLI
- (Optional) mgrep — semantic search; reported to cut CLI output tokens (~50%, hypothesis until you measure your own)
git clone https://github.com/move-hoon/sober.git
cd sober
bash install.shVerify your setup:
sober doctorTo test changes during development, re-run bash install.sh after editing — it deploys to the single home ~/.sober and symlinks the runtimes into it (~/.claude, ~/.codex, ~/.agents/skills).
Sober is not a typical npm library. The core product is policy + workflow configuration — markdown files, shell scripts, and a thin CLI.
For the complete file tree, see README.md — Project Structure.
| Directory | Purpose |
|---|---|
.claude/skills/ |
On-demand skills (shared by Claude Code + Codex) — the main surface |
.claude/rules/ |
Claude-specific soft rules (prompts) |
.claude/commands/ |
The two helper commands (/measure, /analyze-failures) |
.claude/agents/ |
Reserved — Sober bundles no agents (README only) |
codex/ |
Codex-specific parity files (hooks.json, Starlark execution policies) |
scripts/hooks/ |
Local hooks (zero API cost, shared implementation) |
scripts/runtime/ |
Runtime auto-detection and adapters |
bin/sober.js |
CLI entry point (self-contained) |
install.sh |
One-click installer |
- Quota-first — Every feature must justify its cost. If it burns more quota than it saves, it doesn't belong.
- Fewer turns > cheaper model — Sonnet in 1 turn can cost less than Haiku in 3. Quota impact depends on model choice, turn count, and output size — not model alone.
- Empirical, not theoretical — Anthropic doesn't publish quota formulas. When documenting quota impact, back it with a before/after measurement (Claude Code
/measure, or your runtime's cost/context view). Any external number is a hypothesis until you measure it locally. Ideas and suggestions don't need data — just flag them as untested.
Good fits:
- New skills, hooks, or rules that reduce quota waste
- Improvements to failure recovery (fewer wasted turns)
- Output control enhancements (shorter agent responses, better filtering)
- Bug fixes in
install.shorbin/sober.js - Documentation improvements
We don't accept:
- Features unrelated to quota efficiency or Claude Code / Codex workflows
- Changes that increase default output verbosity
- Stylistic refactors with no functional impact
- External runtime dependencies in
bin/sober.js
Open an issue with:
- What you expected vs. what happened
- OS, Node version, Claude Code / Codex version
- Output from
sober doctor - Steps to reproduce
Open an issue describing:
- The quota or workflow problem you're solving
- Why existing commands don't cover it
- Measurement data (if available) — before/after deltas (
/measureor your runtime's cost/context view)
- Fork the repo and create a branch:
git checkout -b feat/your-feature - Make your changes
- Test with
sober doctorand a real Claude Code or Codex session - Ensure both
README.mdandREADME.ko.mdare updated if your change affects docs - Submit a PR with a clear description of what changed and why
We aim to review PRs within 7 days. For significant changes, open an issue first to align on direction.
- Follow the style of existing code — consistency matters more than rules
- JS (
bin/sober.js): no external runtime dependencies — keep it self-contained - Commit messages: use Conventional Commits (
feat:,fix:,docs:)
Sober maintains bilingual documentation:
| File | Language |
|---|---|
README.md |
English |
README.ko.md |
Korean |
docs/USER-MANUAL.md |
English |
docs/USER-MANUAL.ko.md |
Korean |
If your change affects user-facing docs, please update both language versions or note in your PR that a translation is needed.
By contributing, you agree that your contributions will be licensed under the MIT License.