# Dark AI Professional

Professional AI coding assistant. Chat with all major AI APIs: OpenAI, Claude (Anthropic), Google Gemini, Ollama, Groq, Mistral, and OpenRouter. Generate code, refactor, debug, explain, and get intelligent assistance.

## Features

- **Multi-AI Provider Support**: OpenAI (GPT-4, GPT-3.5), Anthropic (Claude 3), Google (Gemini), Ollama (local), Groq, Mistral, OpenRouter
- **AI Chat Interface**: Dark-themed chat panel with conversation history
- **Code Generation**: Turn natural language into code
- **Smart Refactoring**: AI-powered code improvements
- **Code Explanation**: Understand complex code instantly
- **Bug Detection & Fixing**: Find and fix issues automatically
- **Test Generation**: Create comprehensive unit tests
- **Comment Generation**: Add helpful documentation

## Supported AI Providers

| Provider   | Models / Notes                    |
|-----------|------------------------------------|
| OpenAI    | GPT-4 Turbo, GPT-3.5 Turbo        |
| Anthropic | Claude 3 Opus, Sonnet, Haiku       |
| Google    | Gemini Pro                        |
| Ollama    | Local models (Llama, etc.)        |
| Groq      | Mixtral, fast inference          |
| Mistral   | Mistral Large                     |
| OpenRouter| Multiple models via one API       |

## Commands

- **Dark AI: Open Dark AI** – Open AI chat panel
- **Dark AI: Explain Code** – Get code explanations (right-click selected code)
- **Dark AI: Refactor Code** – Improve selected code
- **Dark AI: Generate Code** – Create code from description
- **Dark AI: Fix Code Issues** – Automatically fix bugs
- **Dark AI: Add Comments** – Generate documentation
- **Dark AI: Generate Tests** – Create unit tests
- **Dark AI: Ask Question** – Ask anything about code
- **Dark AI: Clear Chat** – Clear conversation
- **Dark AI: Select AI Provider** – Switch between OpenAI, Claude, Gemini, etc.

## Keyboard Shortcuts

- `Ctrl+Shift+D` (Mac: `Cmd+Shift+D`) – Open Dark AI chat

## Configuration

Open VS Code Settings and search for **Dark AI Professional**:

```json
{
  "darkai.provider": "openai",
  "darkai.openai.apiKey": "sk-...",
  "darkai.openai.model": "gpt-4-turbo-preview",
  "darkai.anthropic.apiKey": "sk-ant-...",
  "darkai.google.apiKey": "...",
  "darkai.groq.apiKey": "...",
  "darkai.mistral.apiKey": "...",
  "darkai.openrouter.apiKey": "...",
  "darkai.ollama.endpoint": "http://localhost:11434",
  "darkai.maxTokens": 4096,
  "darkai.temperature": 0.7,
  "darkai.systemPrompt": "You are Dark AI Professional, an expert coding assistant."
}
```

## Requirements

- Visual Studio Code 1.75.0 or higher
- API key(s) for your chosen provider(s)

**Note:** If the extension icon does not appear, copy `logo.png` from the `ClaudeAI-Pro` folder into `DarkAI-Professional`.

## Changelog

### Version 2.0.0
- Initial release
- Multi-AI provider support (OpenAI, Anthropic, Google, Ollama, Groq, Mistral, OpenRouter)
- Chat interface with all providers
- Explain, refactor, fix, generate code, add comments, generate tests
- PowerShell and Node.js initialization support

## License

MIT
