Lemon Documentation

May 27, 2026 · View on GitHub

Canonical documentation hub for the Lemon AI assistant platform. For quickstart and project overview, see the root README.md. For agent development context, see AGENTS.md.


How to Use This Directory

  • Start here if you need to understand how Lemon works at a system level.
  • Per-app docs live in each app's own README.md and AGENTS.md (see apps/*/).
  • Every file in docs/ must be registered in docs/catalog.exs with owner, last_reviewed, and max_age_days. Run mix lemon.quality to enforce freshness.

User Guides

DocWhat it covers
index.mdPublic docs-site homepage: positioning, entry points, current launch stage
install.mdShort install landing page for source install and release-artifact status
compare.mdProduct comparison against adjacent assistant, CLI, harness, and self-hosted runtime categories
demo.mdDeterministic local demo paths for runtime health, Web ops, TUI, support bundles, and docs quality
support.mdPublic support boundaries, issue data requirements, support-bundle commands, and security-reporting path
user-guide/setup.mdFull setup walkthrough: install, configure, run, Telegram setup
user-guide/migrate-from-hermes.mdPreview-first migration path for Hermes memories, skills, config, secrets, and session recall
user-guide/skills.mdSkills: listing, installing, inspecting, synthesizing drafts
user-guide/memory.mdMemory documents, session search, retention management
user-guide/adaptive.mdAdaptive routing, routing feedback, skill synthesis pipeline
user-guide/rollout.mdFeature promotion gates, rollback procedure, promotion checklist

Architecture

DocWhat it covers
architecture/overview.mdSystem design, app map, data flow, key abstractions
architecture_boundaries.mdDependency policy between umbrella apps, enforcement via mix lemon.quality
beam_agents.mdBEAM/OTP architecture: process-per-agent, supervision, message passing
model-selection-decoupling.mdModel selection design: provider abstraction, routing, fallback

Operations

DocWhat it covers
long-running-agent-harnesses.mdLong-running harness patterns, eval loops, and runtime validation workflows
testing.mdCanonical local test lanes and CI parity guidance
config.mdTOML configuration reference (providers, runtime, gateway, profiles, tools)
extensions.mdExtension/plugin API, tool hooks, conflict resolution
release/release_checklist_and_support_policy.md1.0 release-candidate checklist, rollback checklist, and support boundaries
security/safety.mdPlain-language Lemon safety model, recommended defaults, and support-bundle guidance
security/agent-safety-contract.mdAgent safety layers: tool policies, approvals, memory screening, skill audits, telemetry

Runtime Core

DocWhat it covers
assistant_bootstrap_contract.mdHow sessions bootstrap: system prompt assembly, skill injection, context setup
context.mdContext management, compaction, branch summarization, token budgets
subagent-parent-questions.mdDesign for the ask_parent clarification path from child subagents back to their parent session
runtime-hot-reload.mdHot code reload system for live-patching without restarts
telemetry.mdTelemetry events, observability, correlation IDs, monitoring

Product and Capability Docs

Architecture Diagrams

All diagrams are in docs/diagrams/ as both Excalidraw source and exported SVG:

DiagramWhat it shows
architecture.excalidraw / .svgComplete system architecture: clients, control plane, routing, infrastructure, core
data-flow.excalidraw / .svgFour data paths: direct, control plane, channel, automation
event-bus.excalidraw / .svgEvent bus topology and pub/sub messaging
orchestration.excalidraw / .svgRun orchestration: scheduling, lane queues, engine dispatch
supervision-tree.excalidraw / .svgOTP supervision tree across all 17 applications
tool-execution.excalidraw / .svgTool execution pipeline: registry, policy, approval, execution

LocationContents
apps/*/README.mdPer-app documentation (architecture, API, usage, dependencies)
apps/*/AGENTS.mdPer-app AI agent context (key files, patterns, testing, gotchas)
AGENTS.md (root)Project-wide agent guide (navigation, team composition, conventions)
README.md (root)5-minute orientation: what it is, quickstart, feature summary, doc links
docs/plans/lemon-1.0-mainstream-readiness.mdLiving launch goal: mainstream readiness workstreams, milestones, and acceptance criteria
config/Elixir application configuration (config.exs, runtime.exs, etc.)
examples/config.example.tomlAnnotated example TOML configuration

Maintenance Rules

  1. Register every doc in docs/catalog.exs with owner, last_reviewed, and max_age_days.
  2. Run mix lemon.quality after any docs edit or app dependency change.
  3. Keep AGENTS.md short and operational — place durable implementation details in docs/ files.
  4. Update diagrams when architecture changes — edit the .excalidraw source, export to .svg.
  5. Review cycle: docs are checked for staleness based on max_age_days in the catalog.

Last reviewed: 2026-05-11