Ptah - AI Coding Orchestra
The AI coding orchestra for VS Code, powered by Claude Agent SDK
Ptah is a VS Code extension that brings intelligent, project-adaptive AI agents directly into your editor. With workspace intelligence, a built-in MCP server, and native SDK integration, Ptah orchestrates AI-assisted development without ever leaving VS Code.
Features
Core Features
- Integrated Chat Sidebar - Native VS Code chat interface with AI agents
- Visual Command Builder - Build commands through intuitive UI forms
- Smart Context Management - Visual file inclusion/exclusion with optimization suggestions
- Session Management - Multiple sessions with workspace awareness
- Real-time Analytics - Token usage, cost tracking, and productivity insights
Quick Actions
- Instant Code Review - Right-click any file for immediate AI analysis
- Test Generation - Generate comprehensive tests for your code
- Bug Detection - AI-powered bug finding and security analysis
- Documentation - Auto-generate docs for functions and classes
- Code Optimization - Performance and style improvements
Installation
Prerequisites
- VS Code 1.74.0 or higher
Install Extension
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Ptah - Coding Orchestra"
- Click Install
First Run
- Open any workspace in VS Code
- Click the Ptah icon in the Activity Bar
- Follow the welcome guide to configure your setup
Development
Setup Development Environment
# Clone the repository
git clone https://github.com/Hive-Academy/ptah-extension.git
cd ptah-extension
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Start development
code .
Running the Extension
- Open the project in VS Code
- Press
F5 to launch Extension Development Host
- Test the extension in the new VS Code window
Available Scripts
npm run compile # Compile TypeScript
npm run watch # Watch mode for development
npm run test # Run test suite
npm run lint # Lint TypeScript code
Architecture
Core Components
- Extension Host (
src/extension.ts) - Main entry point
- Core Services (
src/services/) - AI Provider, Session, Context management
- UI Providers (
src/providers/) - Webview providers for chat, analytics
- Type Definitions (
src/types/) - TypeScript interfaces
Key Services
- AgentSDKProvider - Integration with Claude Agent SDK
- SessionManager - Multi-session support with persistence
- ContextManager - Smart file inclusion and optimization
- WorkspaceManager - Project type detection and workspace integration
Configuration
Extension Settings
{
"ptah.authMethod": "auto",
"ptah.model.selected": "claude-sonnet-4-20250514",
"ptah.autopilot.enabled": false,
"ptah.enhancedPrompts.enabled": true,
"ptah.compaction.enabled": true
}
Workspace Settings
Project-specific context rules and session preferences are automatically saved to workspace settings.
Usage Guide
Basic Chat
- Click Ptah icon in Activity Bar
- Type your question in the chat input
- Press Enter or click Send
Code Review
- Right-click any file in Explorer
- Select "Ptah: Review Current File"
- View analysis in chat sidebar
Context Management
- Open Context Files tree view
- Click checkmarks to include/exclude files
- View token usage and optimization suggestions
Command Builder
- Press
Ctrl+Shift+P > "Ptah: Build Command"
- Select template from gallery
- Fill in parameters through visual form
- Execute command in chat
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Workflow
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE for details.
Links
Support
Made with care for the VS Code community