Skip to main content
StintLock — Local-first, Git-backed handoff & verification checkpoints for AI coding agents

CI Security Release v0.1.0 Python 3.11 | 3.12 | 3.13 MIT License

Transfer unfinished software engineering tasks between AI coding agents without losing context or trusting unverified claims.

Supports workflows across Antigravity, Claude Code, Codex, Gemini CLI, Cursor, and OpenCode — offline, local-first, and without paid API keys or cloud services.


Live Animated Terminal Demo

StintLock live animated terminal demo

Verified CLI Output Screenshot

Captured directly from a local end-to-end run (stintlock status, clean verify, post-edit drift detection, and read-only resume):

StintLock verified CLI workflow screenshot

Why StintLock?

Existing cross-agent handoff tools typically convert raw chat transcripts or generate unverified Markdown summaries—propagating hallucinated "all tests pass" claims, stale context after files change, and potential secret leakage. See docs/competitive-analysis.md for a full comparison against CatchUp, Agent Relay, Catalyst, and Baton.

Guarantee How StintLock Enforces It
Observed vs. Claimed Separation Every field carries an explicit EvidenceStatus (observed, agent_reported, unverified, stale). Agent claims can never masquerade as observed.
Git-Backed Fingerprinting Machine-readable git -c core.quotePath=false status --porcelain=v2 --branch -z + SHA-256 hashes across HEAD, index, unstaged changes, and untracked files.
Stale Evidence & Drift Guard Emits VERIFIED_STATE_MATCH, WORKING_TREE_CHANGED, BRANCH_CHANGED, HEAD_CHANGED, REPOSITORY_MISMATCH, CHECKPOINT_CORRUPTED, and INCOMPLETE_EVIDENCE.
Untrusted Data Boundary Checkpoints are portable data artifacts, never executable scripts. verify and resume never overwrite files, alter Git history, or run embedded commands.
Privacy-First Local Storage Stores immutable records in local SQLite (user_data or gitignored .stintlock/), excludes .env*/keys, and redacts credentials on output.

Quickstart

Installation

# Run or install from source
git clone https://github.com/jeromeprince777/StintLock.git
cd StintLock
uv sync --locked
uv run stintlock --version

(Once published on PyPI, install globally with uv tool install stintlock.)

Workflow

# 1. Initialize local config and storage for a Git repository
stintlock init

# 2. Inspect observed Git state without modifying anything
stintlock status

# 3. Save an immutable checkpoint (opt-in verification runs only commands in .stintlock/config.toml)
stintlock save \
  --task "Implement token validator and expiry checks" \
  --agent claude-code \
  --done "Implemented validate()" \
  --pending "Add expiry validation" \
  --decision "Stateless validation" \
  --rejected "Rejected global session cache" \
  --blocker "Need clock skew tolerance config" \
  --next-action "Add expiry test in tokens.py" \
  --verify

# 4. Verify repository state before the receiving agent continues
stintlock verify CHECKPOINT_ID

# 5. Generate a read-only 12-section handoff formatted for the target agent
stintlock resume CHECKPOINT_ID --template codex

# 6. Export portable Markdown/JSON, diff checkpoints, or run the synthetic offline demo
stintlock diff CHECKPOINT_A CHECKPOINT_B
stintlock export CHECKPOINT_ID --format markdown
stintlock demo
Preview: 12-Section Handoff Report Structure & Local Verification Config

Every Markdown/JSON handoff includes:

  1. Current Development Objective (agent_reported)
  2. Acceptance Criteria (agent_reported)
  3. Verified Repository State (observed / stale)
  4. Relevant Changed Files (observed)
  5. Completed Work (agent_reported)
  6. Pending Tasks (agent_reported)
  7. Architectural Decisions (agent_reported)
  8. Previously Rejected Approaches (agent_reported)
  9. Verified Test Evidence (observed / stale)
  10. Stale or Unverified Claims (stale / unverified)
  11. Known Blockers (agent_reported)
  12. Recommended Next Action (agent_reported)

See examples/handoff-example.md and examples/config.toml.


Architecture

flowchart TD
    CLI["CLI (Typer + Rich)"] --> Core["Core Engine (capture, verify, drift, integrity)"]
    MCP["Local Stdio MCP Server"] --> Core

    Core --> Git["Git Inspection Engine (porcelain=v2 -z, SHA-256)"]
    Core --> Verify["Verification Runner (approved profiles only, shell=False)"]
    Core --> Storage["SQLite + Immutable JSON Store"]
    Core --> Context["Context Builder & Secret Redaction"]

    Context --> Reporters["Markdown / JSON / Terminal / Agent Templates"]

Evidence Classification

Status Meaning
observed Directly observed via read-only Git CLI or executed local verification profiles
agent_reported Claimed by the sending agent or developer (never promoted to observed)
unverified Lacks corroborating observed verification evidence
stale Observed state or test output invalidated by subsequent repository changes

MCP Integration (Read-Only Default)

Start the local stdio MCP server (mcp>=2.0.0, no network listener):

# Read-only inspection tools only (recommended default)
stintlock mcp --workspace /path/to/repo

# Explicitly opt in to local checkpoint creation
stintlock mcp --workspace /path/to/repo --allow-write

Exposed tools: repository_status, checkpoint_list, checkpoint_get, checkpoint_verify, checkpoint_compare, checkpoint_export, and opt-in checkpoint_save. See docs/mcp-integration.md for security boundaries and client configuration examples.


Supported Platforms

Platform Python Versions CI Status
Linux (ubuntu-latest) 3.11, 3.12, 3.13 Verified on GitHub Actions
Windows (windows-latest) 3.11, 3.12, 3.13 Verified on GitHub Actions & locally

Documentation

Known Limitations

  • Pattern-Based Redaction: Regex redaction catches common token prefixes, private key blocks, and credential assignments, but cannot guarantee 100% detection of custom or obfuscated secrets.
  • Integrity vs. Authenticity: SHA-256 checksums detect accidental corruption and drift, not malicious local tampering by a process with write access to the SQLite database.
  • Character Budgeting: Context size limits use character and UTF-8 byte counts rather than model-specific tokenizers.
  • Client Compatibility: Target agent templates (antigravity, claude-code, codex, gemini-cli, cursor, opencode) and MCP snippets are non-executable formatters/examples; verify client-specific MCP registration against your installed client version.

Good First Issues

  • Add configurable custom redaction regexes in .stintlock/config.toml.
  • Add optional tiktoken byte/token estimation behind an optional extra.
  • Add interactive Textual TUI checkpoint browser (stintlock browse).

License

MIT License — see LICENSE.

Metadata

Release files for stintlock 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stintlock 0.1.0
File Size Uploaded Provenance Actions
stintlock-0.1.0.tar.gz 371.3 kB With provenance Details for stintlock-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stintlock 0.1.0
File Interpreter ABI Platform Actions
stintlock-0.1.0-py3-none-any.whl Python 3 none any Details for stintlock-0.1.0-py3-none-any.whl

Total release size: 423.3 kB

Release files / stintlock-0.1.0.tar.gz

Download URL stintlock-0.1.0.tar.gz
Size 371.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fb1921e0d76b4b0e56ae6f927f41b5f4359537c01a8984b2957234edd0e86a9c
BLAKE2b-256 checksum
How to use checksums
600d1bcee74d3f02b0eea5f361f27718216c8748365d960e0e760a9b41a0065d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / stintlock-0.1.0-py3-none-any.whl

Download URL stintlock-0.1.0-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d6b3afc66cde55fa30255764f5ecc40e845061b0110a4e6ab4dd078e42876a2
BLAKE2b-256 checksum
How to use checksums
e40c63c180fdc2737512d920e6cf7197417ef735539aaead598146643d154e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for stintlock 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stintlock-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page