What's New
LSP Server
sage lsp β start LSP server for editor integration (stdio)
sage lsp --tcp --port 19473 β TCP mode for AI agent connections
- Custom methods:
sage/predict, sage/explain, sage/fix, sage/session
- VS Code extension scaffold with full LSP client
Agentic Loop Engine
- Session state β tracks command history, failure streaks, error patterns
- Decision engine β 3 autonomy levels: suggest, ask, auto
- Auto-fix pipeline β 9 error patterns (ModuleNotFoundError, port in use, permission denied, etc.)
- Intent detection β recognizes deploy, fix_bug, setup, refactor, publish workflows
- Circuit breaker β exponential backoff, loop detection, max retries
- Verification system β re-runs commands to confirm fixes worked
MCP Integration
sage_agentic_run β run with full retry loop
sage_agentic_fix β auto-fix last failed command
sage_agentic_session β get session context for AI
Configuration
sage.toml support for agentic + LSP settings
- Configurable: autonomy level, max retries, fix patterns, never-auto-fix list
Testing
- 33 new tests (LSP protocol + agentic loop)
- All 204 tests pass
Install / Upgrade
pip install --upgrade psycgod-sage
Live Dashboard
sage.api.marketingstudios.in/dashboard