Skip to content

Build LLM integration layer for command interpretation #1

@mikejmorgan-ai

Description

@mikejmorgan-ai

We need a Python module that takes natural language input and returns validated system commands.

Requirements:

  • Support Claude API and OpenAI GPT-4
  • Input: User intent string (e.g., "install docker")
  • Output: List of safe bash commands to execute
  • Include prompt templates for different command types
  • Error handling for API failures
  • Unit tests with 80%+ coverage

Example:

from cortex.ai import CommandInterpreter

interpreter = CommandInterpreter(api_key="...")
commands = interpreter.parse("install docker with nvidia support")
# Returns: ["apt update", "apt install docker.io", "apt install nvidia-docker2"]

Acceptance Criteria:

  • Works with Claude and GPT-4 APIs
  • Handles 20+ common installation scenarios
  • Validates commands before returning
  • Includes comprehensive test suite
  • Documentation with examples

Skills: Python, API integration, prompt engineering

Bounty: $200 upon merge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions