SDK Core Overview
Theathena.core module provides the foundational primitives and subsystems for the Athena Operating System. This includes configuration management, permissions, identity, health monitoring, and daemon services.
Module Structure
Key Components
Configuration Management
Centralized configuration and path discovery for the Athena workspace.PROJECT_ROOT- Workspace root (discovered viapyproject.toml)AGENT_DIR-.agent/directory containing skills and stateCONTEXT_DIR-.context/directory for memory and logsMEMORY_DIR-.athena/memory/for user profile and learnings
Permissions System
Three-layer permission system controlling tool execution and data sensitivity.Permission.READ- Query/read dataPermission.WRITE- Modify session logs, checkpointsPermission.ADMIN- Modify config, clear cachesPermission.DANGEROUS- Delete data, run shell commands
Health Monitoring
System health checks for critical services.Sandbox Execution
Docker-based isolated execution for untrusted scripts (Law #1: No Irreversible Ruin).- No network access (
--network none) - Read-only filesystem
- Non-root user
- Memory limit (256MB)
- CPU limit (1.0 core)
- Configurable timeout
Data Models
Shared Pydantic models and dataclasses.Athena Daemon (athenad)
The active OS kernel providing:- File system watching (polling-based)
- Background vectorization into GraphRAG
- Self-healing and health monitoring
- Poll interval: 5 seconds
- Watched directories:
.context,.agent/skills,src,Athena-Public - Excludes:
Winston/,archive/,.venv/,__pycache__/,.git/
See Also
- Boot Orchestrator - Modular boot sequence
- Configuration - Path discovery and workspace setup
- Permissions - Access control and sensitivity