Skip to main content

Substr8 Platform CLI - Verifiable AI Infrastructure

Project description

Substr8 CLI

PyPI version License: MIT

Verifiable AI Infrastructure — The command-line interface for the Substr8 platform.

Substr8 provides provable, auditable, and deterministic infrastructure for AI agents. This CLI bundles our core tools:

  • FDAA — File-Driven Agent Architecture
  • GAM — Git-Native Agent Memory
  • ACC — Agent Capability Control
  • DCT — Deterministic Capability Tokens (audit chain)
  • RIL — Runtime Integrity Layer (crash recovery, context repair)
  • Gateway — Docker Swarm orchestration

Installation

pip install substr8

Optional Dependencies

# With cryptographic signing (agent DIDs, GPG integration)
pip install substr8[crypto]

# With semantic search (embeddings-based recall)
pip install substr8[retrieval]

# Everything
pip install substr8[full]

Quick Start

# Initialize GAM in your workspace
cd your-project
substr8 gam init

# Store a memory
substr8 gam remember "Raza exercises 4-5x per week" --tag health

# Search memories (semantic search)
substr8 gam recall "fitness routine"

# Verify provenance
substr8 gam verify mem_1234567890_abcd

# Show status
substr8 gam status

GAM — Git-Native Agent Memory

GAM uses git's 20-year-old version control primitives to provide:

Feature How
Cryptographic provenance Every memory has a commit SHA
Tamper-evident history Merkle tree — change anything, hash breaks
Human-auditable Plain Markdown files, git blame works
Temporal awareness Decay scoring, point-in-time queries
W^X permissions Path-based access control with HITL gates

Commands

# Core operations
substr8 gam init              # Initialize repository
substr8 gam remember <text>   # Store a memory
substr8 gam recall <query>    # Search memories
substr8 gam verify <id>       # Verify provenance
substr8 gam forget <id>       # Delete a memory
substr8 gam status            # Show repository status

# Identity management
substr8 gam identity create-agent <name>  # Create agent DID
substr8 gam identity list                 # List identities

# Permissions (W^X)
substr8 gam permissions list    # Show all path policies
substr8 gam permissions check   # Check a specific path
substr8 gam permissions hitl    # Show human-required paths

# Maintenance
substr8 gam import <path>     # Import existing .md files
substr8 gam reindex           # Rebuild indexes

Memory File Format

Memories are stored as Markdown with YAML frontmatter:

---
gam_version: 1
id: mem_2026021908001234
created: 2026-02-19T08:00:00Z
source: conversation
confidence: high
tags: [health, fitness]
---

# Raza's Fitness Goals

Raza exercises 4-5x/week and has quit alcohol.

W^X Permissions

Path Permission Signature Required
SOUL.md HUMAN_SIGN Human GPG
AGENTS.md HUMAN_SIGN Human GPG
MEMORY.md AGENT_SIGN Agent DID
memory/daily/* OPEN None
memory/archive/* READONLY N/A

Platform Status

substr8 info
┌─────────────────────────────────────┐
│         Substr8 Platform v1.0.0     │
├───────────┬──────────┬──────────────┤
│ Component │ Status   │ Description  │
├───────────┼──────────┼──────────────┤
│ GAM       │ ✅ v1.0.0│ Git Memory   │
│ FDAA      │ 🔜       │ File Agents  │
│ ACC       │ 🔜       │ Capabilities │
└───────────┴──────────┴──────────────┘

Research

Paper DOI
GAM: Git-Native Agent Memory 10.5281/zenodo.18704573
ACC: Agent Capability Control 10.5281/zenodo.18704577
FDAA: File-Driven Agent Architecture 10.5281/zenodo.18675147

Links

License

MIT — Substr8 Labs


AI systems should be provable, not just probable.

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

substr8-1.2.0.tar.gz (164.6 kB view details)

Uploaded Source

Built Distribution

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

substr8-1.2.0-py3-none-any.whl (190.2 kB view details)

Uploaded Python 3

File details

Details for the file substr8-1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for substr8-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fb212fbd4dc9c90aefc043c505d3096dc23f78d4ea22ae811a0acb6b17860a45
MD5 3d459d679076f61bc959f5f55d8c3bb5
BLAKE2b-256 36a6d6e96ce5ac6ec2a09962f3fb84dd254f6bab1ec875a50e7b6145fde6fce6

See more details on using hashes here.

File details

Details for the file substr8-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: substr8-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 190.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for substr8-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93ae8e8185d0ac5a2d1b2a7ebbbcd49bd0b1987cf8cc1ae305683d5be617ca44
MD5 5cef5ae61ebef98759969efb91e54495
BLAKE2b-256 2a608e2bb200a0b016f8e9e900dbc4f5d60d55880751256009df7943f88f75b7

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