Custom flags
Custom flags 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 flag
- Navigate to your repository in the Pullfrog console
- Scroll to the Flags section
- Click Add flag
- Enter a tag (e.g.,
refactor) and the replacement text
--refactor and --Refactor are different flags.

Using flags
Once defined, use your flag 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:
Precedence
When flags 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 flag set for the specific trigger
- Repository custom instructions (lowest) — The default flag for the repo
If the same flag appears multiple times in the same location, the last occurrence wins. Higher-priority sources override lower ones.

