Skip to content
View intentry's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report intentry

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
intentry/README.md

Intentry

Version control for intent. An open protocol and public commons for human–AI communication.

CI Crates.io License: MIT


What this is

Intentry is the open protocol for prompt version control. It defines:

  • .prompt file 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
  • intr CLI - version, commit, fork, and run .prompt files 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.

Quick start

# 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"}'

Repository structure

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

Building

# 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 --release

The 10 Laws

Every decision in this codebase is governed by the 10 Foundation Principles in FOUNDATIONS.md. Read them before contributing.

Contributing

See CONTRIBUTING.md. The short version: spec first, then code; PRs reference a spec ID.

License

MIT - see LICENSE.

Popular repositories Loading

  1. intentry intentry Public

    Open protocol + CLI for prompt version control (.prompt spec, intr CLI, SDKs)

    Rust 1

  2. docs docs Public

    Intentry documentation site

    TypeScript

  3. homebrew-tap homebrew-tap Public

    Ruby