ACE for VS Code
🔐 Account Required - This extension requires an ACE account to work.
→ Sign up for ACE | 💬 Join our Community
Without an account, the extension cannot connect to the ACE server.
Automatic Context Engine - Pattern learning for GitHub Copilot that captures what works and retrieves it when needed.
By Code Engine GmbH
Features
- 🔄 Automatic Enforcement - ace_search runs before every task, ace_learn enforced at session end (via global hooks)
- 🤖 Works with ALL agents - Not limited to ace-expert; hooks + skills fire for Copilot, Claude, CLI agents
- 🔧 Language Model Tools -
ace_search, ace_learn, ace_status, ace_get_playbook (auto-approved for search)
- 🔐 Browser-based login - Secure device code authentication (no API tokens to copy)
- 🧭 Domain shift detection - Automatically suggests re-search when you switch code areas
- 📁 Multi-Root Workspace Support - Each folder gets its own ACE configuration
- 📊 Status Panel - Real-time playbook statistics with session expiry info
- ⚙️ Configure Panel - Easy server and project setup with login support
- 🤖 Agent Files + Hooks - Auto-generates
.github/agents/, .github/hooks/, skills, and instructions
Quick Start
Step 1 is required - The extension won't work without an ACE account!
- Sign up for ACE - Create your account (required!)
- Install from VS Code Extensions marketplace
- Open Command Palette (
Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux)
- Run
ACE: Configure - opens setup panel
- Click "Login with Browser" - authenticates via your browser
- Select your organization and project
- Run
ACE: Update Agent Files - generates .github/agents/ for CI/CD AI assistants
- Start using @ace in GitHub Copilot Chat!
Commands
| Command |
Description |
| ACE: Login |
Login via browser-based device code authentication |
| ACE: Logout |
Logout and clear authentication tokens |
| ACE: Configure |
Opens webview panel to login, select organization/project |
| ACE: Show Playbook Status |
Opens webview panel showing playbook statistics |
| ACE: Bootstrap Playbook |
Initialize patterns from existing codebase (git history, docs) |
| ACE: Capture Learning |
Manually trigger learning capture |
| ACE: Clear Playbook |
Clear all learned patterns |
| ACE: Update Agent Files |
Generate/update .github/agents/ files |
| ACE: Quick Actions |
Quick access to common ACE actions |
Using ACE with Copilot
Automatic Mode (v0.4.33+ — Recommended)
ACE now enforces the search/learn cycle globally — no need to select a specific agent:
- Enable hooks: When prompted on first install, click "Enable Hooks" (or set
chat.hooks.enabled: true)
- Run
ACE: Update Agent Files to generate workspace hooks
- Start coding with any agent — ACE enforcement is automatic!
What happens automatically:
- Session start: Hook injects context telling the model to call
ace_search before work
- Domain shift: When you edit files in different directories, hook suggests re-searching
- Session end: Hook blocks until
ace_learn is called with learnings
For additional enforcement, select ace-expert in the agent picker. This adds agent-scoped hooks on top of the global ones.
Chat Commands
Alternatively, use @ace commands directly in any Copilot chat:
| Command |
Description |
@ace /search <query> |
Search for relevant patterns in the playbook |
@ace /patterns [section] |
View playbook patterns by section |
@ace /status |
Show playbook statistics |
@ace /learn |
Capture patterns from the current session |
@ace /top |
Show highest-rated patterns |
@ace /domains |
List available pattern domains |
@ace /bootstrap |
Initialize playbook from codebase |
@ace /clear --confirm |
Clear all patterns |
ACE provides 4 tools that GitHub Copilot can use automatically:
| Tool |
Description |
ace_search |
Search playbook for relevant patterns before implementing |
ace_learn |
Capture patterns and lessons learned from work |
ace_status |
Show playbook statistics |
ace_get_playbook |
Retrieve patterns filtered by section or quality |
How It Works
ACE creates a self-improving learning cycle where each session benefits from previous work:
| Step |
Action |
Description |
| 🚀 |
Start Task |
You begin work in VS Code |
| ⬇️ |
|
|
| 📖 |
Retrieve Patterns |
Copilot calls ace_search → Fetches learned strategies |
| ⬇️ |
|
|
| ⚡ |
Execute |
Copilot completes task using patterns |
| ⬇️ |
|
|
| 💡 |
Capture Learning |
Copilot calls ace_learn → Playbook grows smarter |
| ⬇️ |
|
|
| 🔄 |
Next Session |
Enhanced patterns available → Back to Start! |
SSE Streaming (v0.4.23+)
Learn and Bootstrap operations now use Server-Sent Events (SSE) for real-time progress:
/learn → Uses /traces/stream endpoint with live progress messages
/bootstrap → Uses /bootstrap/stream endpoint with live progress messages
- Automatic fallback to non-streaming endpoints if SSE is not supported
Playbook Sections
- strategies_and_hard_rules - Architectural patterns, coding principles
- useful_code_snippets - Reusable code patterns with context
- troubleshooting_and_pitfalls - Known issues, gotchas, solutions
- apis_to_use - Recommended libraries, frameworks, integration patterns
Multi-Root Workspace Support
In multi-root workspaces, each folder can have its own ACE configuration:
- Config panel shows folder name in title and header
- Per-folder settings saved to
.vscode/settings.json
- Folder picker appears when multiple folders are open
- All chat commands are folder-aware
Agent Files (v0.4.16+)
ACE generates GitHub Copilot agent files for automatic pattern learning. Run ACE: Update Agent Files to create:
.github/
├── hooks/ace-hooks.json # Global hooks (SessionStart, PostToolUse, Stop)
├── instructions/ace.instructions.md # Path-specific instructions (applyTo: "**/*")
├── skills/ace-pattern-learning/SKILL.md # Agent Skill for auto-trigger
├── agents/ace.agent.md # ace-expert agent (with agent-scoped hooks)
├── agents/ace-learn.agent.md # Learning capture agent
└── .ace-version.json # Version tracking
Global Hooks (v0.4.33+)
Global hooks fire for ALL agents (not just ace-expert):
- SessionStart: Injects "MUST call ace_search" context at session start
- PostToolUse: Detects directory changes and suggests domain-aware re-search
- Stop: Blocks session end until
ace_learn is called
Requires chat.hooks.enabled: true (VS Code 1.109+, Preview).
Agent Skills
Agent Skills are auto-triggered by Copilot based on your prompt. Keywords like "implement", "build", "fix", or "debug" automatically load ACE patterns. The skill is also bundled inside the extension VSIX via the chatSkills contribution point.
Configuration
Workspace Settings
Configure in VS Code Settings (Cmd+,) or .vscode/settings.json:
| Setting |
Description |
Default |
ace.projectId |
ACE Project ID (format: prj_xxxxx) |
"" |
ace.orgId |
ACE Organization ID (format: org_xxxxx) |
"" |
ace.serverUrl |
ACE API Server URL |
https://ace-api.code-engine.app |
ace.automation.level |
Automation level: manual, smart, aggressive |
smart |
ace.automation.showStatusBar |
Show ACE status in status bar |
true |
Requirements
- VS Code (v1.115.0+)
- GitHub Copilot Chat extension
- ACE account at ace-ai.app
Need help? Have questions? Join our community!
Links
License
MIT - Code Engine GmbH