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 your project

up init

This sets up the .up/ directory, safety hooks, and AI configuration files in your repo.

2. Describe your vision

Open Claude Code (or Cursor) in your project and simply describe what you want to build. Use the AI to help you enrich and detail your vision โ€” don't worry about getting it perfect on the first pass. The AI will help you think through edge cases, architecture, and scope.

3. Research and plan with /learn

Once your vision is clear, use the learning skill to analyze your codebase and generate a structured PRD:

/learn auto

This parses your project with AST analysis, detects frameworks and patterns, and produces a prd.json with prioritized, dependency-ordered tasks.

4. Build it with /product-loop

With your PRD ready, kick off the autonomous development loop:

/product-loop

The AI will work through each task in order โ€” checkpointing, implementing, verifying, and committing โ€” with circuit breakers and auto-rollback keeping things safe.

Safety net (anytime)

You always have manual control:

up save      # checkpoint before risky work
up diff      # review AI changes
up reset     # rollback to last checkpoint

๐Ÿ› ๏ธ 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/           # Parallel execution system
โ”‚   โ”‚   โ”œโ”€โ”€ executor.py     # Parallel task execution
โ”‚   โ”‚   โ””โ”€โ”€ 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.1.tar.gz (335.5 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.1-py3-none-any.whl (246.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: up_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 335.5 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.1.tar.gz
Algorithm Hash digest
SHA256 0ae029b975acf4b1f2c934801128504f55ffcd7fcd31679f1b66a508fb92a7bd
MD5 766ac610489c028042f0505686f6a8c0
BLAKE2b-256 560b44f6c9a700ca18c4bb1d098759ebbcb53de0a14a080813b664766e5e59d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: up_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 246.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33a7aae2d4280aee5de8d1e784ee1ea68598296e05128cac83c382d5a8ccae31
MD5 8293cdbe1274a92db10b64b346b5ae2e
BLAKE2b-256 af2f1336005005c461687b8b0f5d27d093e85fd985a4131307797f88bc4a0e2f

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