Apple-pi Lightweight Subagent Extension | Generated by AI

Home 2026.07

Question: What is https://github.com/dodo-reach/apple-pi?

Answer:

apple-pi is an extension for the Pi coding agent that adds lightweight in-process subagents. Instead of a single LLM doing everything (planning, searching, editing, reasoning), it lets the parent agent delegate parts of the task to specialized agents running concurrently. (Pi)

Conceptually:

           Parent Agent
                │
      delegate(task list)
                │
     ┌──────────┼──────────┐
     │          │          │
  scout      scout      worker
 (Haiku)    (Haiku)    (Sonnet)
 read-only  grep/etc   edit/bash
     │          │          │
     └──────────┼──────────┘
                │
        merge results back

The design goals are:

Example workflow:

User:
    Refactor authentication.

Parent:
    delegate:
        - find auth code
        - inspect tests
        - implement change

Scout #1:
    grep auth files

Scout #2:
    inspect tests

Worker:
    modify code

Parent:
    summarize + produce final response

Each agent is defined as a Markdown file with YAML frontmatter, for example:

---
name: scout
description: Fast repository reconnaissance
model: anthropic/claude-haiku-4-5
thinking: off
tools:
  - read
  - grep
  - find
  - ls
---
You only search the codebase.
Never edit files.

The extension discovers these agent definitions from:

  1. .pi/agents/ (project)
  2. ~/.pi/agent/agents/ (user)
  3. bundled defaults

allowing projects to define custom specialist agents. (Pi)

Why this is interesting

This is very similar to the architecture used by modern agent systems:

The key idea is:

One large context is often less efficient than several focused contexts.

Instead of giving one model 100k tokens, give three smaller agents 10k tokens each, let them work independently, then synthesize the outputs.

Since you’ve been discussing Pi and CLI-native agents recently, this repository is essentially demonstrating that philosophy inside Pi: cheap, composable, parallel agent execution rather than a monolithic assistant.

References:


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate