Skip to main content

Semantic history for agent-driven development. Records what you did and why.

Project description

Intent CLI

中文 | English

Semantic history for agent-driven development. Records what you did and why.

Intent CLI gives AI agents a structured way to track goals, interactions, and decisions across sessions. Instead of losing context when a conversation ends, agents persist their understanding into three simple objects stored alongside your code.

Three objects, one graph

Object What it captures
Intent A goal the agent identified from your query
Snap One agent interaction — query, summary, feedback
Decision A long-lived decision that spans multiple intents

Objects link automatically: creating an intent attaches all active decisions; creating a decision attaches all active intents. Relationships are always bidirectional and append-only.

Install

pip install intent-cli-python

Requires Python 3.9+ and Git.

Quick start

# Initialize in any git repo
itt init

# Agent identifies a new intent from user query
itt intent create "Fix the login timeout bug" \
  --query "why does login timeout after 5s?"

# Record what the agent did
itt snap create "Raise timeout to 30s" \
  --intent intent-001 \
  --query "login timeout still fails on slow networks" \
  --summary "Updated timeout config and ran the login test"

# Capture a long-lived decision
itt decision create "Timeout must stay configurable" \
  --rationale "Different deployments have different latency envelopes"

# See the full object graph
itt inspect

Commands

Global

Command Description
itt version Print version
itt init Initialize .intent/ in current git repo
itt inspect Show the live object graph snapshot

Intent

Command Description
itt intent create TITLE --query Q Create a new intent
itt intent list [--status S] List intents
itt intent show ID Show intent details
itt intent activate ID Resume a suspended intent
itt intent suspend ID Suspend an active intent
itt intent done ID Mark intent as completed

Snap

Command Description
itt snap create TITLE --intent ID Record an interaction snapshot
itt snap list [--intent ID] [--status S] List snaps
itt snap show ID Show snap details
itt snap feedback ID TEXT Set or overwrite feedback
itt snap revert ID Mark a snap as reverted

Decision

Command Description
itt decision create TITLE --rationale R Create a long-lived decision
itt decision list [--status S] List decisions
itt decision show ID Show decision details
itt decision deprecate ID Deprecate a decision
itt decision attach ID --intent ID Manually link a decision to an intent

Design principles

  • Agent-first: designed to be called by AI agents, not typed by hand
  • Append-only history: content fields are immutable after creation; correct mistakes in new snaps, don't rewrite old ones
  • Relationships only grow: no detach — deprecate a decision instead
  • All output is JSON: machine-readable by default
  • Zero dependencies: pure Python, stdlib only

Storage

All data lives in .intent/ at your git repo root:

.intent/
  config.json
  intents/
    intent-001.json
  snaps/
    snap-001.json
  decisions/
    decision-001.json

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intent_cli_python-0.6.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intent_cli_python-0.6.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file intent_cli_python-0.6.0.tar.gz.

File metadata

  • Download URL: intent_cli_python-0.6.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for intent_cli_python-0.6.0.tar.gz
Algorithm Hash digest
SHA256 4cc4ce70ffa5d333ba2241f9540c5d60889b99505e12cb2bed3ed6945cfa85ce
MD5 d7b7b62edd9d8dde52b9655e6523db60
BLAKE2b-256 e7228fa664bc564746f84798ac8429c2f35c42119fe1fb565e5b2b1a18788f0d

See more details on using hashes here.

File details

Details for the file intent_cli_python-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for intent_cli_python-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9d28aa0c6ad331bdbb03b871b3727f484296577f30e2b63b672f0edb3c1d9f
MD5 858cf24875c4c8efc5f150b42718a3e9
BLAKE2b-256 9d36767f588cd085d357ae07e4e3a4bc653713ff674b36fd78cdbdce5dc74d6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page