How justlovemaki/prismflowagent works
PrismFlowAgent is an information-ingestion, AI content-production, and publishing system with a React administration UI, a Fastify service, and a native DeepSeek Harness integration. The main user workflow is configure sources and AI, run ingestion, select items, generate content, then publish. The README also documents agent interoperability, knowledge and memory features, scheduling, and a distinct DSH workflow with review and audited, approval-bound publishing. Some DSH internals and frontend pages were not sampled, so their relationships are included only where the README documents them.
Main entry points: App.tsx React application · server.ts Fastify server · IngestionScheduler.ts Source ingestion · ContentProduction.ts AI content production
Components 25
Administration UI
- React application
frontend/src/App.tsx - Task management
frontend/src/pages/TaskManagement.tsx - Content selection
frontend/src/pages/Selection.tsx - Content generation
frontend/src/pages/Generation.tsx - History and preview
frontend/src/pages/History.tsx - Agent management
frontend/src/pages/Agents.tsx - Knowledge base
frontend/src/pages/KnowledgeBase.tsx - Settings and plugins
frontend/src/pages/Settings.tsx
Application API
- Fastify server
src/api/server.ts - API route handlers
src/api/routes - SQLite local store
src/services/LocalStore.ts
Content workflow
- Source ingestion
src/core/scheduling/IngestionScheduler.ts - Source adapters
src/core/sources - Content selection store
src/core/content/ContentStore.ts - AI content production
src/core/production/ContentProduction.ts
Agents and knowledge
- AI providers
src/services/AIProvider.ts - Agent execution
src/services/agents/AgentService.ts - Workflow engine
src/services/agents/WorkflowEngine.ts - Knowledge services
src/services/knowledge/HierarchicalKnowledgeService.ts - Agent interoperability
src/services/interop/InteropService.ts
DSH integration
- DSH native plugin
integrations/dsh/lib/client.js - DSH content workflow
integrations/dsh/lib/shared/content-production.js - Draft review and audit
integrations/dsh/lib/shared/publication-receipt.js - DSH publishers
integrations/dsh/lib/publisher-core.js
Other components
- Operator
Connections 37
- Operator → React application: uses
README.md - React application → Task management: routes to
frontend/src/App.tsx - React application → Content selection: routes to
frontend/src/App.tsx - React application → Content generation: routes to
frontend/src/App.tsx - React application → History and preview: routes to
frontend/src/App.tsx - React application → Agent management: routes to
frontend/src/App.tsx - React application → Knowledge base: routes to
frontend/src/App.tsx - React application → Settings and plugins: routes to
frontend/src/App.tsx - Operator → Task management: starts tasks
README.md - Operator → Content selection: selects content
README.md - Operator → Content generation: requests generation
README.md - Operator → History and preview: reviews results
README.md - Task management → Fastify server: requests API
- Content selection → Fastify server: requests API
- Content generation → Fastify server: requests API
- Settings and plugins → Fastify server: configures
- Fastify server → API route handlers: registers
src/api/server.ts - Fastify server → SQLite local store: creates
src/api/server.ts - API route handlers → SQLite local store: reads and writes
- Source ingestion → Source adapters: fetches from
README.md - Operator → Source ingestion: starts ingestion
README.md - Source ingestion → Content selection store: persists items
README.md - Operator → Content selection store: selects items
README.md - Operator → AI content production: requests generation
README.md - AI content production → AI providers: generates with
README.md - AI content production → Content selection store: uses selected content
- Operator → Agent execution: configures agents
README.md - Agent execution → AI providers: calls provider
src/services/agents/AgentService.ts - Agent execution → Workflow engine: runs workflows
src/services/agents/WorkflowEngine.ts - Operator → Knowledge services: manages knowledge
README.md - Operator → Agent interoperability: connects external agents
README.md - Operator → DSH native plugin: uses native plugin
README.md - DSH native plugin → DSH content workflow: provides workflow
README.md - DSH content workflow → Draft review and audit: creates review drafts
README.md - Operator → Draft review and audit: approves drafts
README.md - Draft review and audit → DSH publishers: releases approved artifacts
README.md - Operator → DSH publishers: publishes approved work
README.md