Verifiable, observable AI-assisted development for building stable, high-performance software
Project description
Up-CLI ๐
Make AI-assisted development verifiable, observable, and safe โ turning Vibe Coding into Software Engineering.
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
--parallelmode, 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e35eb5fb00cbf9b3bc7689dd98659631f68ef1fe27e71950921ecc4d0e0d01d
|
|
| MD5 |
06604969ba51f59a6c5e706744007102
|
|
| BLAKE2b-256 |
8a0a6d614ea4640454f922b2675a671ed47d4b043a3cedf048db64b4d4a2300b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebc0edc7c6f153b17f8c96f60183f8904691654b642ed973483c91fda359f55a
|
|
| MD5 |
b112f833b8713853f7e8d1329e2fe44b
|
|
| BLAKE2b-256 |
4afc8dd0c5addd92024bf69f90ff3f2a882fabe340b3ef57aab94f7fa86f6c31
|