โšก Subsystem Deep Dive

services/

๐Ÿ“ services/ ๐Ÿ“„ 8 files

Tutorial: services

The services project implements the core cognitive architecture of an AI agent. It manages the agent's limited Context Window through intelligent compaction and maintains persistent Memory by extracting key insights from conversations. The system orchestrates a Tool Execution Pipeline that connects to external capabilities via MCP and LSP, while a unified API Client handles cloud connectivity and Telemetry provides comprehensive system observability.

flowchart TD A0["Context Compaction"] A1["Tool Execution Pipeline"] A2["Memory & Knowledge Extraction"] A3["API Client & Connectivity"] A4["Model Context Protocol (MCP)"] A5["Language Server Integration (LSP)"] A6["Telemetry & Observability"] A0 -->|"Reads memory content"| A2 A0 -->|"Uses API for token counting"| A3 A0 -->|"Logs compaction events"| A6 A1 -->|"Integrates MCP tools"| A4 A1 -->|"Logs tool usage"| A6 A2 -->|"Checks compaction config"| A0 A2 -->|"Logs extraction events"| A6 A3 -->|"Logs auth & limits"| A6 A4 -->|"Logs configuration events"| A6 A5 -->|"Logs server errors"| A6

Chapters

  1. API Client & Connectivity
  2. Memory & Knowledge Extraction
  3. Context Compaction
  4. Tool Execution Pipeline
  5. Model Context Protocol (MCP)
  6. Language Server Integration (LSP)
  7. Telemetry & Observability

Generated by Code IQ

Files in this section