How arpayidcloud-byte/agent-x works
Agent-X is an enterprise AI-agent platform: a user submits a goal through the CLI or dashboard, the API/runtime routes work through agents and LLM providers, and the result is streamed or returned to the user. Its separate domain stages include goal planning, workflow execution, multi-agent collaboration, and cognitive learning; the shared memory engine is an internal supporting layer. The README documents the broad end-to-end flow and provider fallback. Source excerpts verify selected orchestrator calls and provider administration; unsampled app and package internals are represented only at directory level, so their detailed wiring is not inferred.
Main entry points: agentx-server.ts API server · execution-pipeline.ts Agent runtime · src CLI and TUI · admin-llm-routes.ts Provider administration
Components 21
User surfaces
- CLI and TUI
apps/cli/src - Web dashboard
apps/web/src - Admin console
apps/admin/src - Agent result
API and routing
- API server
apps/api/src/agentx-server.ts - Provider administration
apps/api/src/admin-llm-routes.ts - Provider configuration store
apps/api/src/llm-provider-store.ts - LLM routing
apps/api/src/llm-providers.ts
Agent execution
- Agent runtime
packages/runtime/runtime/src/execution-pipeline.ts - Agent orchestration
packages/agent/agent-platform/src/orchestrator.ts - Goal planning
packages/planning/goal-intelligence/src/goal-engine.ts - Workflow execution
packages/workflow/workflow-engine/src/engine.ts - Multi-agent collaboration
packages/agent/multi-agent-collaboration/src/multi-agent-collaboration-engine.ts
Cognitive capabilities
- Symbolic reasoning
packages/reasoning/reasoning-algorithms/src/reasoning-engine.ts - Cognitive learning
packages/cognitive/cognitive-learning/src/learning-engine.ts - Memory engine
packages/shared/memory-engine/src/engine.ts - Knowledge engine
packages/shared/knowledge-engine/src/engine.ts - Distributed cognition
packages/distributed/distributed-cognition/src - Production quality checks
packages/quality/production-quality/src/quality-engine.ts
Other components
- User
- LLM providers
Connections 21
- User → CLI and TUI: submits goal
README.md - User → Web dashboard: uses dashboard
README.md - User → Admin console: manages providers
- CLI and TUI → API server: sends requests
README.md - Web dashboard → API server: uses API
README.md - Admin console → API server: manages providers
- API server → Agent runtime: dispatches work
README.md - Agent runtime → Agent orchestration: runs agents
README.md - Agent orchestration → LLM providers: requests completion
README.md - LLM providers → LLM routing: provider fallback
README.md - LLM routing → LLM providers: routes requests
README.md - Agent runtime → Agent result: returns result
README.md - Agent result → CLI and TUI: displays result
README.md - API server → Provider administration: exposes routes
apps/api/src/admin-llm-routes.ts - Provider administration → Provider configuration store: reads and writes
apps/api/src/admin-llm-routes.ts - Provider administration → LLM routing: registers providers
apps/api/src/admin-llm-routes.ts - CLI and TUI → API server: streams chat
apps/cli/src/lib/chat-engine.ts - Goal planning → Workflow execution: plans workflows
- Multi-agent collaboration → Cognitive learning: supports adaptation
- Agent runtime → Memory engine: uses memory
- Agent runtime → Production quality checks: checks readiness