Definitive System Architecture

A comprehensive overview of the NomadPM platform, from the logical AI workflow to the autonomous background agent workforce.

Logical Layer: The "Architect-Engineer-Orchestrator" Model

The system's intelligence is built on a strict separation of concerns, routing tasks to the AI best suited for the job, all managed by a central Python orchestrator.

Delamain (The 120B Architect)

The primary strategic AI. It handles high-level conversational planning, task decomposition, and autonomously writing new Python tools into the AITOOLS TDK.

Hal (The 20B Engineer)

A deterministic engine whose sole purpose is to translate a single, direct command (prefixed with !do) into a schema-validated JSON plan for tool execution.

The Orchestrator (agent_logic.py)

The Python "nervous system" that receives user input. It routes requests to Delamain (for planning) or Hal (for execution), executes Hal's plans, and passes the results back to Delamain for a final summary.

The Autonomous Agent Workforce

The platform's long-term autonomy and maintenance are handled by a workforce of independent, background `systemd` services.

Agent Name Core Purpose Frequency
Executive Agent The primary "doer" of the system. It constantly monitors the job_queue for approved tasks and executes them step-by-step. Continuous
Prospector Agent A project management safety net. It finds "stalled" projects and automatically creates default scoping tasks to ensure no work is forgotten. Hourly
Consolidation Agent Manages the AI's long-term memory. It reviews raw logs and conversations, synthesizes key insights, and consolidates them into the permanent knowledge stores (RAG, SQL). Daily
Ingestion Agent Keeps the AI's knowledge base up-to-date with the state of the source code by performing a "Map-Reduce" process to ingest new code and summaries. On-Demand

Extensibility: The Autonomous Tool Development Kit (TDK)

This is the mechanism for agent self-improvement. Delamain can autonomously write new Python tools into the AITOOLS project, which Hal can then execute after they are automatically approved by the ActionApproval service.

← Back to Documentation Home