LinkWork is an enterprise-grade AI workforce platform built on a containerized microservice architecture, centered around the Workstation (Role) model.
graph TB
User["User / API"]
Web["linkwork-web<br/>Frontend"]
Server["linkwork-server<br/>Core Scheduling Engine"]
Skills["Skills Engine<br/>Declarative Skills · Version Pinning · Build-time Embed"]
Gateway["linkwork-mcp-gateway<br/>MCP Tool Proxy"]
SDK["linkwork-agent-sdk<br/>Agent Runtime"]
Executor["linkwork-executor<br/>Secure Executor"]
LLM["LLM Services<br/>OpenAI-compatible API"]
Tools["MCP Tool Ecosystem"]
K8s["K8s Cluster<br/>Orchestration · Resource Isolation"]
User --> Web
Web -->|"REST / WebSocket"| Server
Server -->|Task Dispatch| SDK
Server -->|Skills Orchestration| Skills
Server -->|Tool Routing| Gateway
Server -->|Container Mgmt| K8s
Skills -->|Capability Injection| SDK
SDK -->|LLM Calls| LLM
SDK -->|Command Exec| Executor
Gateway --> Tools
K8s -.->|Runtime Env| SDK
K8s -.->|Runtime Env| Executor
User creates a task → Scheduling engine allocates a container in the K8s cluster → Agent runtime starts in an isolated environment → Calls LLM for reasoning, securely executes commands through the executor → MCP gateway proxies external tool calls → Execution status streams back in real time.
| Component | Role | Tech Stack |
|---|---|---|
| linkwork-server | Core scheduling engine — role management, task orchestration, Skills & tool registry, approval workflow | Java / Spring Boot |
| linkwork-executor | Secure executor — in-container command execution, policy engine, privilege separation | Go |
| linkwork-agent-sdk | Agent runtime — LLM reasoning engine, Skills orchestration, MCP integration | Python |
| linkwork-mcp-gateway | MCP tool gateway — tool discovery, auth proxy, health checks, usage metering | Go |
| linkwork-web | Frontend reference — task dashboard, role configuration, Skills marketplace, real-time monitoring | TypeScript / Vue 3 |
All LinkWork AI workers run in container environments, supporting two deployment modes:
Suitable for local development and small teams, all services running on a single machine.
Suitable for enterprise production environments, fully leveraging container orchestration capabilities:
| Capability | Description |
|---|---|
| Smart Scheduling | Priority-based resource allocation, queuing when busy, releasing when idle |
| Elastic Scaling | Auto scale up/down based on task volume |
| Resource Isolation | Independent resource quotas per role |
| Self-healing | Auto-restart on container crash |
Each AI role maps to a set of resources in K8s:
| Role Concept | Runtime Mapping |
|---|---|
| Workstation (Role) | Container orchestration unit + config |
| Instance | Container instance |
| Task Queue | Message queue |
Each AI worker container runs two core processes:
graph LR
subgraph Container["AI Worker Container"]
AgentSDK["Agent Runtime<br/>linkwork-agent-sdk"]
Exec["Secure Executor<br/>linkwork-executor"]
AgentSDK -->|Command Intent| Exec
end
AgentSDK -->|LLM Calls| LLM["LLM Services"]
AgentSDK -->|MCP Calls| GW["MCP Gateway"]
- Agent Runtime: Responsible for LLM reasoning, task planning, and tool invocation
- Secure Executor: Responsible for command execution, policy evaluation, and security auditing
The two processes run under different user identities with fully separated privileges, invisible to each other.
- Core Components — Detailed responsibilities of each component
- Data Flow & Real-time Communication — How task data flows through the system
- Security Architecture — Multi-layer security protection
- Workstation Model — Conceptual design of workstations