Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_code-assistant

AI Code Assistant Architecture (Repo Index, FIM & Sandbox Verify)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![AI Code Assistant Architecture (Repo Index, FIM & Sandbox Verify) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-assistant/opengraph-image)](https://archos.sageideas.dev/d/dgm_code-assistant)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-assistant)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-assistant" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="AI Code Assistant Architecture (Repo Index, FIM & Sandbox Verify) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["IDE & CLI Developers"]
  n1_1["IDE Context Proxy"]
  n2a_2["Fast FIM Model"]
  n2b_3[("Repo Semantic Index")]
  n3_4["Reasoning & Sandbox"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Context · HTTPS"| n1_1
  n1_1 -->|"2a. Inline FIM · gRPC"| n2a_2
  n1_1 -.->|"2b. Fetch code · gRPC"| n2b_3
  n2a_2 -->|"3a. Edit & · HTTPS"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • IDE & CLI DevelopersSTATELESS
    Inline FIM + multi-file chat
  • IDE Context ProxySTATELESS
    AST slice, open tabs & diff
  • Fast FIM ModelSTATELESS
    Speculative / quantized <150ms
  • Repo Semantic IndexSTATEFUL
    AST chunks + symbol graph
  • Reasoning & SandboxSTATELESS
    Frontier LLM + test runner
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. IDE & CLI Developers → IDE Context Proxy (Context)[HTTPS]
  2. IDE Context Proxy → Fast FIM Model (Inline FIM)[gRPC]
  3. IDE Context Proxy → Repo Semantic Index (Fetch code)[gRPC]
  4. Fast FIM Model → Reasoning & Sandbox (Edit &)[HTTPS]
  5. Repo Semantic Index → Reasoning & Sandbox (Apply)[Async]
  6. Reasoning & Sandbox → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →