How ravenveil/shadowflow works
ShadowFlow is a contract-first platform for coordinating AI-agent teams with human-reviewable policies, approvals, rejection/retry loops, and checkpoint rollback. The documented workflow starts in the editor, dispatches a task to a team of agent runtimes, applies policy and review gates, then presents run progress and artifacts. The Node tree also exposes a Skill Studio, memory/knowledge services, and scheduling. The README documents the broader runtime and Python backend, but those implementations are not in this tree; their connections are shown only where documented.
Main entry points: index.ts Node API gateway · routes.ts Knowledge service · engine.ts Schedule engine · ProductApp.tsx Workflow editor
Components 21
User experience
- Workflow editor
frontend/app/ProductApp.tsx - Chat experience
frontend/legacy/src/neo/NeoApp.tsx - Team live view
frontend/legacy/src/neo/NeoGroupChat.tsx - Run timeline
frontend/legacy/src/core/hooks/useRunSession.ts
Workflow coordination
- Node API gateway
backend/node/src/index.ts - Runtime engine
- Team coordination
backend/node/src/application/teams - Policy and approvals
backend/node/src/application/runtime - Runs and checkpoints
backend/node/src/application/runs
Agent execution
- Agent transports
backend/node/src/application/adapters/transport - Agent tools
backend/node/src/application/runtime/tools - Skill Studio
backend/node/src/application/skills - Agent providers
Platform services
- Knowledge service
backend/node/src/application/memory-bank/routes.ts - Knowledge ingestion
backend/node/src/application/memory-bank/ingest.ts - Knowledge retrieval
backend/node/src/application/memory-bank/retrieve.ts - Knowledge pack store
backend/node/src/application/memory-bank/db.ts - Agent handoffs
backend/node/src/application/memory/infra/storage-memory-handoff.ts - Schedule engine
backend/node/src/application/schedules/engine/engine.ts - Schedule records
backend/node/src/application/schedules/engine/store.ts
Other components
- User / reviewer
Connections 23
- User / reviewer → Workflow editor: defines task
README.md - Workflow editor → Runtime engine: submits workflow
README.md - User / reviewer → Chat experience: reviews runs
- Chat experience → Team live view: opens team view
frontend/legacy/src/AppRoutes.tsx - Runtime engine → Team coordination: coordinates agents
- Runtime engine → Policy and approvals: checks policy
README.md - Policy and approvals → Runtime engine: rejects or gates
README.md - Runtime engine → Agent transports: dispatches work
README.md - Agent transports → Agent providers: invokes runtime
README.md - Runtime engine → Agent tools: runs tools
- Runtime engine → Runs and checkpoints: records execution
README.md - Runs and checkpoints → Run timeline: streams progress
- Run timeline → User / reviewer: shows results
- Node API gateway → Skill Studio: serves Skill Studio
README.md - Node API gateway → Knowledge service: serves knowledge routes
backend/node/src/application/memory-bank/routes.ts - Knowledge service → Knowledge ingestion: ingests sources
- Knowledge service → Knowledge retrieval: retrieves matches
- Knowledge ingestion → Knowledge pack store: writes pack data
backend/node/src/application/memory-bank/ingest.ts - Knowledge retrieval → Knowledge pack store: reads pack data
- Agent handoffs → User / reviewer: supports handoffs
- Node API gateway → Schedule engine: serves schedules
- Schedule engine → Schedule records: loads and saves
backend/node/src/application/schedules/engine/engine.ts - Schedule engine → Runtime engine: executes scheduled work