A programming language for things that don't exist yet.
What is NTH?
Prompts are too vague. Specs can be tedious. AI is increasingly good at building things, and deciding what to build should still be human.
NTH (pronounced enth) is an experimental language and framework for Intent-Driven Development (IDD). Write the outcome you want, the choices you’ve made, and the evidence that would tell you it worked. Your coding agent can use that intent to propose a change and implement it in your project’s application language.
PROMPTS NTH SPECS
│ │ │
●──────────────────●───────────────────●
Too vague Structured freedom Too tedious
Every invention starts in an imaginary n-dimensional space of possibilities. A decision rules some out and reveals others. Is that actual mathematics? No. Does it sound cool? Yes.
Quick start
Install Node.js 20 or newer, then run this from your project folder.
npm install -g nth-intent@0.5.3
nth init
Use the arrow keys to move, Space to toggle editor integrations, and Enter to confirm. Choose the workspace folder, editor integrations, and whether to add NTH guidance to AGENTS.md. On later runs, reuse your saved editor settings or customize the setup. The package includes the compiler, project templates, editor skills and commands, and the VS Code extension. If the VS Code code command is available, the wizard offers to install the bundled extension.
Open nth/plan/main.nth and start a new editor chat. See the toolchain for the five chat commands and their Codex skill names.
For a one-time run, use npx nth-intent@0.5.3 init. Use nth init --yes to create a workspace without prompts or extension installation.
Hello, intention.
Open nth/plan/main.nth and start with an outcome.
goal main {
Make saved articles easy to find;
why: Bookmarks get lost across tabs;
must: Keep saved titles on the local device;
expect: A saved title is still listed after reopening the app;
}
Eleven keywords. Freestyle expressions. A formal grammar. Your brain is still a required dependency.
Once you have a corresponding flow find in nth/plan/find/main.nth, you can add nth/plan/find/search.nth:
feature search {
using (Spotlight) {
Adopt its instant search experience;
}
Speed > Customisability;
if (Internet is unavailable) {
Search locally;
}
else {
Include remote results;
}
expect: Results appear within 200 ms;
}
Run nth check --context nth/plan/find/search.nth to see that feature and its inherited context as JSON. The parser and structural validator are deterministic. Semantic compilation runs through your coding agent. Language reference · Formal grammar · Complete display example · Working notes example
The idea
WHERE ── Where is something missing?
│
WHAT ── What should exist? ◄──┐
│ │
HOW ── How should it exist? ◄─┐ │
│ │ │
BUILD │ │
│ │ │
VERIFY ── What did we get wrong? ───────┴─┘
CSV kits expose possibilities. XML kits explain them. You make the decisions.
Knowledge → Intention → Implementation → Reality.
The workspace
nth/
├── plan/
│ ├── main.nth
│ ├── kits/
│ │ ├── possibilities.csv
│ │ └── knowledge.xml
│ └── <action>/
│ ├── main.nth
│ └── <feature>.nth
└── dev/
├── blueprints/
├── changes/
├── compiler/
├── standards/
├── context.md
└── config.yaml
Write intent in plan/. Review proposals, implementation tasks, and verification evidence in dev/. The two directories live alongside your existing application code.
The toolchain
Use the slash commands below in Antigravity, Cursor, Claude Code, or Copilot chat in VS Code. In Codex, invoke the corresponding $nth-* skill. These are editor chat actions. Run nth check, nth fmt, and nth status in the terminal after installing the CLI globally.
| Chat command |
Codex skill |
What happens |
/nth-kit |
$nth-kit |
Give the agent a domain and ask for a CSV or XML knowledge kit |
/nth-new |
$nth-new |
Scaffold a goal, flow, or feature you name |
/nth-plan |
$nth-plan |
Draft proposal, specs, design, and tasks for your review |
/nth-build |
$nth-build |
Implement the named change after explicit approval |
/nth-test |
$nth-test |
Run project checks and record evidence |
Antigravity discovers the five NTH skills in .agents/skills. After upgrading the npm package, run nth update in each initialized workspace to reinstall missing files and migrate older Antigravity workflows. Open that workspace in the editor and start a fresh chat.
For a first run, edit nth/plan/main.nth, then use /nth-plan. Use /nth-kit when you want to research options and /nth-new when you want to split out a goal, flow, or feature. Review and approve the plan before building. Check the diff and test evidence before accepting the change. Agent workflow
Uninstall on Windows
Close your editors and open Command Prompt in the project folder. To clear old slash commands and Antigravity plugin registrations, run the npm package from that folder.
npx nth-intent@0.5.3 uninstall --yes --skills-only
Skills-only cleanup removes NTH editor entries and backups in this project and your user profile. For a full uninstall, omit --skills-only. This also removes known isolated installations, global NTH packages, and the VS Code extension when its CLI is available. Both modes preserve your project and .nth files. Reopen your editor and start a new chat to refresh the menu.
Standing on the shoulders of giants
Inspired by OpenSpec and Superpowers. The earlier NTH CLI experiments and downloads are preserved in this project’s history. Archive branch · Legacy releases
Contributing
Break the parser. Challenge the philosophy. Build something weird.
Run npm run build and npm test to check a source change. Use npm run pack:extension to build the VSIX. Contributing · Release guide
Think freely. Compile deliberately.