rowboat/apps/x
Ramnique Singh c1cc5a8753 feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime
Replace the old run-based agent runtime with an append-only, fact-log turn model.

agent-loop:
- turn = append-only fact logs; advance() reducer IS the resume function
- SystemComposer (loop-injected system prompt) + TurnObserver (live deltas +
  state snapshots), per-turn ComposeContext (voice / search / code-mode) and
  use-case attribution; per-step model usage; transcript prefix dedup at rest

sessions:
- ordered turn chains with copy-forward transcript; deleteSession support

agent-runtime bridges:
- RealToolRunner, RealPermissionGate (per-turn use-case), Copilot system /
  user-message-context composers, TurnEventBus
- getAgentRuntime() process singleton; runHeadlessAgent() runs one-shot headless
  work as a standalone turn (sessionId null) — no throwaway sessions, no growth

shared contracts (@x/shared): agent-turn.ts, sessions.ts (browser-safe)

headless consumers ported to standalone turns with use-case tagging: live-note,
background-task, knowledge pipelines (agent_notes / tag_notes / label_emails /
build_graph / inline_tasks), pre-built, agent-schedule.

retire the old runtime: delete runs/{runs,bus,repo}.ts and message-queue.ts; gut
agents/runtime.ts to loadAgent + convertFromMessages; trim agents/utils.ts; drop
the DI registrations for the old runtime / message queue / runs repo.

SQLite migrations: compose_context, model_usage, transcript dedup, use_case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 09:34:24 +05:30
..
apps Add SQLite storage foundation 2026-06-15 09:32:48 +05:30
packages feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime 2026-06-15 09:34:24 +05:30
patches feat: run code mode on an in-app ACP client with live approvals (#593) 2026-06-05 14:45:08 +05:30
.gitignore chore: ignore test-fixtures dir 2026-05-08 17:04:25 +05:30
ANALYTICS.md add code mode: coding-agent workspace with sessions, direct/Rowboat drive, diffs, and worktrees 2026-06-12 23:57:44 +05:30
eslint.config.mts ignore renderer eslint 2026-01-16 12:05:33 +05:30
LIVE_NOTE.md Refactor builtin file tools beyond workspace scope 2026-05-25 16:21:51 +05:30
package.json integrate electron forge 2026-01-17 10:28:44 +05:30
pnpm-lock.yaml Add SQLite storage foundation 2026-06-15 09:32:48 +05:30
pnpm-workspace.yaml Add SQLite storage foundation 2026-06-15 09:32:48 +05:30
tsconfig.base.json bootstrap new electron app 2026-01-16 12:05:33 +05:30