# Context-Layer — tide-runtime ⟂ TmuxAI

**Date:** 2026-06-05

## Shared language

- **tide-runtime** — new name for **hermes-navigator**; the always-on,
  context-aware multi-domain terminal runtime (Python under
  `runtime/tide-runtime`, specs under `rispecs/tide-runtime`).
- **miadi-agent** — the Hermes-derived execution runtime/service identity
  (`runtime/hermes-agent`, boundary `#250`). tide-runtime is its terminal/
  context-sensing surface.
- **TmuxAI** — Go terminal assistant that lives inside tmux, reads pane content,
  and acts in a dedicated exec pane. Reference fork, not a dependency.
- **domain / multi-domain** — tide-runtime's unit of context: a development
  space (Miadi, Aureon, Medicine Wheel) spanning many tmux windows/panes.
- **scaffolding / harness** — emerging academic vocabulary: scaffolding =
  preparing the agent's system prompt + tool schemas; harness = runtime
  orchestration and safety enforcement (OpenDev, arXiv 2603.05344).
- **squashing** — TmuxAI's term for summarizing chat history to stay within a
  token budget (a knowledge-organization / context-compaction concern).

## Fields in scope (MECE)

1. **Human-computer interaction** — terminal/pane observation, approval UX,
   ambient (watch) assistance, multiplexer ergonomics.
2. **Software architecture / runtime harness** — observe→act loop, exec-pane
   isolation, provider dispatch, session continuity, safety whitelists.
3. **Knowledge organization** — knowledge bases, skills (auto-match, lazy load,
   budgets), context squashing, provenance of injected context.
4. **Agentic software engineering** — CLI agents operate on files not editor
   buffers; harness/scaffolding terminology; multi-agent delegation.

Out of scope: narrative protocol (NCP) internals, Miadi product UI, payment.

## Provenance notes

- Primary external source: TmuxAI README (live-fetched 2026-06-05).
- Internal substrate (codex branch `codex/identify-infrastructure-for-context-
  aware-terminal-managemen-2026-04-30`): Survey of Terminal Session Management &
  AI-Enabled Agents (2026), hermes-navigator v1.1 master spec, multi-domain
  context research.
- Ecosystem comparators surveyed: tmuxp, Tmuxinator, Teamocil, WezTerm,
  iTerm2, Aider, Goose, OpenCode, Warp.

## Source quality rules

Prefer: project READMEs/official docs (TmuxAI, WezTerm, tmuxp), peer/preprint
research (arXiv OpenDev), and the repo-local 2026 survey. Treat blog benchmarks
as practitioner-tier (directional, not authoritative).

## Placement & crosswalk

- Packet lives here: `foundations/tide-runtime-tmuxai/` (consumed in Miadi).
- Crosswalk: companion RISE spec at
  `rispecs/tide-runtime/13-tmuxai-observe-act-harness.spec.md`.
- Related issues: `#265` (Hermes Navigator v1), `#250` (miadi-agent runtime
  boundary), `#254` (A2A/promotion), `#239` (chart/PDE routing).
- QMD: index this packet under `tide-runtime` and `terminal-agent`.
