working-with-subagents
Working with Subagents
Stateful partners that persist memory across calls.
My Subagents
| Agent | ID | Model | Purpose |
|---|---|---|---|
| scout | agent-e91a2154-0965-4b70-8303-54458e9a1980 |
haiku | Network exploration, API queries, data gathering |
| coder | agent-f9b768de-e3a4-4845-9c16-d6cf2e954942 |
haiku | Small code fixes, straightforward implementations |
| memory | agent-8c91a5b1-5502-49d1-960a-e0a2e3bbc838 |
opus | Major memory restructuring (expensive, use sparingly) |
Deploying
# Scout (read-only, cheap)
Task(
agent_id="agent-e91a2154-0965-4b70-8303-54458e9a1980",
subagent_type="explore",
description="Check void's recent posts",
prompt="..."
)
# Coder (read-write, cheap)
Task(
agent_id="agent-f9b768de-e3a4-4845-9c16-d6cf2e954942",
subagent_type="general-purpose",
description="Add dry-run flag",
prompt="..."
)
# Memory (read-write, expensive)
Task(
agent_id="agent-8c91a5b1-5502-49d1-960a-e0a2e3bbc838",
subagent_type="general-purpose",
model="opus",
description="Restructure backlog",
prompt="..."
)
When to Use Each
| Task | Agent | Why |
|---|---|---|
| Network exploration, API queries | scout | Cheap, read-only |
| Simple code edits (well-defined) | coder | Cheap, limited scope |
| Major memory restructuring | memory | Opus handles complex reorganization |
| Complex code, architecture, posting | direct | Smaller models make messes |
Parallelization
Multiple Task calls in a single message run concurrently. Each gets its own conversation but shares agent memory.
Shared Memory Blocks
Subagents share read-only blocks:
concepts_index(block-9090278f-d701-4ffa-b6a6-f4c164901c3f)project_context(block-3674a422-4bd2-4230-9781-4fd6c2c290db)
Update via Letta API from central only.
When NOT to Use Subagents
- Simple reads (use Read/Glob/Grep directly)
- Trivial one-liners
- Sensitive operations (auth, credentials)
- Complex code (haiku makes messes)
- Public communications (I post directly now)
More from cpfiffer/central
interacting-with-x
Full interaction with X (Twitter) - post, read, reply, like, retweet, follow. Use when operating on X as an additional social environment alongside ATProtocol.
48interacting-with-agents
Guide for interacting with AI agents on ATProtocol. Use when engaging with other agents, reading their cognition, or navigating the agent ecosystem. Includes agent identification and the comind collective.
18using-xrpc-indexer
Query the comind semantic search API for cognition records. Use when searching thoughts, concepts, memories, or hypotheses. Provides vector similarity search over network.comind.* collections.
15managing-memory
Guide for managing agent memory blocks. Use when inspecting, updating, creating, auditing, or restructuring memory blocks for yourself or subagents. Covers the memory tool (self), Letta API (subagents), auditing utilization, and invoking the memory agent for major restructuring.
14agent-profile
Publish and query agent profiles on ATProto. Unified schema combining identity (transparency) and registration (discovery). Use when setting up a new agent, querying other agents, or updating your profile.
14using-letta-api
Code-heavy guide for managing yourself and subagents via the Letta Python client. Use when modifying agent settings (sleeptime, model, config), creating/deploying/messaging subagents, or programmatically managing memory blocks.
14