Custom macros
Custom macros let you define reusable text snippets for your repository. For example, you could create#refactor that expands to detailed refactoring instructions, or #security that includes your team’s security review checklist.
Creating a macro
- Navigate to your repository in the Pullfrog console
- Scroll to the Macros section
- Click Add macro
- Enter a tag (e.g.,
refactor) and the replacement text
#refactor and #Refactor are different macros.
Using macros
Once defined, use your macro by including#tag anywhere Pullfrog reads instructions:
- Repository custom instructions — Set defaults that apply to all runs
- Trigger-level instructions — Customize behavior for specific triggers
- GitHub issue body — Include when creating a new issue
- GitHub comment — Include when mentioning
@pullfrog
#refactor to expand to “Follow the boy scout rule: leave code cleaner than you found it. Extract duplicated logic into shared utilities. Prefer composition over inheritance.”, then:
Built-in macros
Pullfrog includes built-in macros for controlling effort level and timeout:| Macro | Effect |
|---|---|
#mini | Use fast models with minimal reasoning |
#auto | Use balanced defaults (this is the default) |
#max | Use the most capable models with maximum reasoning |
#timeout30m | Set custom timeout (e.g., “#timeout10m”, “#timeout1h30m”, “#timeout2h”). Default: 1h |
#notimeout | Disable timeout entirely |
You cannot create custom macros with the same names as built-in macros (
#mini, #auto, #max, #timeout, #notimeout).Precedence
When macros appear in multiple places, more specific locations take precedence:- GitHub prompt (highest) — The comment or issue/PR body that triggered the run
- Trigger-level instructions — The macro set for the specific trigger
- Repository custom instructions (lowest) — The default macro for the repo
If your repo instructions include
#mini but you comment “@pullfrog fix this bug #max”, the run will use #max. If the same macro appears multiple times in the same location, the last occurrence wins.
