How thesongzhu/friday works
Friday is a local-first, BYOK control plane that coordinates AI agents while keeping approval, verification, memory, and audit under operator control. Its documented loop routes work, executes it under governance, verifies completion with evidence, and proposes memories for human confirmation. The graph combines that documented product flow with the sampled executor, context, rules, and API modules. Several README capabilities—including channels, schedules, skills, and desktop/mobile surfaces—are included as documented subsystems; their internal wiring is not inferred where source was not sampled.
Main entry points: friday-engine-run-executor.ts Run executor · runtime Agent runtime · friday-self-learning-pipeline-service.ts Learning pipeline · rule-engine.ts Policy rules
Components 21
Work orchestration
- Pipeline API
src/api/http/routes/friday-deterministic-pipeline-routes.ts - Run executor
src/engine/friday-engine-run-executor.ts - Workflow engine
src/workflows/engine - Node runner
src/node-runner/engine/node-runner-pipeline.ts - Channels and schedules
rust-core/crates/friday-hub/src/channels.rs
Safety and evidence
- Policy rules
src/rules/engine/rule-engine.ts - Work verification
src/acceptance/engine/assertion-engine.ts - Operator approval
rust-core/crates/friday-core/src/gate.rs - Audit and receipts
rust-core/crates/friday-core/src/ledger.rs - Governed skills
rust-core/crates/friday-hub/src/skill_executor.rs
Agent runtime
- Agent runtime
src/agent/runtime - Agent contracts
src/agent/model/friday-agent.types.ts - Context engine
src/agent/runtime/friday-agent-context-engine.ts - Workspace context
src/agent/runtime/friday-agent-workspace-context.ts - AI providers
src/providers
Learning and memory
- Sessions
src/sessions/model/friday-session.types.ts - Learning pipeline
src/learning/services/friday-self-learning-pipeline-service.ts - Memory storage
src/memory/persistence/friday-memory-embedding-repository.ts
Product surfaces
- Desktop surfaces
apps/macos/FridayHubConsole/Sources/FridayHubConsole - Mobile surfaces
apps/friday-ios/Sources/FridayMobileShell
Other components
- Operator
Connections 21
- Operator → Run executor: sets goal
README.md - Run executor → Agent runtime: dispatches run
src/engine/friday-engine-run-executor.ts - Run executor → Sessions: records turns
src/engine/friday-engine-run-executor.ts - Agent runtime → AI providers: routes work
README.md - Agent runtime → Context engine: assembles context
src/agent/runtime/friday-agent-context-engine.ts - Context engine → Workspace context: loads context
src/agent/runtime/friday-agent-context-engine.ts - Run executor → Policy rules: governs steps
- Policy rules → Operator approval: requires sign-off
README.md - Operator → Operator approval: approves risk
README.md - Run executor → Node runner: dispatches node
- Workflow engine → Node runner: runs nodes
- Run executor → Work verification: requests proof
README.md - Work verification → Audit and receipts: records receipts
README.md - Agent runtime → Audit and receipts: records turns
README.md - Sessions → Learning pipeline: yields candidates
- Learning pipeline → Memory storage: stores confirmed memory
- Operator → Learning pipeline: confirms memory
README.md - Run executor → Governed skills: runs approved skills
README.md - Operator → Channels and schedules: submits work
README.md - Desktop surfaces → Run executor: submits goals
- Mobile surfaces → Run executor: submits goals