3.1 KiB
3.1 KiB
APEX OS Employee Factory
Overview
The Employee Factory is a standardized system for creating new AI employees (Letta agents) with consistent configuration, constitution compliance, and API access.
Components
1. Master Template
- Location:
/opt/apex/templates/employee-template.json - Version: 1.0
- Features:
- APEX Constitution (5 Laws) auto-injected
- Standard API access (LiteLLM, Gitea, Status API, PostgreSQL)
- Shared memory hooks (mem0.shared_knowledge)
- Lifecycle enforcement (PLAN > BUILD > DEPLOY > REFLECT)
2. Spawn Script
- Location:
/opt/apex/tools/spawn_employee.sh - Usage:
spawn_employee.sh <RoleName> <SpecializedTask> - Example:
spawn_employee.sh "Marketing Agent" "Create social media content"
Process:
- Loads master template
- Determines next employee ID
- Creates dedicated Gitea repository
- Generates customized system prompt
- Creates Letta agent with APEX Constitution
- Logs hiring event to database
3. APEX Constitution (Auto-Injected)
Every employee inherits these 5 immutable laws:
- All decisions must be logged in
apex.engineer_decisionsbefore execution. - Query
apex.reflectionsandmem0.shared_knowledgebefore starting unfamiliar tasks. - All deployments must pass through Docker (no direct system installs).
- Create backups before modifying ANY infrastructure configuration.
- Follow the Engineering Lifecycle: PLAN > BUILD > DEPLOY > REFLECT (no shortcuts).
Current Employees
Employee 1: Engineer
- Agent ID: agent-4e3c3862-d0ba-47c6-8f2e-74249e1cfe4a
- Role: Principal Engineer
- Repository: engineer/apex-os-docs
- Specialization: Infrastructure, deployment, AI employee creation
Employee 3: Documentation Agent
- Agent ID: agent-f8706c2d-51b5-4678-abc7-2864d9845e6a
- Role: Documentation Auditor
- Repository: engineer/documentation-agent-workspace
- Specialization: Audit and improve Markdown documentation
For CEO: How to Hire a New Employee
-
SSH into the VPS:
ssh root@62.72.3.145 -i <path-to-engineer-ssh-key> -
Run the spawn script:
/opt/apex/tools/spawn_employee.sh "Role Name" "Specialized Task Description" -
Interact with the new employee via Letta API:
curl -X POST http://localhost:8283/v1/agents/<AGENT_ID>/messages/ \ -H "Content-Type: application/json" \ -d '{"messages": [{"role": "user", "content": "Your task here"}]}'
Monitoring
Grafana Dashboard
- URL: http://grafana.apex.unstuck-path.com
- Dashboard: "APEX OS - Executive Overview"
- Dashboard UID: a5jdct
Dashboard Panels:
- System Health - Real-time status of 6 critical services
- Active Projects Pipeline - Current projects and statuses
- Deployment Success Rate - 24-hour deployment metrics
- Engineer Brain Activity - Latest reflections and decisions
- Auto-Recovery Events - System self-healing activity
- Lifecycle Executions - Total engineering cycles completed
- Knowledge Entries - Company brain size
- Constitution Violations - Compliance tracking
- Active Employees - Current team size