How abllo1/-ad-connect-os works
Ad-Connect OS is a broad Next.js application with agent, knowledge-ingestion, workflow, planning, and package-management capabilities. The clearest evidenced runtime paths are request execution through the kernel pipeline, ingestion approval into knowledge creation, and package ingestion through discovery and duplicate checking to persistence. Planning reviews and the background queue have their own internal persistence or dispatch layers. The README is the generic Next.js starter README, so it does not document product workflows; several connections and unsampled subsystems are therefore omitted or marked unverified.
Main entry points: pipeline.ts Execution pipeline · controller.ts Agent API · route.ts Ingestion approval · ReviewRepository.ts Review repository
Components 19
API and ingestion
- Agent API
src/api/agents/controller.ts - Agent service
src/api/agents/service.ts - Ingestion approval
src/app/api/ingestion/approve/[id]/route.ts - Knowledge service
src/core/knowledge/knowledge-service.ts
Execution and intelligence
- Execution pipeline
src/core/pipeline/pipeline.ts - Chat handler
src/core/pipeline/chat-handler.ts - Knowledge handler
src/core/pipeline/knowledge-handler.ts - Replanning engine
src/core/planner/replanning-engine.ts - LLM providers
src/lib/llm-providers.ts - Background job queue
src/lib/queue/engine.ts - Prisma database
src/lib/prisma.ts
Planning and workflows
- Review manager
src/core/planning/ReviewManager.ts - Review repository
src/repositories/ReviewRepository.ts - Workflow AI engine
src/core/workflow/ai/engine.ts
Package ecosystem
- Package ingestion
src/v2/workspaces/packages/ingestion/pipeline.ts - Connector registry
src/v2/workspaces/packages/connectors/registry.ts - Capability registration
src/v2/workspaces/packages/registration/CapabilityRegistrationPipeline.ts - Package verification
src/v2/workspaces/packages/verification/PackageVerificationEngine.ts
Other components
- User or client
Connections 13
- User or client → Agent API: requests
- Agent API → Agent service: calls
src/api/agents/controller.ts - User or client → Ingestion approval: approves imports
- Ingestion approval → Knowledge service: creates knowledge
src/app/api/ingestion/approve/[id]/route.ts - Execution pipeline → Chat handler: dispatches chat
src/core/pipeline/pipeline.ts - Execution pipeline → Knowledge handler: dispatches knowledge
src/core/pipeline/pipeline.ts - Replanning engine → LLM providers: requests completion
src/core/planner/replanning-engine.ts - Background job queue → Prisma database: persists jobs
src/lib/queue/engine.ts - Review manager → Review repository: delegates CRUD
src/core/planning/ReviewManager.ts - Review repository → Prisma database: reads and writes
src/repositories/ReviewRepository.ts - Workflow AI engine → LLM providers: uses providers
src/core/workflow/ai/engine.ts - Package ingestion → Connector registry: selects connectors
src/v2/workspaces/packages/ingestion/pipeline.ts - User or client → Package ingestion: submits source