Skip to main content

AI-powered business planning and execution agent

Project description

Bizy AI - AI-Powered Business Planning & Execution Agent

PyPI version Python 3.8+ License: MIT

An autonomous AI agent that runs daily to help you execute your business plan, manage tasks, conduct research, and stay on track toward your goals.

๐ŸŽฏ Current Status: Phase 1 Complete โœ…

Local Python MVP with full AI-powered features is ready to use!


Quick Start

Installation

# Install globally via pip
pip install business-agent

# Set up your API key
mkdir -p ~/.business-agent
echo "ANTHROPIC_API_KEY=your-key-here" > ~/.business-agent/.env

# Initialize database
python -c "from agent.models import init_database; init_database()"

# Use the CLI
bizy task list
bizy goal list

Development Setup

# Clone the repository
git clone https://github.com/reidchatham/business-agent.git
cd business-agent

# Install in editable mode
pip install -e .

# Run setup script
./setup.sh

See INSTALL.md for detailed installation options.


Development

Test-Driven Development (TDD)

This project follows TDD principles. All new features must:

  1. Write tests first - Define expected behavior
  2. Run tests (they should fail) - Red phase
  3. Implement feature - Green phase
  4. Refactor - Clean up code

Running Tests

# Run all tests with coverage
make test

# Run tests in watch mode
make test-watch

# Run specific test file
pytest tests/test_tasks.py -v

Database Environments

  • Production: ~/.business-agent/tasks.db - Your actual business data ๐Ÿ”’
  • Development: ~/.business-agent/dev_tasks.db - Safe for experimentation โš™๏ธ
  • Test: In-memory - Isolated, clean for each test ๐Ÿงช
# Use development database
export BIZY_ENV=development
make dev

# Use production database (default)
export BIZY_ENV=production

See CONTRIBUTING.md for detailed development guidelines.


Features (Phase 1)

โœ… AI-Powered Goal Breakdown - Claude breaks big goals into 5-10 actionable tasks
โœ… Daily Morning Briefings - Personalized insights and prioritized tasks
โœ… Evening Reviews - Reflect with AI analysis
โœ… Weekly Strategic Reports - Comprehensive progress analysis
โœ… Research Agent - Market research and competitive intelligence
โœ… Task Management - Priorities, dependencies, progress tracking
โœ… CLI Tool - Quick command-line interactions
โœ… Automated Scheduling - Runs briefings/reviews automatically


๐Ÿ“ˆ Development Roadmap

The project is designed to evolve through 4 phases:

Phase 2: Enhanced Python (Weeks 4-6) ๐Ÿ”œ

  • Live CLI dashboard with real-time updates
  • Google Calendar integration
  • Email integration
  • Velocity-based predictions
  • Advanced analytics with charts
  • PDF/CSV exports

Phase 3: Web Interface (Weeks 7-10)

  • FastAPI backend
  • React + TypeScript frontend
  • PostgreSQL database
  • Real-time WebSocket updates
  • Multi-device access
  • User authentication

Phase 4: Production & Scale (Weeks 11-14)

  • Cloud deployment (AWS/Railway)
  • Mobile apps (PWA/React Native)
  • Team collaboration
  • Payment integration (Stripe)
  • Integration marketplace
  • Advanced analytics

See ROADMAP.md for complete migration plan and technical details.


Project Structure

business-agent/
โ”œโ”€โ”€ agent/                   # Core modules
โ”‚   โ”œโ”€โ”€ core.py             # AI agent (briefings, reviews)
โ”‚   โ”œโ”€โ”€ models.py           # Database schema
โ”‚   โ”œโ”€โ”€ tasks.py            # Task management
โ”‚   โ”œโ”€โ”€ planner.py          # Goal planning & AI breakdown
โ”‚   โ””โ”€โ”€ research.py         # Research & intelligence
โ”‚
โ”œโ”€โ”€ scripts/                 # Automation scripts
โ”‚   โ”œโ”€โ”€ init_db.py          # Database setup
โ”‚   โ”œโ”€โ”€ morning_brief.py    # Morning briefing
โ”‚   โ”œโ”€โ”€ evening_review.py   # Evening review
โ”‚   โ”œโ”€โ”€ weekly_review.py    # Weekly report
โ”‚   โ””โ”€โ”€ agent_cli.py        # CLI tool
โ”‚
โ”œโ”€โ”€ templates/               # Configuration
โ”‚   โ””โ”€โ”€ business_plan_template.yaml
โ”‚
โ”œโ”€โ”€ main.py                  # Scheduler daemon
โ”œโ”€โ”€ requirements.txt         # Python dependencies
โ”œโ”€โ”€ setup.sh                 # Automated setup
โ”‚
โ””โ”€โ”€ Documentation
    โ”œโ”€โ”€ README.md            # This file
    โ”œโ”€โ”€ QUICKSTART.md        # 5-minute quick start
    โ”œโ”€โ”€ ROADMAP.md           # Complete development roadmap
    โ”œโ”€โ”€ GETTING_STARTED.md   # Development guide
    โ””โ”€โ”€ PROJECT_COMPLETE.md  # Setup summary

Essential Commands

Daily Use

# Morning
python scripts/morning_brief.py

# Complete a task
python scripts/agent_cli.py task complete 5

# Evening
python scripts/evening_review.py

Task Management

# Add task
python scripts/agent_cli.py task add "Task title" -p 1 -h 3

# List tasks
python scripts/agent_cli.py task list

# Complete task
python scripts/agent_cli.py task complete <ID>

Goal Management

# Add goal
python scripts/agent_cli.py goal add "Goal title" -h quarterly -t 2025-12-31

# List goals
python scripts/agent_cli.py goal list

# AI breakdown (creates tasks automatically)
python scripts/agent_cli.py goal breakdown <ID>

Research

# Research topic
python scripts/agent_cli.py research topic "market trends"

# Competitor analysis
python scripts/agent_cli.py research competitors "domain" "offering"

Automation

# Start scheduler (runs morning/evening/weekly automatically)
python main.py

Technology Stack

Phase 1 (Current)

  • Python 3.8+
  • Claude (Anthropic API) - AI intelligence
  • SQLAlchemy + SQLite - Database
  • Rich - Beautiful terminal UI
  • Click - CLI framework
  • Schedule - Task automation

Phase 2 (Planned)

  • Textual - Advanced TUI
  • Google Calendar API - Calendar sync
  • Gmail API - Email integration
  • Plotext - Terminal charts
  • ReportLab - PDF generation

Phase 3 (Planned)

  • FastAPI - Backend framework
  • PostgreSQL - Production database
  • React + TypeScript - Frontend
  • TailwindCSS - Styling
  • WebSockets - Real-time updates

Phase 4 (Planned)

  • AWS/Railway - Cloud hosting
  • React Native/PWA - Mobile apps
  • Stripe - Payments
  • Redis - Caching
  • Celery - Background jobs

Development with Claude Code

This project is configured for Claude Code development:

# The project includes:
.claude_code.json          # Claude Code workspace config
GETTING_STARTED.md         # Development guide
ROADMAP.md                 # Migration path details

Open this directory in Claude Code to start developing with AI assistance!


Documentation


Key Benefits

โœ… Never forget important tasks - AI breaks down goals automatically
โœ… Stay on track daily - Morning briefings keep you focused
โœ… Learn from patterns - Evening reviews capture insights
โœ… Make informed decisions - Research agent gathers intelligence
โœ… Adapt your strategy - Weekly reviews suggest improvements
โœ… Build momentum - Daily habit creates consistent progress


Examples

Create Your First Goal

# 1. Create a quarterly goal
python scripts/agent_cli.py goal add "Launch MVP Product" \
  -h quarterly \
  -t 2025-06-30

# 2. Let AI break it down into tasks
python scripts/agent_cli.py goal breakdown 1

# Output: Claude creates 5-10 actionable tasks like:
#   - Design database schema (3h, priority 1)
#   - Implement user authentication (6h, priority 1)
#   - Build frontend UI (16h, priority 2)
#   - etc.

# 3. View your tasks
python scripts/agent_cli.py task list

# 4. Get your morning briefing
python scripts/morning_brief.py

How It Works

1. YOU define goals
   โ†“
2. AI breaks down goals into tasks
   โ†“
3. Morning briefing prioritizes today's tasks
   โ†“
4. YOU work on tasks throughout the day
   โ†“
5. Evening review captures learnings
   โ†“
6. AI analyzes patterns and suggests improvements
   โ†“
7. Weekly review provides strategic insights
   โ†“
8. Cycle repeats, continuously improving

Troubleshooting

API Key Issues

# Check .env file exists
ls -la .env

# Verify key is set
cat .env | grep ANTHROPIC_API_KEY

Virtual Environment

# Always activate first
source venv/bin/activate

# Check Python version
python --version  # Should be 3.8+

Database Issues

# Reset database
rm data/tasks.db
python scripts/init_db.py

Permission Issues

# Make scripts executable
chmod +x setup.sh main.py scripts/*.py

Cost Estimate

Based on typical usage with Claude Sonnet:

  • Morning briefing: 1,000 tokens ($0.003)
  • Evening review: 1,500 tokens ($0.005)
  • Weekly review: 3,000 tokens ($0.009)
  • Goal breakdown: 2,000 tokens per goal ($0.006)
  • Research: 3,000-5,000 tokens per query ($0.009-0.015)

Monthly estimate: $5-15 depending on usage


Contributing to This Project

This is a personal business tool, but if you're building something similar:

  1. Fork the repository
  2. Check the ROADMAP.md for upcoming features
  3. Build Phase 2 features
  4. Share your improvements!

Roadmap Highlights

๐Ÿ”œ Next Up: Phase 2 (Weeks 4-6)

Top priorities:

  1. Live Dashboard - Real-time task updates in terminal
  2. Calendar Integration - Sync with Google Calendar
  3. Velocity Predictions - AI predicts completion dates
  4. Email Integration - Daily briefings via email

Timeline: 3 weeks
Start Date: This week!

See ROADMAP.md for detailed implementation plans.


Requirements

  • Python 3.8 or higher
  • Anthropic API access (Claude)
  • ~50MB disk space
  • Works on: macOS, Linux, Windows

License

MIT License - feel free to use and modify for your business.


Support

  • ๐Ÿ“– Documentation: Check the docs in this directory
  • ๐Ÿ› Issues: Check error logs in data/logs/
  • ๐Ÿ’ฌ Questions: Review GETTING_STARTED.md and ROADMAP.md
  • ๐Ÿš€ Updates: Follow the roadmap for upcoming features

Next Steps

If You're Just Getting Started:

  1. Run ./setup.sh to set up the environment
  2. Add your Anthropic API key to .env
  3. Run python scripts/morning_brief.py to test
  4. Create your first goal and let AI break it down
  5. Start using daily for one week

If You Want to Develop:

  1. Review ROADMAP.md for migration path
  2. Check GETTING_STARTED.md for dev guide
  3. Open in Claude Code for AI-assisted development
  4. Start building Phase 2 features
  5. Test with beta users

If You Want to Understand the Vision:

  1. Read templates/business_plan_template.yaml
  2. Review the 4-phase roadmap
  3. Understand the migration from Python โ†’ Web โ†’ Production
  4. See how each phase builds on the previous

Ready to execute your business plan? Let's go! ๐Ÿš€

Built with โค๏ธ using Claude (Anthropic)

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

bizy_ai-1.1.1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

bizy_ai-1.1.1-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file bizy_ai-1.1.1.tar.gz.

File metadata

  • Download URL: bizy_ai-1.1.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for bizy_ai-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7e470e12a4e00243dd5f3dab9af4db9323e0733e2b47b1f93dd9d78077674311
MD5 845f43e49b55c6b1c69d31f53a976fa8
BLAKE2b-256 740d67d234b4f989c104e5dcad18d65fc7b955ab64ea973b529251c662b7b54a

See more details on using hashes here.

File details

Details for the file bizy_ai-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: bizy_ai-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for bizy_ai-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 becb29cbe516c240411e77407be84242b37834bfd647d560f0913c94c545f15c
MD5 dd841d2b11d77a5133abd77b4988f59f
BLAKE2b-256 cdc5bde71738a38827f2568ce296832ada90e05d6583336a68480afb7c56e7ba

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