Runtime behavior overlays that modify how the assistant operates — through context injection, tool moderation, and visual feedback
Sometimes you want to think through a problem before writing code. But the assistant doesn't know that.
Not just "block tools" — guide the assistant's mindset
The prompt changes to show the active mode
ModeDiscovery searches 5 paths: project, user, bundle, config, composed bundles
parse_mode_file() extracts YAML frontmatter config + markdown context text
provider:request hook injects mode guidance as <system-reminder source="mode-*">
tool:pre hook checks each tool call against the mode's safe/warn/confirm/block policy
"confirm" tools delegated to hooks-approval via require_approval_tools in session state
mode tool exposes set, clear, list, current operations. Default gate policy is "warn" to prevent accidental transitions.
Any bundle can contribute modes by placing .md files in a modes/ directory
.amplifier/modes/ or ~/.amplifier/modes/. Define YAML frontmatter with name, description, tool policies, and default_action. The markdown body becomes context injection text.
Data as of: February 20, 2026
Feature status: Active
Repository: microsoft/amplifier-bundle-modes
Research performed:
find ~/.amplifier/cache -path "*modes*" -type f (20+ files found)cat modes/plan.md, modes/explore.md, modes/careful.mdcat behaviors/modes.yaml (hooks-mode + hooks-approval + tool-mode)git log --oneline (1 commit visible in shallow clone)git log --format="%an" | sort | uniq -c → Brian Krabach (1 commit)find . -type f -name "*.py" | xargs wc -l → 2,045 lines Pythonfind . -not -path './.git/*' -type f | xargs wc -l → 2,622 lines totalfind ~/.amplifier/cache -name "*.md" -path "*/modes/*" → 13 mode files across 3 bundleshead -80 modules/tool-mode/amplifier_module_tool_mode/__init__.py (confirmed set/clear/list/current operations)git remote -v → https://github.com/microsoft/amplifier-bundle-modesGaps: Shallow clone limits git history to 1 commit. Full commit count, development timeline, and complete contributor list unavailable. Bundle.md references a "review" mode in examples but no review.md exists — the actual third mode is "careful".
Primary contributor: Brian Krabach (100% of visible commits)