Skip to content

πŸ”¬ Parallel AI research orchestration tool - Deploy multiple cursor-agent workers simultaneously to conduct comprehensive research with specialized focus areas and intelligent synthesis.

License

Notifications You must be signed in to change notification settings

karayaman/cursor-cli-heavy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cursor CLI Heavy Research System

A parallel research orchestration tool that leverages multiple AI assistants to conduct comprehensive research on any topic. The system spawns multiple cursor-agent workers in parallel, each with specialized focus areas, then synthesizes their findings into a unified analysis.

πŸš€ Features

  • Parallel Research: Deploy 2-8 AI research assistants simultaneously
  • Intelligent Orchestration: Automatic planning and role assignment based on query complexity
  • Specialized Focus Areas: Each assistant tackles different aspects (facts, analysis, criticisms, case studies, etc.)
  • Comprehensive Synthesis: Final unified report combining all perspectives
  • Flexible Output: Support for both Markdown and plain text formats
  • Directory Analysis: Optional analysis of specific codebases or project directories
  • Organized Output: Timestamped, structured output directories for easy organization

πŸ“‹ Prerequisites

  • Cursor CLI: The system requires cursor-agent to be installed and available in your PATH
  • Python 3.13: For running the orchestration system

Installing Cursor CLI

curl https://cursor.com/install -fsS | bash

Verify installation:

cursor-agent --help

πŸ› οΈ Installation

  1. Clone or download the project:
git clone https://github.com/karayaman/cursor-cli-heavy.git
cd cursor-cli-heavy
  1. Create and activate virtual environment (recommended):
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

🎯 Usage

Interactive Mode

Run without arguments to enter interactive mode:

python main.py

The system will prompt you for:

  • Research query
  • Output format (markdown/text)
  • Working directory (optional)

Command Line Mode

python main.py "Your research query here" [options]

Options

  • -f, --format {markdown,text}: Output format (default: markdown)
  • -w, --workdir PATH: Working directory to analyze (absolute path)
  • --no-prompt: Skip confirmation and run immediately

πŸ“ Output Structure

The system creates organized output directories with timestamps:

outputs/
└── 2024-01-20-your-research-topic/
    β”œβ”€β”€ research-plan.md           # Initial research strategy
    β”œβ”€β”€ planning-session.log       # Orchestrator planning output
    β”œβ”€β”€ orchestration-prompt.md    # Orchestrator instructions
    β”œβ”€β”€ assistants/
    β”‚   β”œβ”€β”€ ra-1-findings.md      # Research Assistant 1 findings
    β”‚   β”œβ”€β”€ ra-2-findings.md      # Research Assistant 2 findings
    β”‚   β”œβ”€β”€ ra-3-findings.md      # Research Assistant 3 findings
    β”‚   └── ra-4-findings.md      # Research Assistant 4 findings
    └── final-analysis.md         # Synthesized comprehensive report

🧠 How It Works

1. Planning Phase

  • An orchestrator AI analyzes your query
  • Determines optimal number of research assistants (2-8)
  • Assigns specialized focus areas to each assistant

2. Parallel Research Phase

  • Multiple cursor-agent instances run simultaneously
  • Each assistant researches from their specific angle:
    • RA-1: Factual research and direct information
    • RA-2: Analysis and metrics
    • RA-3: Alternative perspectives and criticisms
    • RA-4: Case studies and examples
    • RA-5: Implementation challenges and risks
    • RA-6: Future trends and research gaps
    • RA-7: Ethical, legal, and societal implications
    • RA-8: Contrarian views and edge cases

3. Synthesis Phase

  • A synthesis AI combines all findings
  • Creates executive summary, key findings, and recommendations
  • Identifies areas of agreement and disagreement

πŸ”§ Project Structure

cursor-cli-heavy/
β”œβ”€β”€ main.py              # Entry point and argument parsing
β”œβ”€β”€ ccheavy.py          # Core CCHeavy class and orchestration logic
β”œβ”€β”€ requirements.txt    # Python dependencies
└── venv/              # Virtual environment (created after setup)

βš™οΈ Configuration

The system is designed to work out-of-the-box with sensible defaults:

  • Default assistants: 4 (automatically adjusted based on query complexity)
  • Maximum assistants: 8
  • Default format: Markdown
  • Model: GPT-5 (via cursor-agent)

🎨 Example Queries

Technology Research

python main.py "Quantum computing applications in cryptography"

Business Analysis

python main.py "Market opportunities for sustainable packaging"

Codebase Analysis

python main.py "Performance bottlenecks in this web application" -w /path/to/webapp

Academic Research

python main.py "Recent advances in neural network interpretability"

Game Development

python main.py "Create a 2D Tetris game using HTML, CSS, and JavaScript. At the synthesis step, I want it to be implemented in the specified directory." -w /path/to/game/directory

🚨 Troubleshooting

"cursor-agent command not found"

  • Ensure Cursor CLI is installed: curl https://cursor.com/install -fsS | bash
  • Restart your terminal after installation
  • Verify with: cursor-agent --help

Empty or Failed Assistant Outputs

  • The system includes automatic retry logic
  • Check assistants/ra-X-stderr.log files for error details
  • Ensure you have a stable internet connection
  • Verify your Cursor CLI authentication

Permission Errors

  • Ensure the working directory (if specified) is readable
  • Check that the current directory is writable for output creation

πŸ”’ Security Notes

  • All outputs are saved to isolated timestamped directories
  • Temporary directories are automatically cleaned up

πŸ“š Dependencies

  • colorama: Terminal color output (fallback included if not available)
  • cursor-agent: AI research agent (external dependency)

🀝 Contributing

This is a research orchestration tool. Contributions welcome for:

  • Additional output formats
  • Enhanced error handling
  • Performance optimizations
  • New assistant specialization areas

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Note: This tool requires an active Cursor CLI installation and internet connectivity for AI model access. The quality of research depends on the capabilities of the underlying cursor-agent and GPT-5 model.

About

πŸ”¬ Parallel AI research orchestration tool - Deploy multiple cursor-agent workers simultaneously to conduct comprehensive research with specialized focus areas and intelligent synthesis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages