Skip to main content
Each task in this document includes clear instructions, example commands, and best practices to help you get the most from BLACKBOX CLI.

Create new projects from scratch

Build a complete web application
Suppose you want to create a full-featured web application with modern technologies.
1

Start BLACKBOX CLI session

2

Request project creation

3

Add advanced features

4

Set up development environment

Tips:
  • Start with a clear description of what you want to build
  • Ask for modern best practices and technologies
  • Request proper project structure and organization
Generate API backends
Suppose you need to create a REST API for your application.
1

Specify API requirements

2

Add database integration

3

Implement authentication

4

Add comprehensive endpoints

Tips:
  • Specify the database and ORM you prefer
  • Request proper error handling and validation
  • Ask for API documentation generation

Debug and fix existing code

Suppose you’ve encountered errors in your application and need to identify and fix them quickly.
1

Describe the problem

2

Let BLACKBOX CLI analyze the issue

3

Apply the recommended fix

4

Test the solution

Tips:
  • Provide specific error messages when available
  • Mention the steps to reproduce the issue
  • Ask for explanations of why the bug occurred

Improve and optimize existing code

Suppose you need to enhance the performance and maintainability of your codebase.
1

Identify optimization opportunities

2

Apply performance improvements

3

Refactor for better maintainability

4

Add modern patterns

Tips:
  • Ask for specific performance metrics and improvements
  • Request explanations of optimization techniques used
  • Focus on one area at a time for manageable changes

Add new features to existing projects

Suppose you want to extend your application with additional functionality.
1

Analyze current architecture

2

Implement the new feature

3

Integrate with existing components

4

Add supporting features

Tips:
  • Consider how new features integrate with existing code
  • Ask for consistent styling and user experience
  • Request proper testing for new functionality

Set up development environments

Suppose you need to configure a complete development environment for your project.
1

Configure build tools

2

Add development server

3

Set up testing environment

4

Add code quality tools

Tips:
  • Ask for modern development best practices
  • Request configuration for your specific tech stack
  • Include deployment preparation in your setup

Generate comprehensive tests

Suppose you need to add thorough testing coverage to your application.
1

Analyze testing needs

2

Generate unit tests

3

Add integration tests

4

Create end-to-end tests

Tips:
  • Ask for tests that cover edge cases and error conditions
  • Request both positive and negative test scenarios
  • Include tests for user interactions and API calls

Deploy applications

Suppose you need to deploy your application to production.
1

Prepare for deployment

2

Configure deployment platform

3

Set up CI/CD pipeline

4

Configure monitoring

Tips:
  • Specify your preferred deployment platform
  • Ask for environment-specific configurations
  • Include monitoring and error handling setup

Work with databases

Suppose you need to design and implement database functionality.
1

Design database schema

2

Set up database connection

3

Create database operations

4

Add advanced queries

Tips:
  • Specify your database technology and ORM preferences
  • Ask for proper indexing and performance considerations
  • Request data validation and security measures

Convert between technologies

Suppose you need to migrate or convert your project to different technologies.
1

Analyze current implementation

2

Convert components gradually

3

Update styling approach

4

Modernize JavaScript

Tips:
  • Plan migrations in small, manageable steps
  • Ask for compatibility considerations during transition
  • Request testing strategies for converted code

Learn and understand code

Suppose you need to understand an existing codebase or learn new concepts.
1

Get project overview

2

Understand specific patterns

3

Learn implementation details

4

Get improvement suggestions

Tips:
  • Ask for explanations in terms you understand
  • Request examples and comparisons to familiar concepts
  • Focus on one area at a time for better comprehension

Manage concurrent development workflows with Git worktrees

Imagine you need to tackle multiple coding tasks at the same time while keeping each Blackbox CLI instance completely separate for better context of changes and isolation of work.
1

What is Git worktrees

Git worktrees let you check out different branches from the same repository into separate folders. Each folder gets its own working directory with independent files, but they all share the same Git history. Check out the official Git worktree guide for more details.
2

Set up a new worktree

This creates a separate folder with an independent copy of your repository.
3

Launch Blackbox CLI in each worktree

4

Launch Blackbox CLI in another worktree

5

Oversee your worktrees

Tips:
  • Each worktree maintains its own file state, ideal for simultaneous Blackbox CLI sessions
  • Modifications in one worktree don’t impact others, ensuring Blackbox instances operate independently
  • All worktrees access the same Git history and remote repositories
  • For extended tasks, let Blackbox work in one worktree while you code in another
  • Choose clear folder names to quickly identify each worktree’s purpose
  • Set up your development environment in each new worktree based on your project’s needs, which may involve:
    • JavaScript projects: Installing dependencies (npm install, yarn install)
    • Python projects: Creating virtual environments or using package managers
    • Other languages: Following your project’s standard initialization steps

Ask Blackbox CLI about its own capabilities through direct queries

Want to learn more about Blackbox and its capabilities? Why not ask the agent itself for detailed insights and guidance. BlackBox CLI has access to its own documentation and can answer questions about its features and limitations.
Example queries to explore BLACKBOX AI
Start a session with blackbox and try these example prompts:
BlackBox CLI provides documentation-based answers to these questions. For executable examples and hands-on demonstrations, refer to the specific use-case sections above.
Tips:
  • Phrase your questions clearly to get precise, helpful responses
  • Follow up on answers with more detailed queries for deeper understanding
  • Use the agent’s knowledge to discover lesser-known features or optimizations
  • Compare Blackbox capabilities with other tools by asking for side-by-side explanations

Compare multiple AI implementations with multi-agent execution

Suppose you want to see different approaches to solving the same problem and choose the best implementation. The /multi-agent command runs multiple AI agents in parallel, each working on a separate Git branch.
1

Ensure you're in a Git repository

2

Use the /multi-agent command

BLACKBOX CLI will automatically:
  • Create separate branches for each agent (Claude, Blackbox, and Codex if OpenAI key is configured)
  • Run all agents in parallel
  • Each agent implements the task independently on its own branch
3

Review the implementations

4

Compare and select the best implementation

Review each implementation for:
  • Code quality and structure
  • Error handling
  • Security practices
  • Performance considerations
  • Documentation and comments
5

Merge your preferred implementation

Tips:
  • Enable Codex: Configure your OpenAI API key with blackbox configure to get a third implementation from GPT-5.2 Codex
  • Enable Gemini: Configure your GEMINI API key with blackbox configure to get a fourth implementation
  • Complex Tasks: Use /multi-agent for complex features where multiple approaches provide valuable insights
  • Security-Critical Code: Ideal for authentication, payment processing, or data handling implementations
  • Learning: Great way to see different AI coding styles and best practices
  • Branch Naming: Branches are automatically named with timestamps for easy identification
  • Git Required: This feature only works in Git-initialized directories
Example scenarios for multi-agent execution
Building a payment integration:
Creating authentication systems:
Developing complex algorithms:
Implementing data processing:
What agents are included?
Default (with BLACKBOX API key):
  • Claude: Anthropic’s Claude models - excellent for complex reasoning and detailed implementations
  • Blackbox: BLACKBOX AI models - optimized for fast, efficient code generation
Additional (with OpenAI API & GEMINI API key key):
  • Codex: OpenAI’s GPT-5.2 Codex - advanced code generation with broad language support
  • Gemini: Gemini’s implementation for the multi agent.
Each agent works independently on its own branch, allowing you to compare different architectural decisions, coding patterns, and implementation strategies. This is particularly valuable for learning and ensuring code quality.