← Project archive
EXPLORATION / OPEN SOURCE
Claude Code Predictor
An AI-assisted code prediction and developer productivity tool powered by Claude, designed to anticipate code patterns, accelerate development workflows, and reduce repetitive engineering effort through intelligent context-aware suggestions and automation.
PRESERVED PROJECT DOCUMENTATION
Claude Code Predictor
A VS Code extension that provides AI-powered code suggestions using Anthropic's Claude models.
Features
- Real-time code predictions and suggestions
- Support for multiple programming languages
- Two options for using Claude:
- Cloud-based Claude API
- Local Claude Code CLI (if installed)
- Customizable settings for prediction behavior
- Keyboard shortcuts for triggering predictions
Installation
- Install the extension from the VS Code Marketplace
- Configure your Claude API key or set up Claude Code CLI
Setting Up
Option 1: Using Claude API
- Get an API key from Anthropic
- In VS Code, either:
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) and search for "Claude Code Predictor: Set API Key" - When prompted automatically on first use
- Press
- Enter your API key when prompted
Option 2: Using Claude Code CLI (Local)
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) and search for "Claude Code Predictor: Setup Claude Code CLI" - Follow the instructions in the setup guide
- Once installed, the extension will automatically detect and use Claude Code CLI
Using the Extension
- As you type, the extension will automatically suggest code completions
- Press
Alt+Cto manually trigger a code suggestion - Code suggestions appear as standard VS Code completions
Configuration Options
claudeCodePredictor.apiKey: Your Claude API key (stored securely)claudeCodePredictor.model: The Claude model to use for predictionsclaudeCodePredictor.contextLines: Number of preceding lines to use for contextclaudeCodePredictor.useClaudeCodeCLI: Whether to use local Claude Code CLIclaudeCodePredictor.claudeCodePath: Custom path to Claude Code binary (if not in PATH)
Security
- Your API key is stored in VS Code's secure storage
- When using Claude Code CLI, no API key is required as authentication is handled by the CLI
- Code context is only sent to Claude's API or processed locally with Claude Code CLI
Troubleshooting
API Key Issues
If you're having trouble with your API key:
- Try setting it again with the "Claude Code Predictor: Set API Key" command
- Check that the API key is valid in your Anthropic account
- Try clearing and re-entering your API key
Claude Code CLI Issues
If Claude Code CLI isn't working:
- Verify installation with
claude-code --versionin your terminal - Check that you've authenticated with
claude-code auth login - Restart VS Code after installing Claude Code
Privacy & Data Usage
- Code context is sent to Claude API for processing
- No code is stored by the extension beyond the current session
- When using Claude Code CLI, processing happens through your local account
License
MIT