How guen-efanunji/loom works
Loom is a local-first workspace for planning coding tasks, running agents concurrently in isolated Git worktrees, and reviewing changes before merge. The main flow is user goal → plan and validation → dependency-aware dispatch → task workspaces and agent execution → integration checks and human-approved merge. The graph also preserves chat, design-canvas, context, walkthrough, MCP, and project capabilities documented in the README. Some server internals were not sampled; those subsystems are represented at their known module paths, and links are limited to documented or indexed relationships.
Main entry points: +page.svelte Browser workspace · src/index.ts Task orchestration · src/index.ts Local daemon and API · automation.ts Plan generation
Components 21
Workspace experience
- Browser workspace
apps/web/src/routes/+page.svelte - Chat sessions
apps/server/src/chat.ts - Context Hub
apps/server/src/context-hub.ts - Change walkthrough
apps/server/src/walkthrough.ts - Projects and files
apps/server/src/projects.ts
Planning and design
- Plan generation
packages/orchestrator/src/automation.ts - Plan and validation
packages/automation/src/planner.ts - Design canvas
packages/orchestrator/src/design.ts
Task execution
- Task orchestration
packages/orchestrator/src/index.ts - Ready-task scheduler
packages/orchestrator/src/scheduler.ts - Git worktrees
packages/worktree/src/index.ts - Review and integration
packages/orchestrator/src/automation.ts
Agent runtime
- Provider management
packages/providers/src/core/manager.ts - CLI provider adapters
packages/providers/src/adapters/cli.ts - OpenCode runtime
packages/opencode/src/index.ts - MCP connections
apps/server/src/mcp-manager.ts
Local services and state
- Local daemon and API
apps/server/src/index.ts - Local SQLite state
packages/db/src/schema/workflow.ts - Loom CLI
apps/cli/src/index.ts
Other components
- Developer
- Selected model provider
Connections 25
- Developer → Browser workspace: describes work
README.md - Browser workspace → Local daemon and API: uses local UI
README.md - Local daemon and API → Local SQLite state: persists local state
README.md - Local daemon and API → Task orchestration: routes task workflow
apps/server/src/index.ts - Task orchestration → Plan generation: starts planning
packages/orchestrator/src/index.ts - Plan generation → Plan and validation: builds and validates
packages/orchestrator/src/automation.ts - Plan generation → Local SQLite state: stores plans
packages/orchestrator/src/automation.ts - Developer → Plan generation: reviews plan
README.md - Task orchestration → Ready-task scheduler: dispatches ready tasks
packages/orchestrator/src/index.ts - Ready-task scheduler → Git worktrees: prepares task workspace
README.md - Task orchestration → Git worktrees: uses isolated worktrees
README.md - Task orchestration → Provider management: prompts agent runtime
packages/orchestrator/src/index.ts - Provider management → CLI provider adapters: selects adapter
packages/providers/src/core/manager.ts - Provider management → Selected model provider: sends selected request
README.md - Task orchestration → Local SQLite state: records task state
- Developer → Review and integration: reviews before merge
README.md - Review and integration → Git worktrees: integrates task branches
README.md - Browser workspace → Chat sessions: starts conversations
README.md - Chat sessions → Context Hub: uses project knowledge
- Browser workspace → Design canvas: opens design canvas
README.md - Local daemon and API → MCP connections: serves MCP management
apps/server/src/index.ts - Browser workspace → Change walkthrough: requests walkthrough
- Browser workspace → Projects and files: manages projects
- Loom CLI → Local daemon and API: starts daemon
apps/cli/src/index.ts - OpenCode runtime → Provider management: provides primary runtime