coding agent orchestrator
  1. CI
  2. codecov
  3. license
  4. last commit
  5. contributors
  6. stars
  7. lines of code
curl -fsSL https://dominic.computer/nanna-install.sh | bash

Agent Orchestration

Very little of a coding agent's work is pure code generation. They research, implement, run tests, iterate on CI, review, deploy, and respond to incidents.

Commercial agents are interfaces for complex systems made of many different agents. These different agents have different capabilities, often running in different environments, and they use different models.

Nanna allows agents to defer certain kinds of work to more specialized, less expensive models that can run locally in isolated containers. By assigning work to cheaper models, nanna makes agentic systems more efficient. Nanna also allows users to set granular capabilities for the agents it exposes, providing the guardrails of isolation, role-based access control, and auditability.

System architecture diagram showing the primary agent delegating to Nanna

Delegating to Nanna

Nanna exposes a small interface (CLI and MCP) so that other agents can delegate work to it. The orchestrator gets six MCP tools: assign_task, poll_task, get_result, list_tasks, cancel_task, onboard_repo. The API is designed to be token-efficient and unambiguous.

Nanna drains backlogs through a hybrid FIFO/LIFO scheduler: half the capacity works on the latest tasks while half is reserved for the longest-running work. This approach avoids the estimation problem and systemic bias against large-scale tasks as seen in the shortest remaining time strategy while preserving reactivity to new tasks.

The orchestrator above Nanna keeps responsibility for global task completion. If the device Nanna runs on fails, its calls fail, and the orchestrator falls back to its own subagents. Nanna can therefore exploit unreliable resources without compromising the reliability of the orchestrator: grid surplus, idle personal devices, a spare machine.

Sequence diagram showing the orchestrator calling assign_task, poll_task, get_result

Environmental Impact

From 2022 to 2024, the size of models able to perform well on general intelligence benchmarks dropped by two orders of magnitude. Small language models (SLMs) generally consume 10x to 100x less electricity than frontier LLMs. The overhead for token metering is 1-2 orders of magnitude the cost of electricity.

Since 2024, the focus has been on model specialization. Specialization refers to the ability of small models to perform tasks in specific, constrained domains, like natural language translation or proof generation. Small models can easily perform better on specific tasks than general models with 100x their resource footprint.

Optimization via deferring work to SLMs is a core environmental and economic concern for software generation, both for model providers and their customers. But, model providers have many customers with different specialization needs, and progress on generally intelligent SLMs has been fairly slow over the last several years. Model providers are poorly positioned to do this kind of optimization, especially frontier labs that don't sell SLMs.

SLM usage can also reduce the need for new datacenters and reduce electronics waste. New datacenters, which are difficult to integrate into existing grids, and for US-based intelligence providers, require significant natural gas usage, also require significant and highly variable water usage. Distributing marginal load over the existing grid, using existing computers, without requiring any additional water usage, significantly reduces the ecological impact of agentic software development.

Line chart of the smallest model scoring above 60% on MMLU over time, showing parameter counts dropping from 540B (PaLM, 2022) to 1.7B (Qwen3-1.7B, 2025)
Models, in order: PaLM (540B), LLaMA-65B, Llama 2 34B, Mistral 7B, Phi-3-mini (3.8B), Qwen3-1.7B (FP16). Sources: Stanford AI Index 2025, Qwen3 (Apr 2025).
Bar chart comparing energy per chat query in joules — Qwen3-8B at 287 J vs Qwen3-235B reasoning (A22B thinking mode) at ~6300 J
Energy per chat query, from the ML.Energy benchmark-v3 dataset (ml.energy/leaderboard, arXiv:2505.06371).
Bar chart of 2024 Water Usage Effectiveness (L/kWh) across 22 sites — Local at 0, three Scaleway Paris DCs (SCW DC4/DC3/DC2) under 0.01, AWS regions ranging from EU-Frankfurt at 0.01 up through US-Northern California at 0.51, AWS Tokyo at 0.91, AWS Singapore at 1.68, and AWS Jakarta at 2.75
Water cooling usage. See AWS and Scaleway. Related paper: Li et al. 2023 (CACM) flags that 500 mL bottle covers roughly 10 – 50 medium-length GPT-3 responses. Mistral / ADEME / Carbone 4 LCA (July 2025) describes full-lifecycle LLM resource usage. Note that water usage for electricity generation also varies widely across grids, and is not displayed here.