Integrations: how it all fits together¶
Tramalia doesn't reimplement the ecosystem tools: it detects, wires and invokes them as separate programs. This section explains, tool by tool, what it is, how it's installed, what it requires and how it interacts with Tramalia and with the others.
What Tramalia requires (and what each tool requires)¶
| Requirement | Notes | |
|---|---|---|
| Tramalia (core) | Python 3.10+ only | init, doctor, close, log, evidence, handoff run with nothing else |
| Pretty mode | rich, questionary | extra pip install ".[pretty]" |
| MCP façade | mcp (SDK) | extra pip install ".[mcp]" |
| Each external tool | its own runtime | binary, Python or Node — doctor tells you per project |
Golden rule: the core governs with Python only. External tools are optional interop; if missing, Tramalia still governs and records it as a documented exception.
The integration model in 4 steps¶
flowchart LR
classDef s fill:#5b4bdb,stroke:#8c68d9,color:#ffffff;
D["1 · tramalia detect<br/><small>what stack exists</small>"]:::s --> O["2 · tramalia doctor<br/><small>what's missing and how to install it</small>"]:::s
O --> I["3 · mise install<br/><small>brings what's declared</small>"]:::s
I --> C["4 · wiring<br/><small>mise.toml · .mcp.json</small>"]:::s detectidentifies the stack → decides which gates/tools apply.doctorclassifies each tool (bootstrap / stack / feature) and shows the exact install command.mise installbrings everything declared inmise.toml(most of it).- Tramalia wires them: commands in
mise.toml(gates), servers in.mcp.json(Serena/Engram/…).
How each tool is installed (two ways)¶
Most are installed in two equivalent ways: directly (their official installer) or via mise (recommended — it's declared and auto-updates):
- Via mise (recommended):
mise use npm:repomix,mise use pipx:semgrep, etc. It stays inmise.tomlandmise upgrademaintains it. - Direct: each tool's official installer (npm, pip, brew, binary…).
tramalia doctor always shows the recommended way for your project.
How they interact with each other (through Tramalia)¶
flowchart TB
classDef core fill:#5b4bdb,stroke:#4335b0,color:#ffffff;
classDef ext fill:#eef1ff,stroke:#9a92e8,color:#2a2160;
AG["🤖 AI agent"]:::ext
SR["Serena / code graph<br/><small>decides/maps what to read (local first)</small>"]:::ext
MD["markitdown<br/><small>ingests PDF/Office</small>"]:::ext
HR["Ponytail → caveman → Headroom<br/><small>cheapen tokens</small>"]:::ext
MI["mise<br/><small>runs the gates</small>"]:::ext
EN["Engram<br/><small>remembers (N2)</small>"]:::ext
KN["notebooklm-mcp<br/><small>external knowledge (cloud)</small>"]:::ext
T["🧩 TRAMALIA<br/><small>records what was done, what was validated, what evidence remains</small>"]:::core
AG -->|navigates| SR
MD -->|Markdown context| SR
SR -->|context| HR
HR -->|fewer tokens| AG
AG -.->|public only, manual| KN
AG -->|closes task| T
T -->|mise run gates| MI
MI -->|raw output| T
T -->|opt-in export| EN In words: Serena/the code graph decide what to read, markitdown ingests documents, Ponytail→caveman→Headroom cheapen tokens in that order, mise runs the gates, Engram remembers, notebooklm-mcp answers with external documentation (cloud, manual, never with private data) — and Tramalia records what was done, what was validated and what evidence remains. Each actor does its part; Tramalia governs them, always applying the same criterion: local first, graceful degradation.
The detail pages¶
- Execution & gates — mise, git, uv, Semgrep, Gitleaks, SQLFluff, Lighthouse, Playwright, axe.
- Context & code intelligence — Serena, Repomix, CodeGraph, codebase-memory-mcp, Graphify, markitdown, notebooklm-mcp — and the criterion for choosing between them.
- Memory & efficiency — Engram, basic-memory, mem0, Ponytail, caveman, Headroom.
- Rules, skills & agents — rulesync, copier, Spec Kit, Gentle-AI, AI agents.
- Models & effort per host — matrix per CLI and detection of installed agents.
- Analytics (Python/Databricks) — data gates (
bundle, notebooks, SQL).