doc.haus Atlas Legal-document workflows on OpenCode, bound to their code
219 documents
packages/tui/AGENTS.md

TUI experiments framework: opt-in UI experiments live in the registry in dialog-experiments.tsx gated by config keys; the framework is permanent — graduate by removing the entry, never the infrastructure, and an empty registry is intentional. Read before adding or graduating TUI experiments.

TUI Experiments

  • Temporary, opt-in UI experiments belong in the experiments registry in src/component/dialog-experiments.tsx, with behavior gated by the matching config.experimental key.
  • The Experiments framework is permanent infrastructure. Keep the registry, dialog, settings persistence, toggle handling, and UI entry point even when there are no active experiments.
  • Graduating an experiment means removing only its registry entry and feature-specific gate, making that feature's behavior unconditional. Abandoning an experiment means removing its entry, gate, and experimental behavior.
  • Do not remove or simplify away the reusable Experiments infrastructure because the registry is empty. An empty registry is intentional and ready for future experiments, not dead code.