Commit e08a3e1
feat: SwarmSync routing, context compaction, PTY sessions, MCP runtime, pipeline workers, Telegram bridge, desktop fixes
Core agent improvements:
- SwarmSync routing enabled and verified (routes calls to best model via complexity score)
- Context compaction: _maybe_compact() distils old turns at 2500 token/30 turn threshold
keeping live window of 12 turns; distilled summaries injected into system prompt
- /api/routing/status endpoint for live SwarmSync diagnostics
- Model badge suppression for default model in ChatView
New subsystems:
- PTY session manager (cato/orchestrator/pty_session.py) + API routes
- MCP runtime server (cato/mcp/runtime.py) with JSON-RPC tool dispatch
- Pipeline workers + models + phase validation (cato/pipeline/)
- Memory upkeep service (cato/core/memory_upkeep.py)
- Telegram bridge (cato_telegram_bridge.py) + autostart installer
Desktop app:
- TerminalPane and InteractiveCLIView components
- Updated Sidebar, ChatView, SettingsView, useChatStream hook
- Tauri sidecar improvements (sidecar.rs, build.rs)
- Build script improvements (build_release.ps1, pre_bundle.py)
Tests (1661 passing, 100%):
- test_compaction.py (19 tests): compaction trigger/no-op/storage/formatting
- test_mcp_runtime.py, test_gateway_mcp.py, test_memory_upkeep.py
- test_pty_session.py, test_pty_routes_integration.py
- test_pipeline_runtime.py, test_router.py, test_start_channel.py
- test_empire_cli.py, test_port_fallback_integration.py
Docs: setup guides (Windows/macOS/Linux), audit pipeline, remote-MCP, TESTING
GitHub Actions: python-verify.yml CI workflow
Genesis_meta_agent.py: reference implementation for meta-agent design
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 73e0169 commit e08a3e1
87 files changed
Lines changed: 12500 additions & 417 deletions
File tree
- .github/workflows
- cato
- api
- audit
- core
- mcp
- monitoring
- orchestrator
- personalization
- pipeline
- ui
- desktop
- scripts
- src-tauri
- src
- src
- components
- hooks
- views
- docs
- audits
- plans
- scripts
- tests
- pipeline
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
71 | 93 | | |
72 | 94 | | |
73 | 95 | | |
74 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
75 | 100 | | |
76 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
77 | 114 | | |
78 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
79 | 121 | | |
80 | | - | |
| 122 | + | |
| 123 | + | |
81 | 124 | | |
82 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
83 | 166 | | |
84 | 167 | | |
85 | 168 | | |
| |||
0 commit comments