Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

YogliB/zed-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Zed Copilot

AI-powered chat assistant for Zed IDE

CI License: MIT

Zed Copilot brings conversational AI directly into your editor. Ask questions about code, get explanations, and collaborate with AIβ€”all without leaving Zed.


What Can It Do?

  • πŸ’¬ Interactive Chat β€” Converse with AI about your code
  • πŸ€– Multiple AI Providers β€” Choose OpenAI or Anthropic Claude
  • πŸ“š Conversation History β€” Maintain context across exchanges
  • πŸš€ Real-time Streaming β€” See responses as they're generated
  • πŸ“ Code Context β€” Reference files, selections, and cursor position

Status: Early development. Chat interface coming Q2 2025. Foundation, provider integration, and HTTP layer complete.


Quick Start

Takes 5 minutes β€” Get the extension running in Zed.

Prerequisites

Install

# Clone repository
git clone https://github.com/zed-industries/zed-copilot.git
cd zed-copilot

# Install git hooks (optional but recommended)
bash scripts/setup-hooks.sh

# Build extension
cargo build --release

# Open Zed β†’ Extensions β†’ Install Dev Extension
# Select the zed-copilot directory

Configure

Add to your Zed settings.json:

{
  "zed_copilot": {
    "enabled": true,
    "provider": "openai",
    "openai": {
      "api_key": "${OPENAI_API_KEY}",
      "model": "gpt-4o"
    }
  }
}

Set your API key:

export OPENAI_API_KEY="sk-..."

Verify

Open Zed logs (zed: open log) and look for:

[Zed Copilot] Extension initialized

βœ… You're ready! See docs/ for detailed setup and configuration.


Development Setup

After cloning, install git hooks to ensure code quality:

bash scripts/setup-hooks.sh

This enables pre-commit and pre-push hooks that:

  • βœ… Format and lint checks on commit (fast, ~5-10 sec)
  • βœ… Smart test validation on push (~20-45 sec, tests changed modules only)

Learn more: Git Hooks Documentation


What Works Now

Feature Status
Extension foundation βœ… Complete
OpenAI integration βœ… Complete
Anthropic integration βœ… Complete
Configuration system βœ… Complete
HTTP client & retry βœ… Complete
Streaming responses βœ… Complete
E2E testing βœ… Complete
Chat interface πŸ“… Q2 2025
Code completions πŸ“… Q3 2025+

πŸ“š Documentation

Complete documentation: docs/

Quick Links

Getting Started:

Configuration:

Development:

Technical:

Other:


Supported AI Models

OpenAI

  • GPT-4o β€” Best for general coding (recommended)
  • o1 β€” Advanced reasoning for complex problems
  • o3-mini β€” Lightweight reasoning model

Anthropic Claude

  • Claude Opus 4.1 β€” Most powerful, best for complex analysis
  • Claude Sonnet 4 β€” Balanced speed and quality (recommended)
  • Claude Haiku 4.5 β€” Fastest, most affordable

πŸ“– See Configuration Examples for model comparison and configs.


Roadmap

Current Phase: Phase 2.4 β€” E2E Testing βœ…

Timeline:

  • βœ… Phase 1 β€” Foundation complete
  • βœ… Phase 2 β€” Provider integration, HTTP & streaming complete
  • πŸ“… Phase 3 β€” Chat interface (Q2 2025) 🎯 Next milestone
  • πŸ“… Phase 4 β€” GitHub Copilot LSP & completions (Q3 2025+)

πŸ“– See ROADMAP.md for detailed timeline.


Contributing

Contributions welcome! Please:

  1. Read CONTRIBUTING.md
  2. Follow coding standards in zed-rules/AGENTS.md
  3. Run make check-all before submitting
  4. Write tests for new features

Development

Build Commands

make fmt          # Format code
make clippy       # Check warnings
make test         # Run tests
make check-all    # Run all checks

Project Structure

zed-copilot/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ lib.rs              # Main extension
β”‚   β”œβ”€β”€ providers/          # AI provider implementations
β”‚   └── config/             # Configuration system
β”œβ”€β”€ tests/                  # Integration tests
β”œβ”€β”€ docs/                   # Documentation
└── Cargo.toml              # Dependencies

πŸ“– See DEVELOPMENT.md for architecture details.


Troubleshooting

Extension won't load?

  • Verify Rust is installed: rustup --version
  • Rebuild: cargo clean && cargo build --release
  • Check logs: zed: open log

API errors?

  • Verify API key is set: echo $OPENAI_API_KEY
  • Check settings.json syntax
  • Ensure model name is correct

πŸ“– See SETUP.md for comprehensive troubleshooting.


License

MIT License β€” Free to use, modify, and distribute.


Support


Built with ❀️ for the Zed community

Next Milestone: Chat Interface (Phase 3, Q2 2025) πŸš€

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors