Version control for intent. An open protocol and public commons for humanβAI communication.
Intentry is the open protocol for prompt version control. It defines:
.promptfile format - a Dotprompt-compatible, progressively structured file format for capturing the full cognitive contract between human and model- Version store - event-sourced, content-addressed storage for prompt history
- Diff engine - semantic diffing between prompt versions
intrCLI - version, commit, fork, and run.promptfiles locally or against the hosted commons- SDKs - TypeScript, Python, and Go clients for the public API
The hosted platform (intentry.dev) is built on top of these open-source primitives. Everything here is MIT-licensed and self-hostable.
# Install the CLI
cargo install intr-cli
# Initialize a space in your project
intr init
# Write a prompt
cat > summarize.prompt << 'EOF'
---
id: summarize
version: 1.0.0
description: One-sentence summary of arbitrary text
model:
preferred: [claude-sonnet-4-6, gpt-4o]
temperature: 0.2
input:
schema:
text: string
---
Summarize the following in one sentence.
Text: {{text}}
EOF
# Commit it
intr commit summarize.prompt
# Run it against a model
intr run summarize.prompt --input '{"text": "Your input here"}'intentry/
βββ spec/ # The .prompt specification (hosted at intentry.dev/spec)
βββ crates/
β βββ intr-cli # CLI binary: `intr`
β βββ intr-core # Core engine: version store, event log, projections
β βββ intr-parser # .prompt file parser (Tier 1β3)
β βββ intr-runtime-local # Local model execution (Ollama, llama.cpp)
β βββ intr-providers # Model provider abstraction
βββ sdk/
β βββ typescript/ # @intentry/sdk (npm)
β βββ python/ # intentry (PyPI)
β βββ go/ # github.com/intentry/go-sdk
βββ extensions/
βββ vscode/ # VSCode/Cursor extension
# Build everything
cargo build --workspace
# Run tests
cargo test --workspace
# Check with Clippy
cargo clippy --workspace -- -D warnings
# Build the CLI binary
cargo build -p intr-cli --releaseEvery decision in this codebase is governed by the 10 Foundation Principles in FOUNDATIONS.md. Read them before contributing.
See CONTRIBUTING.md. The short version: spec first, then code; PRs reference a spec ID.
MIT - see LICENSE.