Skip to content

mylamour/up

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages