Monkeys

Module Architecture

Logical modules, capability services, and infrastructure dependencies in the Monkeys ecosystem

This document describes the logical module architecture of the Monkeys ecosystem. It is not a deployment guide.

For local startup and deployment-oriented instructions, see LOCAL_DEVELOPMENT.md, AGENT_BOOTSTRAP.md, and the compose files under docker/.

Layered View

Core Product

The core product is the minimum product surface for the Monkeys platform:

ModuleRepositoryResponsibility
Studio frontendmonkeys-studioMain user-facing Studio workspace.
Kernel frontendmonkeys-kernelPlatform and kernel management frontend.
Compute frontendmonkeys-computeCompute control-plane frontend.
Main backendmonkeys-serverCore API, workflow entrypoint, routing, marketplace, and service bus.

Capability Services

Capability services extend the core product and are deployed only when their feature area is needed.

CapabilityRepositoriesRelationship
Agent runtimemonkeys-agent-server, monkeys-mcp-server, monkey-tools-agentkitsAdds agent runtime, MCP access, and reusable agent tools.
Billing and meteringmonkeys-billing-serverTracks usage, pricing, balances, and billing records.
Data workflowsmonkeys-data-server, monkeys-conductor-workerAdds data service APIs and workflow task execution.
Webhooksmonkeys-webhook-serverHandles outbound notifications and external webhook channels.
Third-party toolsmonkey-tools-third-party-api, monkey-tools-third-party-api-python, monkey-tools-sandbox, monkey-tools-agentkitsAdds external API adapters, Python tools, code sandboxing, and agent toolkits.
Image and ComfyUI flowsmonkeys-comfyui-workerExecutes ComfyUI/image generation queues.
Training flowsmonkeys-training-workerExecutes model training and model-test background tasks.

Infrastructure Dependencies

Infrastructure is shared and lives under docker/infrastructure/ for local use.

InfrastructureUsed by
PostgreSQLMain backend, agent, billing, data, webhook, training worker, Conductor
RedisMain backend, workers, queues, cache, background dispatch
ElasticsearchConductor indexing and search-related flows
ConductorWorkflow orchestration and task dispatch
MinIOLocal object storage for files and assets
Prometheus / GrafanaOptional local metrics and dashboards

Deployment Shape

Monkeys services are deployed on demand. The local services compose uses profiles to reflect that model.

Ownership Rules

  • monkeys owns ecosystem documentation, local infrastructure compose, service compose, and agent bootstrap guidance.
  • Each application or service repository owns its own source code, Dockerfile, config examples, tests, and build commands.
  • README files describe repository relationships. Startup and deployment details belong in LOCAL_DEVELOPMENT.md, AGENT_BOOTSTRAP.md, and docker/*/README.md.
  • Feature work must be tested in the owning repository; run local test and build commands successfully before pushing.

On this page