Copilot CLI agent behaviour from docs #187

Closed
opened 2026-11-22 16:08:44 +00:00 by Claude · 1 comment
Owner

Part of #166

Question

Copilot CLI is a runtime v1 writes to but cannot test, because there is no account. What do Copilot CLI's current docs, changelog and issue tracker say about these behaviours?

  1. A main session started with --agent delegating to a custom subagent.
  2. A pinned model in an agent definition being honoured, including for agents deployed by apm (older issues reported it being ignored). Are those issues open or fixed, and in which version?
  3. An agent with a strict tools list needing agent (or the equivalent tool name) to delegate.
  4. Hook support for deny and ask on pre-tool-use, which the delivery guard hook relies on.

Answer each with a primary source. Any open bug becomes a documented limitation of the delivery agents, not a design change.

Part of #166 ## Question Copilot CLI is a runtime v1 writes to but cannot test, because there is no account. What do Copilot CLI's current docs, changelog and issue tracker say about these behaviours? 1. A main session started with `--agent` delegating to a custom subagent. 2. A pinned `model` in an agent definition being honoured, including for agents deployed by apm (older issues reported it being ignored). Are those issues open or fixed, and in which version? 3. An agent with a strict tools list needing `agent` (or the equivalent tool name) to delegate. 4. Hook support for `deny` and `ask` on pre-tool-use, which the `delivery` guard hook relies on. Answer each with a primary source. Any open bug becomes a documented limitation of the `delivery` agents, not a design change.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 16:08:44 +00:00
Claude added the Wayfinder/Research label 2026-11-22 16:08:44 +00:00
Claude added a new dependency 2026-11-22 16:09:34 +00:00
Defame1297 was assigned by Claude 2026-11-22 16:26:44 +00:00
Author
Owner

Resolution

Findings: docs/research/copilot-cli-agents/copilot-cli-agents.md on research/copilot-cli-agents (throwaway branch, never merged). Docs-only. Sources are docs.github.com and the github/copilot-cli changelog and issues, up to v1.0.114 (2026-11-18).

  1. --agent delegating to a subagent: yes, interactive and -p. It is inferred: the session agent dispatches through the task tool, and changelog v1.0.49, v1.0.81 and v1.0.106 back it, but no doc page states it outright. Agents load from .github/agents/, .claude/agents/, ~/.copilot/agents/ and plugins.
  2. Pinned model: honoured since #980 was fixed in v0.0.415. It is overridden without warning by --model, a user subagents override or an Auto session, unless the agent sets model-policy: required. An unavailable model silently falls back. Open: #4437 (a same-named .claude/agents model overrides the .github/agents one). #2950 auto-closed as fixed in v1.0.91, but no changelog entry confirms it.
  3. Tools list: a restricted tools list must include agent (custom-agent and Task also work). Unknown tool names are ignored silently.
  4. preToolUse hooks: support allow, deny and ask (since v1.0.4); exit code 2 denies, other errors deny, timeouts let the call through.

Limitations for the delivery agents

  • Set model-policy: required on every agent, or the pinned model isn't guaranteed.
  • ask can't be the only gate for odd jobs on Copilot:
    • #3590 (open): the TUI auto-approves ask since v1.0.53.
    • Autopilot and cloud turn ask into deny.
    • -p behaviour is undocumented.
  • Hook loading isn't guaranteed:
    • timeouts let the call through (#2893)
    • plugin-defined preToolUse hooks reportedly never fire (#2540)
    • repo hooks under -p load only in a trusted folder
  • AGENTS.md: subagents get it only with include-custom-instructions: true.
  • Other open issues:
    • #5124: the --agent selection is dropped right after interactive startup.
    • #4752: --agent can't find agents that exist only in --add-dir directories.
    • #5543: nested subagents run synchronously.
    • Agents named like a built-in (task, explore, code-review) are never delegated to.

The full list with citations is in the findings note. These go to the guard hook and implement-stage tickets as inputs.

## Resolution Findings: [`docs/research/copilot-cli-agents/copilot-cli-agents.md` on `research/copilot-cli-agents`](https://git.rkdr.net/Mortis/Holocron/src/branch/research/copilot-cli-agents/docs/research/copilot-cli-agents/copilot-cli-agents.md) (throwaway branch, never merged). Docs-only. Sources are docs.github.com and the github/copilot-cli changelog and issues, up to v1.0.114 (2026-11-18). 1. **`--agent` delegating to a subagent:** yes, interactive and `-p`. It is inferred: the session agent dispatches through the `task` tool, and changelog v1.0.49, v1.0.81 and v1.0.106 back it, but no doc page states it outright. Agents load from `.github/agents/`, `.claude/agents/`, `~/.copilot/agents/` and plugins. 2. **Pinned `model`:** honoured since #980 was fixed in v0.0.415. It is overridden without warning by `--model`, a user `subagents` override or an Auto session, unless the agent sets `model-policy: required`. An unavailable model silently falls back. Open: #4437 (a same-named `.claude/agents` model overrides the `.github/agents` one). #2950 auto-closed as fixed in v1.0.91, but no changelog entry confirms it. 3. **Tools list:** a restricted `tools` list must include `agent` (`custom-agent` and `Task` also work). Unknown tool names are ignored silently. 4. **preToolUse hooks:** support `allow`, `deny` and `ask` (since v1.0.4); exit code 2 denies, other errors deny, timeouts let the call through. **Limitations for the `delivery` agents** - **Set `model-policy: required`** on every agent, or the pinned model isn't guaranteed. - **`ask` can't be the only gate for odd jobs on Copilot:** - #3590 (open): the TUI auto-approves `ask` since v1.0.53. - Autopilot and cloud turn `ask` into deny. - `-p` behaviour is undocumented. - **Hook loading isn't guaranteed:** - timeouts let the call through (#2893) - plugin-defined preToolUse hooks reportedly never fire (#2540) - repo hooks under `-p` load only in a trusted folder - **AGENTS.md:** subagents get it only with `include-custom-instructions: true`. - **Other open issues:** - #5124: the `--agent` selection is dropped right after interactive startup. - #4752: `--agent` can't find agents that exist only in `--add-dir` directories. - #5543: nested subagents run synchronously. - Agents named like a built-in (`task`, `explore`, `code-review`) are never delegated to. The full list with citations is in the findings note. These go to the guard hook and implement-stage tickets as inputs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#187