# dm-subagents

Bundled DM extension for delegating tasks to specialized agents.

## Included tools and commands

- `Agent` tool: launch a foreground or background subagent
- `get_subagent_result` tool: fetch the status/result of a background subagent
- `steer_subagent` tool: send a steering message to a running subagent
- `/agents`

## Current upstream shape

This package is synced from the gotgenes package source release `v6.16.1`, then rebranded to `dm-subagents`.
The gotgenes source-layout release does not include the earlier local DM `/run`, `/chain`, `/parallel`, `/audit`, or `/subagents-status` overlay; porting that overlay is tracked as a follow-up guardrail, not silently claimed here.

## Default paths

- User agents: `~/.dm/agent/agents/{name}.md`
- Project agents: `.dm/agents/{name}.md`
- Config: `~/.dm/agent/extensions/subagent/config.json`

## Environment

- Preferred recursion env: `DM_SUBAGENT_MAX_DEPTH`
- Compatibility fallback still accepted: `PI_SUBAGENT_MAX_DEPTH`

## Bundled with dm

No separate install step is required. The extension ships inside DM's bundled extension catalog and uses the `dm` CLI by default for delegated runs.
