Skip to content

Commit 077894d

Browse files
committed
docs(agents.instructions): update agent configuration options
* Removed 'infer' option and replaced it with 'user-invocable' and 'disable-model-invocation'. * Clarified the purpose of new options for better usability. * Updated guidelines to reflect changes in agent invocation behavior.
1 parent ab8d6b5 commit 077894d

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

instructions/agents.instructions.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ name: 'Agent Display Name'
2727
tools: ['read', 'edit', 'search']
2828
model: 'Claude Sonnet 4.5'
2929
target: 'vscode'
30-
infer: true
3130
---
3231
```
3332

@@ -61,10 +60,15 @@ infer: true
6160
- If omitted, agent is available in both environments
6261
- Use when agent has environment-specific features
6362

64-
#### **infer** (OPTIONAL)
65-
- Boolean controlling whether Copilot can automatically use this agent based on context
63+
#### **user-invocable** (OPTIONAL)
64+
- Boolean controlling whether the agent appears in the agents dropdown in chat
6665
- Default: `true` if omitted
67-
- Set to `false` to require manual agent selection
66+
- Set to `false` to create agents that are only accessible as subagents or programmatically
67+
68+
#### **disable-model-invocation** (OPTIONAL)
69+
- Boolean controlling whether the agent can be invoked as a subagent by other agents
70+
- Default: `false` if omitted
71+
- Set to `true` to prevent subagent invocation while keeping it available in the picker
6872

6973
#### **metadata** (OPTIONAL, GitHub.com only)
7074
- Object with name-value pairs for agent annotation
@@ -850,7 +854,9 @@ Each level can override settings from previous levels.
850854
- [ ] `tools` configured appropriately (or intentionally omitted)
851855
- [ ] `model` specified for optimal performance
852856
- [ ] `target` set if environment-specific
853-
- [ ] `infer` set to `false` if manual selection required
857+
- [ ] Use `user-invocable: false` to hide from picker while allowing subagent invocation
858+
- [ ] Use `disable-model-invocation: true` to prevent subagent invocation while keeping picker visibility
859+
854860

855861
### Prompt Content
856862
- [ ] Clear agent identity and role defined

0 commit comments

Comments
 (0)