Skip to content

HassanMehmood413/VibeArchitect-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vibe Architect CLI

A command-line interface for AI-powered code generation with human-in-the-loop approval.


πŸš€ Quick Start

# Install dependencies
poetry install

# Run CLI
poetry run vibe --help

# Or activate shell for direct access
poetry shell
vibe --help

πŸ“‹ Complete Command Reference

Main Commands

Command Description Example
vibe generate "prompt" Generate code from prompt vibe generate "create a login form"
vibe chat Start interactive REPL mode vibe chat
vibe --help Show all commands vibe --help
vibe --version Show version vibe --version

πŸ‘€ Agent Management (vibe agents)

Command Description Example
vibe agents list List all agents vibe agents list
vibe agents create -n "name" Create new agent vibe agents create -n "Builder" -f react
vibe agents use <id> Set default agent vibe agents use 1

Create Options:

Option Short Description Default
--name -n Agent name required
--description -d Agent description "AI code generation agent"
--framework -f Framework (react/vue/html) react
--use/--no-use Set as default after creation --use

Example:

vibe agents create -n "React Builder" -d "Builds React components" -f react

βš™οΈ Configuration (vibe config)

Command Description Example
vibe config show Show current config vibe config show
vibe config set <key> <value> Set a config value vibe config set default_agent_id 1
vibe config reset Reset to defaults vibe config reset

Available Config Keys:

Key Description Default
api_url Backend API URL http://localhost:8000
timeout Request timeout (seconds) 120
default_agent_id Default agent ID none
default_framework Default framework react
hitl_enabled Human-in-the-loop enabled true
workspace Output directory .
theme CLI theme (dark/light/auto) auto

πŸ“ Code Generation (vibe generate)

vibe generate "your prompt here" [OPTIONS]
Option Short Description Example
--agent -a Agent ID to use -a 1
--framework -f Framework override -f vue
--output -o Output file path -o ./src/Button.tsx
--no-hitl Skip approval prompt --no-hitl

Examples:

# Basic usage (uses default agent)
vibe generate "create a navbar component"

# Specify agent
vibe generate "create a button" --agent 1

# Specify framework
vibe generate "create a modal" -f vue

# Specify output location
vibe generate "create utils" -o ./src/utils/helpers.ts

# Auto-approve (skip HITL)
vibe generate "create a card" --no-hitl

πŸ“‹ Workflow Management

Command Description Example
vibe pending List pending approvals vibe pending
vibe status <thread_id> Check workflow status vibe status abc-123
vibe approve <thread_id> Approve pending workflow vibe approve abc-123
vibe reject <thread_id> Reject pending workflow vibe reject abc-123
vibe history <agent_id> Show agent's history vibe history 1

πŸ’¬ Interactive Mode (vibe chat)

Start an interactive session:

vibe chat

Slash Commands:

Command Description
/help Show help
/agent <id> Switch to different agent
/framework <name> Change framework (react/vue/html)
/hitl on|off Toggle human-in-the-loop
/pending Show pending approvals
/status <thread> Check thread status
/clear Clear screen
/exit Exit chat (or Ctrl+D)

Multi-line Input:

  • Press Enter twice to submit
  • Use Ctrl+Enter for newline within input

πŸƒ Running the Full Stack

With Docker Compose

# Start backend + database
docker compose up -d backend postgres

# Run CLI
poetry run vibe chat

# Or run CLI in Docker
docker compose run --rm cli

Without Docker

# Terminal 1: Start PostgreSQL (or use Docker)
docker compose up -d postgres

# Terminal 2: Start backend
poetry run uvicorn backend.main:app --reload

# Terminal 3: Run CLI
poetry run vibe chat

πŸ”§ Installation Options

Option 1: Poetry Shell (Development)

poetry shell
vibe agents list

Option 2: Add to PATH (Permanent)

Find your virtualenv:

poetry env info --path

Add to PowerShell profile:

# Open profile
notepad $PROFILE

# Add this line (replace with your path)
$env:PATH += ";D:\poetry_envs\vibearchitect-cli-XXXXX-py3.13\Scripts"

Option 3: pipx (Global Install)

pip install pipx
pipx install . --editable

πŸ“ Project Structure

β”œβ”€β”€ backend/                 # FastAPI backend
β”‚   β”œβ”€β”€ core/               # Config, database
β”‚   β”œβ”€β”€ modules/
β”‚   β”‚   β”œβ”€β”€ agent/          # LangGraph agent
β”‚   β”‚   └── users/          # Authentication
β”‚   └── main.py             # App entry point
β”œβ”€β”€ cli/                    # Typer CLI
β”‚   β”œβ”€β”€ commands/           # CLI commands
β”‚   β”œβ”€β”€ repl/               # Interactive mode
β”‚   β”œβ”€β”€ ui/                 # Rich console UI
β”‚   β”œβ”€β”€ client.py           # API client
β”‚   β”œβ”€β”€ config.py           # CLI configuration
β”‚   └── main.py             # CLI entry point
β”œβ”€β”€ frontend/               # Next.js frontend
β”œβ”€β”€ docker-compose.yml      # Multi-service orchestration
└── pyproject.toml          # Dependencies

πŸ“ Config File Location

OS Path
Windows C:\Users\<username>\.vibe\config.toml
Linux/Mac ~/.vibe/config.toml

πŸ”‘ Environment Variables

Create a .env file in the project root:

# Database
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=vibearchitectcli
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/vibearchitectcli

# Auth
SECRET_KEY=your-secret-key-here

# OpenAI
OPENAI_API_KEY=sk-...

# CLI (optional, for Docker)
VIBE_API_URL=http://localhost:8000

🎯 Quick Start Cheatsheet

# 1. Start services
docker compose up -d backend postgres

# 2. Create your first agent
vibe agents create -n "React Builder" -f react

# 3. Generate code
vibe generate "create a todo list component with add/delete functionality"

# 4. Or use interactive mode
vibe chat

# 5. Check your config
vibe config show

# 6. View generation history
vibe history 1

πŸ“œ License

MIT

About

A CLI with gestures and voice controlled code generation system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages