Platform

Backend

Convex host architecture, mounted shared component, and dashboard wrapper functions

Thin by design

This backend is a host layer around @lnittman/convex-agents, not a second app-specific backend implementation.

The backend in this repo is intentionally thin. It mounts the shared component, exposes wrapper functions for the dashboard, and provides host-level sync and HTTP surfaces.

Key architecture facts

  • convex.config.ts mounts @lnittman/convex-agents
  • schema.ts defines no host-local tables
  • http.ts mounts Agentation-compatible HTTP routes
  • agentSystem/** exposes dashboard-friendly wrappers over the mounted component
  • sync/** exposes host mutations for upserting local state into Convex

Important files

FilePurpose
packages/backend/convex/convex.config.tsMount shared component
packages/backend/convex/schema.tsEmpty host schema by design
packages/backend/convex/http.tsAgentation HTTP surface
packages/backend/convex/host.tsHost identity query
packages/backend/convex/agentSystem/activity.tsHome feed, stats, and time series
packages/backend/convex/agentSystem/dispatch.tsQueue web work for local execution
packages/backend/convex/agentSystem/projects.tsProject list/create wrappers
packages/backend/convex/agentSystem/skills.tsSkills list wrapper
packages/backend/convex/agentSystem/previews.tsPreviews list wrapper
packages/backend/convex/agentSystem/annotations.tsAnnotation list/upsert wrappers
packages/backend/convex/agentSystem/threads.tsThread create/list/get wrappers
packages/backend/convex/agentSystem/traceEvents.tsTimeline event access

Why the host layer stays thin

This repo is meant to be the canonical home for the shared agents ecosystem, not a forked app-specific backend that duplicates component logic. The dashboard reads through wrapper functions that shape the shared component into product-specific queries.

Practical implication

Shared nouns

Put reusable model changes in @lnittman/convex-agents.

Host wrappers

Shape the shared component for product needs in packages/backend/convex/agentSystem/**.

UI consumption

Consume the resulting queries and mutations from apps/app.