This directory contains example use cases demonstrating OctaAI's capabilities.
Goal: Create a Python project that fetches weather data for European countries, stores it in Redis, and serves it via Flask.
octa-agent goal "Write a python script that gives weather data about all countries in Europe, store in redis, create a Flask site, name it LocalWeather"What the agent will do:
- Create project directory structure
- Generate
requirements.txtwith Flask, Redis, requests - Create weather API client
- Implement Redis storage layer
- Create Flask application with routes
- Write tests
- Run tests and fix any errors
- Generate README with instructions
Goal: Deploy a GitHub project on a remote server with Nginx and SSL.
octa-agent goal "IP: 192.168.1.100, Username: root, Password: mypass123. Setup nginx, deploy github.com/mparvin/ip9.git, configure SSL for ip9.com"What the agent will do:
- SSH into the server
- Install required packages (nginx, certbot, git, runtime dependencies)
- Clone the repository
- Install application dependencies
- Start the application service
- Configure Nginx reverse proxy
- Obtain SSL certificate with certbot
- Test HTTPS endpoint
- Report deployment status
Goal: Create a Go command-line tool.
octa-agent goal "Create a Go CLI tool called 'textproc' that counts words, lines, and characters in a file"What the agent will do:
- Initialize Go module
- Create main.go with flag parsing
- Implement file reading and counting logic
- Add tests
- Build the binary
- Run tests to verify functionality
Goal: Build an automated data processing pipeline.
octa-agent goal "Create a Python script that downloads CSV from URL, cleans the data, calculates statistics, and saves results to JSON"What the agent will do:
- Create project structure
- Implement CSV downloader
- Add data cleaning functions
- Create statistical analysis module
- Implement JSON output
- Write unit tests
- Create sample data for testing
- Verify end-to-end pipeline
❌ "Make a web app" ✅ "Create a Flask web app with user authentication, PostgreSQL database, and REST API for blog posts"
❌ "Create a website" ✅ "Create a Node.js/Express website with React frontend and MongoDB"
For server tasks, include:
- IP address or hostname
- Credentials (username/password or SSH key path)
- Domain name (for SSL/proxy)
- Port numbers (if non-standard)
For very large projects, submit multiple goals:
- "Create backend API with authentication"
- "Create frontend React application"
- "Setup CI/CD pipeline"
- "Deploy to production server"
Check goal status:
octa-agent statusView detailed logs:
octa-agent logs goal_1234567890Before running examples, ensure your configuration is set:
# Initialize default config
octa-agent init
# Edit config
vim ~/.config/octaai/config.yaml
# Start daemon
octa-agentd- Ensure
octa-agentdis running - Check logs with
octa-agent logs <goal-id> - Verify LLM connection (Ollama running, API keys set)
- Check
safety.allow_pathsin config - Ensure projects_root directory exists and is writable
- For Ollama: Ensure service is running (
ollama serve) - For OpenAI/Claude: Verify API keys are set in environment or config
- Agent will retry failed tasks up to 3 times
- Check task-specific error messages in logs
- May need to adjust the goal description for clarity