Intent CLI
Semantic Git for the vibe coding era

Website · Docs · IntHub · 简体中文

Your coding agent forgets where you left off. Intent keeps the goal, the latest verified checkpoint and the standing decisions in your project, so the next session continues the work instead of rediscovering it. Git records how code changed; Intent records why, what is verified and what comes next. You can browse Intent's own history on IntHub without signing in.
Quick start
# 1. Install the CLI (macOS / Linux). Re-run any time to upgrade.
curl -fsSL https://raw.githubusercontent.com/dozybot001/Intent/main/scripts/install.sh | bash
# 2. Add the agent skill (needs Node.js; -a cursor and others also work)
npx skills add dozybot001/Intent -g -a claude-code -a codex -y
# 3. Turn it on in a project (Git is optional)
cd your-project
itt init
Trust the project hooks once: in Claude Code, trust the folder and confirm both hooks in /hooks; in Codex, open /hooks. Then work as usual. To pick up later, in any session, say:
Resume this project through Intent.
- Windows (PowerShell):
irm https://raw.githubusercontent.com/dozybot001/Intent/main/scripts/install.ps1 | iex. Claude Code hooks need Git Bash.
- pipx or uv:
pipx install intent-history or uv tool install intent-history. Requires Python 3.9+. The PyPI package intent-cli is an unrelated tool.
- Claude Code plugin:
/plugin marketplace add dozybot001/Intent, then /plugin install intent-cli@intent.
- From Intent 7: run
itt migrate once in each project. It keeps every ID and backs up first.
Try it by hand
itt init
itt intent create "Add Apple Pay to the web checkout" --why "Apple Pay users convert 2x on mobile Safari"
itt snap create "Payment sheet confirms PaymentIntents in test mode" \
--next "Handle shipping-method changes server-side" --blocker none
itt decision create "Payments go through the PaymentIntent API only" --why "One SCA path"
itt inspect
Active
intent-3f9a2c1 Add Apple Pay to the web checkout
Next Handle shipping-method changes server-side
Blocker none
Verified Payment sheet confirms PaymentIntents in test mode
snap-8e41d07 · 2026-10-30 00:25 · 1 snap
Decisions
decision-c27b5fa Payments go through the PaymentIntent API only
This is what a new session reads. In a terminal itt prints text; agents and scripts get JSON.
Features
- Light recording. The agent saves a checkpoint only when something meaningful is verified; a quiet turn writes nothing.
- Complete resumption. One command gives a new session the goal, what is verified, the boundary, the next step and the rules that still apply.
- Three append-only objects. An Intent is a goal, a Snap a verified checkpoint, a Decision a rule that binds future goals.
- History that works like Git. Every write is a revision, with branches,
log --graph, diff and merges that stop only on a real disagreement.
- Parallel agents, one history. Agents in separate Git worktrees each record on their own branch, and new IDs never collide.
- Hooks for Claude Code and Codex. Each turn opens with the current state and is checked for closure at the end; Cursor and other agents follow the Skill.
- Optional IntHub. Browse, share and restore the history on your machine or at inthub.tenonai.cn, with private, team and public projects.
- Stable within a major version. The
.intent/ format and the JSON output change only with a new major version and a migration.
IntHub
IntHub is a cloud platform for Intent hosting and collaborative development. You don't need it to use itt. Run it on your machine with itt hub start, or sign in to inthub.tenonai.cn with itt auth login and send history with itt push. Its Flow page draws how goals branch, continue and converge.
Docs
What stays on your machine
.intent/ holds plain JSON. itt init excludes it from Git in this clone only, because it may contain internal reasoning. Commit it deliberately if your team wants it in Git.
- Each hooked turn adds a compact opening context with a hard size cap, and one
itt maintenance close call.
itt collects no telemetry or usage data.
itt touches the network only when you run push, pull, fetch, clone or auth, or status with a remote set. The hosted IntHub follows its privacy notice.
Contributing
Bug reports, feature requests and pull requests are welcome in English or Chinese: see CONTRIBUTING.md and the Code of Conduct.
Security
Report security problems privately, as SECURITY.md describes.
License
MIT. Copyright (c) 2026 Tenon Artificial Intelligence Technology Co., Ltd. (长沙榫卯人工智能科技有限公司)