Hey! I wanted to share a piece of feedback from building a setup with specialized subagents:
Certain operational rules/invariants need to apply to a specific subset of subagents (e.g., 3 out of 10), but not globally:
- Skills / model_decision aren’t the same as a system prompt: Even if the subagent loads them every time, it adds non-deterministic cognitive overhead. More importantly, dynamically retrieved content gets pushed up into conversation history and begins to blur over long, multi-turn reasoning. A system prompt stays firmly anchored in the model’s attention across the entire run.
- Global always_on rules bloat the shared token budget and pollute unrelated agents.
- Manually maintaining copies/includes in each agents/.md is tedious and causes config drift across dozens of subagents.
It would be awesome to modularly attach rules directly to subagents so they bake into their system prompt:
In rules/my_rule.md:
trigger: always_on
subagents: [investigator, thread-auditor]
Or in agents/my_agent.md:
rules: [strict-evidence, formatting-invariants]
This would give us modular, DRY composition while keeping critical invariants firmly anchored in the subagent’s system prompt.