Skip to main content

Verifiable, observable AI-assisted development for building stable, high-performance software

Project description

Up-CLI ๐Ÿš€

Up-CLI Dashboard

Make AI-assisted development verifiable, observable, and safe โ€” turning Vibe Coding into Software Engineering.

PyPI version Python Version License: MIT

An AI-powered CLI tool for scaffolding projects with built-in documentation, learning systems, and SESRC product-loop workflows designed for use with Claude Code and Cursor AI.

Learned from real practice - Built on insights from millions of tokens of development experience. Extracts best practices from chat history, documentation patterns, and proven autonomous workflows.


๐ŸŒŸ Why Up-CLI? (The SESRC Principles)

Traditional "Vibe Coding" with AI produces unverified changes, leading to silent bugs and runaway loops. Up-CLI wraps your AI assistant in an engineering safety net:

Principle Implementation
Stable Graceful degradation, fallback modes, unified state manager
Efficient Token budget tracking, incremental testing, AST-based analysis
Safe Input validation, path whitelisting, dry-run previews
Reliable Circuit breakers, idempotency, verifiable git rollback
Cost-effective Early termination, multi-agent parallel execution

โšก Installation

# Minimal installation
pip install up-cli

# Full installation (includes ChromaDB for Semantic Search Memory)
pip install up-cli[all]

๐Ÿš€ Quick Start

1. Initialize Up-CLI in your project

up init

2. The Core Safety Workflow

Create a checkpoint before asking the AI to write code:

up save

After the AI finishes, review the changes:

up diff

If the AI broke something or you're not happy, instantly rollback:

up reset

3. Start the Autonomous Product Loop

# Write your tasks in prd.json, then run:
up start

๐Ÿ› ๏ธ Commands Reference

Setup

Command Description
up init Initialize up-cli in an existing repository
up new <name> Scaffold a new project from template

Safety

Command Description
up save Create a Git checkpoint before risky AI work
up diff Review AI changes before accepting
up reset Instantly restore workspace to the last checkpoint

Workflow

Command Description
up start Start the autonomous product loop
up done Mark a task as completed

Quality

Command Description
up review Run an AI adversarial code review
up status Show system health (circuit breakers, context budget, active agents)

Context

Command Description
up memory search <q> Semantic search across historical decisions and bugs
up memory record Manually record learnings/decisions to Long-Term Memory
up memory status Show memory system statistics

Agents

Command Description
up agent spawn Spawn an agent in an isolated worktree
up agent merge Merge an agent's work back to main

Learning

Command Description
up learn Analyze project and generate PRD for improvements

Tracing

Command Description
up provenance show View detailed audit trail for an AI operation

๐Ÿง  Core Systems

1. The Resilient Product Loop (SESRC)

The up start command implements a bulletproof autonomous execution cycle: OBSERVE โ†’ CHECKPOINT โ†’ EXECUTE โ†’ VERIFY โ†’ COMMIT

  • Circuit Breaker: Prevents Doom Loops. If the AI fails to write passing code 3 times in a row, the circuit opens, halts execution, and prevents token burn.
  • Auto-Rollback: If tests or linting fails, changes are instantly reverted.
  • Smart Merge: In --parallel mode, if multiple agents cause a Git conflict, the system feeds the conflict markers back to the AI to resolve intelligently.

2. AST-Based Learning System

The /learn commands use Python's Abstract Syntax Tree (ast) to physically parse your code, accurately detecting framework usage (e.g., React Hooks, FastAPI Routers, Repository patterns) rather than relying on brittle Regex or AI hallucinations.

3. Long-Term Memory

Up-CLI comes with a local ChromaDB instance (.up/memory). It auto-indexes your git commits. When the AI gets stuck, it can semantic-search past errors and decisions to avoid repeating mistakes across sessions.


๐Ÿ“‚ Project Templates

Create projects with pre-configured tech stacks and AI rules (CLAUDE.md, .cursorrules):

# FastAPI backend with SQLAlchemy
up new my-api --template fastapi

# Next.js frontend with TypeScript
up new my-app --template nextjs

# Python library with packaging
up new my-lib --template python-lib

# Full setup with MCP support
up new my-project --template full

Development

# Install for development
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/

# Type check
mypy src/

Project Structure

up-cli/
โ”œโ”€โ”€ src/up/
โ”‚   โ”œโ”€โ”€ cli.py              # Main CLI entry point
โ”‚   โ”œโ”€โ”€ ai_cli.py           # AI CLI utilities (Claude/Cursor)
โ”‚   โ”œโ”€โ”€ context.py          # Context budget management
โ”‚   โ”œโ”€โ”€ events.py           # Event-driven integration
โ”‚   โ”œโ”€โ”€ summarizer.py       # Conversation analysis
โ”‚   โ”œโ”€โ”€ parallel.py         # Parallel task execution
โ”‚   โ”œโ”€โ”€ parallel_scheduler.py # Dependency-aware scheduling
โ”‚   โ”œโ”€โ”€ core/               # Core modules
โ”‚   โ”‚   โ”œโ”€โ”€ state.py        # Unified state management
โ”‚   โ”‚   โ”œโ”€โ”€ checkpoint.py   # Git checkpoint operations
โ”‚   โ”‚   โ””โ”€โ”€ provenance.py   # AI operation tracking
โ”‚   โ”œโ”€โ”€ git/                # Git utilities
โ”‚   โ”‚   โ”œโ”€โ”€ utils.py        # Git command helpers
โ”‚   โ”‚   โ””โ”€โ”€ worktree.py     # Worktree management
โ”‚   โ”œโ”€โ”€ learn/              # Learning system
โ”‚   โ”‚   โ”œโ”€โ”€ analyzer.py     # Project analysis
โ”‚   โ”‚   โ”œโ”€โ”€ research.py     # Topic/file learning
โ”‚   โ”‚   โ”œโ”€โ”€ plan.py         # PRD generation
โ”‚   โ”‚   โ””โ”€โ”€ utils.py        # Shared utilities
โ”‚   โ”œโ”€โ”€ memory/             # Long-term memory (ChromaDB)
โ”‚   โ”‚   โ”œโ”€โ”€ _manager.py     # Memory manager
โ”‚   โ”‚   โ”œโ”€โ”€ entry.py        # Memory entries
โ”‚   โ”‚   โ””โ”€โ”€ stores.py       # Storage backends
โ”‚   โ”œโ”€โ”€ commands/           # CLI commands
โ”‚   โ”‚   โ”œโ”€โ”€ init.py         # Initialize project
โ”‚   โ”‚   โ”œโ”€โ”€ new.py          # Create new project
โ”‚   โ”‚   โ”œโ”€โ”€ status.py       # System health
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard.py    # Live monitoring
โ”‚   โ”‚   โ”œโ”€โ”€ start/          # Product loop (subpackage)
โ”‚   โ”‚   โ”œโ”€โ”€ vibe.py         # save/reset/diff
โ”‚   โ”‚   โ”œโ”€โ”€ agent.py        # Multi-agent worktrees
โ”‚   โ”‚   โ”œโ”€โ”€ bisect.py       # Bug hunting
โ”‚   โ”‚   โ”œโ”€โ”€ provenance.py   # Lineage tracking
โ”‚   โ”‚   โ”œโ”€โ”€ review.py       # AI code review
โ”‚   โ”‚   โ”œโ”€โ”€ branch.py       # Branch hierarchy
โ”‚   โ”‚   โ”œโ”€โ”€ memory.py       # Memory commands
โ”‚   โ”‚   โ”œโ”€โ”€ sync.py         # Sync & hooks
โ”‚   โ”‚   โ””โ”€โ”€ summarize.py    # Conversation summary
โ”‚   โ”œโ”€โ”€ ui/                 # Terminal UI components
โ”‚   โ”‚   โ”œโ”€โ”€ loop_display.py # Product loop live display
โ”‚   โ”‚   โ””โ”€โ”€ theme.py        # Rich theme
โ”‚   โ””โ”€โ”€ templates/          # Scaffolding templates
โ”‚       โ”œโ”€โ”€ config/         # CLAUDE.md, .cursor/rules
โ”‚       โ”œโ”€โ”€ docs/           # Documentation system
โ”‚       โ”œโ”€โ”€ learn/          # Learning system
โ”‚       โ”œโ”€โ”€ loop/           # Product loop
โ”‚       โ”œโ”€โ”€ mcp/            # MCP server
โ”‚       โ””โ”€โ”€ projects/       # Project templates
โ”œโ”€โ”€ tests/                  # Test suite
โ”œโ”€โ”€ scripts/                # Utility scripts
โ””โ”€โ”€ docs/                   # Documentation
    โ”œโ”€โ”€ architecture/       # System architecture
    โ”œโ”€โ”€ guides/             # Usage guides
    โ””โ”€โ”€ handoff/            # Session continuity

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

up_cli-1.0.0.tar.gz (236.4 kB view details)

Uploaded Source

Built Distribution

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

up_cli-1.0.0-py3-none-any.whl (172.6 kB view details)

Uploaded Python 3

File details

Details for the file up_cli-1.0.0.tar.gz.

File metadata

  • Download URL: up_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 236.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for up_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e35eb5fb00cbf9b3bc7689dd98659631f68ef1fe27e71950921ecc4d0e0d01d
MD5 06604969ba51f59a6c5e706744007102
BLAKE2b-256 8a0a6d614ea4640454f922b2675a671ed47d4b043a3cedf048db64b4d4a2300b

See more details on using hashes here.

File details

Details for the file up_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: up_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 172.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for up_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebc0edc7c6f153b17f8c96f60183f8904691654b642ed973483c91fda359f55a
MD5 b112f833b8713853f7e8d1329e2fe44b
BLAKE2b-256 4afc8dd0c5addd92024bf69f90ff3f2a882fabe340b3ef57aab94f7fa86f6c31

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