HoangP8/tokless
Tentang
An effective and efficient coding-agent setup in under 30 seconds: best tools, unified instructions, any OS.
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- +6
- dalam 7 hari
- +26
- dalam 15 hari
- +48
- dalam 1 bulan
- +73
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliA unified pipeline for efficient and effective coding harnesses.
One tool, no config — works the moment it lands.
Introduction
Many packages help coding harnesses work more effectively and efficiently. The best tools already exist; wiring them well is the real work. Tokless brings together specialized tools, each with a distinct purpose, and manages them with minimal setup.
| ✅ | Clear purpose — best tool for each job, wired without conflict |
| ✅ | No overload — minimal tools with clear, unified instructions |
| ✅ | Zero config — works as soon as installed, in under 30 seconds |
| ✅ | One place — install, update, and manage all tools across every configured harness |
Supported Harnesses
Claude Code |
OpenCode |
Codex |
Antigravity |
GitHub Copilot |
Factory Droid |
Pi |
Oh My Pi |
Cline |
Cursor |
Grok Build |
Kilo Code |
Amp |
Kimi Code |
ZCode |
DeepSeek |
Installation
Manual
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/HoangP8/tokless/main/scripts/install.sh | bash
Windows (PowerShell)
irm https://raw.githubusercontent.com/HoangP8/tokless/main/scripts/install.ps1 | iex
Interactive install detects installed harnesses. First pick tools, then pick harnesses:
tokless # interactive: choose tools, then harnesses
tokless --agents claude,opencode # wire just these harnesses
tokless --tools rtk,codegraph # wire just these tools
Copy this for your harness
https://raw.githubusercontent.com/HoangP8/tokless/main/docs/installation.md
Tools
8 packages with distinct roles, wired without conflicts. Ranked by GitHub stars.
| Package | ⭐ | Purpose |
|---|---|---|
| principles | Karpathy coding rules: think first, simplify, edit surgically, verify. | |
| ponytail | Minimal-code rules: reuse first, avoid speculative work. | |
| caveman | Terse response rules that preserve technical accuracy. | |
| rtk | Rewrites and compresses command output before it reaches the harness. | |
| headroom | Local HTTP proxy that compresses large prompts and routes BYOK model traffic. | |
| codegraph | Indexed code graph for source, call paths, and impact. | |
| context-mode | Sandboxed code execution and indexed search; keeps large output out of context. | |
| projectmem | Per-project memory: issues, attempts, fixes, decisions, auto-captured from git. |
Tools
Three tools run as MCP servers. Headroom and rtk wire through their own mechanisms (proxy, hooks, plugins) — no MCP needed.
Upstream those three expose 27 tools. Tokless spawns each server through a bounded proxy that filters its tool list, so 10 land in your context — 17 are trimmed automatically, at install, nothing to configure.
Tools
├── CodeGraph · 1/1
│ └── codegraph_explore
├── Context Mode · 4/9
│ ├── ctx_execute
│ ├── ctx_batch
│ ├── ctx_index
│ └── ctx_search
└── ProjectMem · 5/17
├── log_issue
├── record_attempt
├── record_fix
├── add_decision
└── add_note
What gets trimmed
| Server | Upstream | Kept | Trimmed | Why |
|---|---|---|---|---|
| CodeGraph | 1 | ✅ 1 | — | one tool, nothing to cut |
| Context Mode | 9 | ✅ 4 | ❌ ctx_resume · ctx_stats · ctx_doctor · ctx_upgrade · ctx_purge |
session resume, diagnostics, and package maintenance — not part of a coding turn |
| ProjectMem | 17 | ✅ 5 | ❌ current_project · get_context · get_global_gotchas · get_instructions · get_issue · get_plan · get_project_map · get_score · get_summary · list_projects · precheck_file · search_events |
its reads arrive before the first prompt |
Context Mode wiring. Always the latest 2.x. OpenCode loads it as a config plugin (no MCP entry) and hides the admin tools via permission deny. Other agents use the MCP proxy, which exposes 4 tools: ctx_execute, ctx_batch, ctx_index, ctx_search. 1.x users must run tokless update.
ProjectMem is the case that matters. Its 12 read tools (get_summary, get_plan, …) are replaced by a memory block pushed at session start — hook, plugin/extension, or rule file depending on the harness. Nothing to call: only the 5 writers stay on the list. tokless doctor reports the exposed set.
Usage
tokless # install + wire everything (safe to re-run)
tokless --agents claude,codex # wire only these harnesses
tokless --tools rtk,codegraph # wire only these tools
tokless --dry-run # preview every write, change nothing
tokless update # upgrade CLI + all tools
tokless self-update # upgrade the tokless binary only
tokless doctor # health: tools, harnesses, routes
tokless doctor --fix # start proxy / build index, interactively
tokless info # install paths, config locations
tokless index # build this project's codegraph index
tokless disable --agents claude # unwire harnesses (keep installed tools)
tokless disable --uninstall # unwire + remove installed binaries
tokless uninstall # same as disable --uninstall
tokless proxy up | down | status # headroom proxy (accepts --agents)
tokless proxy autostart on | off # start headroom at login (default: on)
Harness ids: claude, opencode, opencode2, codex, antigravity, copilot, droid, grok, pi, omp, kilo, cline, cursor, amp, kimi, dsh, zcode
Tool ids: rtk, caveman, ponytail, principles, codegraph, context-mode, headroom, projectmem
Configuration
How the tools actually work
Wiring is the product: after install, everything runs on its own — no runtime commands from you.
| Tool | How | When |
|---|---|---|
| principles · caveman · ponytail | Instruction block (rules file) | every prompt — always in context |
| rtk | hook · plugin · extension · cordis patch | every Bash command — rewrite + compress output |
| headroom | local HTTP proxy + route in config | every model API call — compress prompts, route BYOK + OAuth |
| codegraph | MCP server (codegraph_explore) |
on demand; index builds at first connect |
| context-mode | OpenCode plugin · MCP proxy elsewhere (ctx_*) |
on demand — large files / logs stay out of context |
| projectmem | MCP server + context injection | ~2000-token memory block at session start |
INSTALL ─┬─ rules block principles · caveman · ponytail
├─ MCP entries codegraph · context-mode · projectmem
├─ rtk mechanism hook · plugin · extension · patch
└─ headroom route local proxy 127.0.0.1:8787
SESSION ─┬─ codegraph index built on first connect
└─ projectmem block injected before the first prompt
WORK ────┬─ prompt → rules + project memory ride along every turn
├─ Bash → rtk rewrites the command and compresses output
├─ think → codegraph_explore: source, callers, blast radius
├─ big → ctx_* keeps large files and logs out of context
└─ API → headroom compresses prompts, routes BYOK + Grok OAuth
Without tokless, the harness re-reads the raw tree every session, Bash output lands uncompressed, and nothing survives between sessions. Tokless inverts all three: indexed code, compressed commands, persistent memory.
How tokless connects to harnesses × 8 tools
Instruction = markdown block · Rule = project rule file · Hook = PreToolUse / SessionStart command · Plugin = JS/TS plugin · Extension = harness extension API · Patch = cordis insert (dsh) · MCP = Model Context Protocol server.
| Harness | rules principles · caveman · ponytail |
rtk | codegraph | context-mode | headroom | projectmem |
|---|---|---|---|---|---|---|
| Claude Code | Instruction | Hook | MCP | MCP | anthropic-native | MCP + Hook |
| OpenCode | Instruction | Plugin | MCP | Plugin | openai-compatible | MCP + Plugin |
| Codex | Instruction | Hook | MCP | MCP | openai-compatible | MCP + Hook |
| Antigravity | Instruction | Hook | MCP + Hook | MCP | gemini-native | MCP + Hook |
| GitHub Copilot | Instruction | Hook | MCP + Hook | MCP | openai-compatible | MCP + Hook |
| Factory Droid | Instruction | Hook | MCP + Hook | MCP | openai-compatible | MCP + Hook |
| Pi | Instruction | Extension | MCP + Ext | MCP | openai-compatible | MCP + Ext |
| Oh My Pi | Instruction | Extension | MCP | MCP | openai-compatible | MCP + Ext |
| Cline | Instruction | Hook | MCP | MCP | openai-compatible | MCP + Rule |
| Cursor | Instruction | Hook | MCP + Hook | MCP | — | MCP + Rule |
| Grok Build | Instruction | Hook | MCP + Hook | MCP | BYOK + OAuth | MCP + Rule |
| Kilo Code | Instruction | Plugin | MCP | MCP | openai-compatible | MCP + Plugin |
| Amp | Instruction | Plugin | MCP | MCP | — | MCP |
| Kimi Code | Instruction | — | MCP | MCP | openai-compatible | MCP |
| ZCode | Instruction | Hook | MCP | MCP | openai-compatible | MCP |
| DeepSeek | Instruction | Patch | MCP | MCP | openai-compatible | MCP |
- Kimi Code has no rtk mechanism yet (its CLI exposes no PreToolUse hook) — rtk skipped, all other tools wired.
- Grok is routed, Cursor's route is deprecated, and Amp is never auto-wired — see Headroom.
Per-harness config locations
Where each tool lands. mcp.json-style shapes hold MCP server entries; instruction files hold the markdown blocks.
| Harness | MCP / tool config | Instruction file |
|---|---|---|
| Claude Code | ~/.claude.json (+ ~/.claude/settings.json for hooks, permissions) |
~/.claude/CLAUDE.md |
| OpenCode | ~/.config/opencode/opencode.json (mcp.*, plugins) |
~/.config/opencode/AGENTS.md |
| Codex | ~/.codex/config.toml ([mcp_servers.*], hooks) |
~/.codex/AGENTS.md |
| Antigravity | ~/.gemini/config/mcp_config.json (+ ~/.gemini/config/hooks.json for hooks) |
~/.gemini/GEMINI.md |
| GitHub Copilot | ~/.copilot/mcp-config.json (+ ~/.copilot/settings.json) |
~/.copilot/copilot-instructions.md |
| Factory Droid | ~/.factory/mcp.json (+ ~/.factory/settings.json) |
~/.factory/AGENTS.md |
| Pi | ~/.pi/agent/mcp.json (+ ~/.pi/agent/settings.json, extensions) |
~/.pi/agent/AGENTS.md |
| Oh My Pi | ~/.omp/agent/mcp.json (+ ~/.omp/agent/config.yml, extensions) |
~/.omp/agent/AGENTS.md |
| Cline | ~/.cline/data/settings/cline_mcp_settings.json |
~/.cline/rules/AGENTS.md |
| Cursor | ~/.cursor/mcp.json (rules for generated instructions) |
.cursor/rules/ |
| Grok Build | ~/.grok/config.toml ([mcp_servers.*], hooks) |
~/.grok/rules/AGENTS.md |
| Kilo Code | ~/.config/kilo/kilo.jsonc (mcp.*) |
harness instructions block |
| Amp | ~/.config/amp/settings.json (amp.mcpServers.*) |
~/.config/amp/AGENTS.md |
| Kimi Code | ~/.kimi-code/mcp.json (+ ~/.kimi-code/config.toml) |
~/.kimi-code/AGENTS.md |
| ZCode | ~/.zcode/cli/config.json (mcp.servers.*, plugin tokless-mcp) |
~/.zcode/AGENTS.md |
| DeepSeek | ~/.dsh/cordis.patch.yml (mcp_servers.* insert rows) |
~/.dsh/AGENTS.md |
Foreign (non-tokless) entries are never overwritten; tokless verifies its own entries after every write and reports the result in tokless doctor.
OpenCode v2 resolves its config dir in this order: OPENCODE_CONFIG_DIR_V2, then ~/.config/opencode2 (wrapper convention), then the shared ~/.config/opencode (plain v2 default). v1 keeps the original shape; v2 entries additionally carry the v2 forms, and unwires are version-scoped.
Headroom — the local proxy
Headroom is the one tool with no MCP. It is a local HTTP proxy between your harness and the provider: prompts pass through, get compressed, and continue to the original provider. Tokless wires the route at install and starts the daemon.
harness → 127.0.0.1:8787 (Headroom) → provider
| Port | Role |
|---|---|
8787 |
Main proxy — anthropic-native (Claude Code) + gemini-native (Antigravity) + openai-compatible (Grok BYOK; Copilot reaches it via its 8790 / 8789 wrappers) |
18787 |
BYOK gateway — named providers (qwencoder, nvidia_nim, cliproxyapi, cline) with your own keys |
28787 |
Grok OAuth — Headroom-owned login proxy |
8790 / 8789 |
Copilot CLI / VS Code wrappers |
Grok uses Headroom on both paths: its BYOK base_url is rewritten to the shared daemon (8787/v1), and its OAuth login runs on a Headroom-owned proxy (28787). Cursor's proxy route is deprecated and Amp is never auto-wired — those two stay on their native provider.
Manage it with tokless proxy up | down | status. Turn start-at-login off with tokless proxy autostart off (or tokless init --no-autostart). --agents scopes any of them to one harness, and down --agents <list> leaves shared Headroom running for the rest.
Contributors
Star History
Jelajahi proyek terkait
Memuat…
