GitHub Copilot Free Tier Setup¶
This guide covers setting up GitHub Copilot Free tier for development on this project.
Enabling Copilot Free Tier¶
- Go to GitHub Copilot Settings
- Select Copilot Free plan
- Accept the terms and enable
Reference: GitHub Copilot Plans
Free Tier Limits¶
| Feature | Monthly Limit |
|---|---|
| Code completions | 2,000 |
| Chat messages | 50 |
| Model | GPT-4o |
| Editors supported | VS Code, JetBrains, Neovim |
Tips to stay within limits:
- Use chat for complex questions, completions for boilerplate
- Disable Copilot in non-code files (markdown, config)
- Focus usage on implementation, not exploration
VS Code Setup¶
Required Extensions¶
-
GitHub Copilot (
GitHub.copilot) -
Core completion engine
-
GitHub Copilot Chat (
GitHub.copilot-chat) - Chat interface for questions
Recommended Extensions (for this project)¶
- Python (
ms-python.python) - Python IntelliSense - Pylance (
ms-python.vscode-pylance) - Python type checking - ESLint (
dbaeumer.vscode-eslint) - TypeScript linting - Tailwind CSS IntelliSense (
bradlc.vscode-tailwindcss) - Tailwind autocomplete - Prettier (
esbenp.prettier-vscode) - Code formatting
VS Code Settings¶
Add to .vscode/settings.json (user or workspace):
Project-Specific Context¶
This project includes a Copilot instructions file at: .github/copilot-instructions.md
This file provides Copilot with:
- Tech stack information (FastAPI, React, YOLO26, Nemotron)
- Coding conventions and patterns
- Domain-specific terminology
- What NOT to suggest
Best Practices¶
Effective Prompting¶
# Good: Specific context in comment
# Create SQLAlchemy query to get events for camera with risk_score > 50
async def get_high_risk_events(db: AsyncSession, camera_id: str):
...
# Bad: Vague request
# Get events
def get_events():
...
When to Use Chat vs Completions¶
Use Chat (50/month) for:
- Explaining existing code
- Architecture questions
- Debugging complex issues
- Learning unfamiliar APIs
Use Completions (2,000/month) for:
- Function implementations
- Test case generation
- Boilerplate code
- Repetitive patterns
Context Awareness¶
Copilot works best when it can see related code:
- Keep relevant files open in editor tabs
- Write descriptive function/variable names
- Add type hints (Python) or interfaces (TypeScript)
- Include docstrings for complex functions
Review All Suggestions¶
Always review Copilot suggestions for:
- Security: SQL injection, path traversal, XSS
- Correctness: Edge cases, error handling
- Performance: Async patterns, N+1 queries
- Style: Match project conventions
Troubleshooting¶
Copilot Not Suggesting¶
- Check Copilot status in VS Code status bar
- Verify you're signed in:
GitHub Copilot: Sign In - Check file type is enabled in settings
- Restart VS Code
Poor Quality Suggestions¶
- Add more context via comments
- Open related files in editor
- Check
.github/copilot-instructions.mdis present - Use more specific variable/function names
Rate Limit Reached¶
If you hit the monthly limit:
- Disable Copilot:
GitHub Copilot: Disable - Use Claude Code or other alternatives
- Wait for monthly reset
- Consider upgrading to Copilot Pro
Related Resources¶
- GitHub Copilot Documentation
- VS Code Copilot Guide
- Project instructions: .github/copilot-instructions.md
- Code review prompt: .github/prompts/code-review.prompt.md