Repository navigation
Description
Problem statement
The best models, but the best models come with a price.
Using pullfrog i used my weekly limits 2-3x faster just on reviews.
Its not froggos fault, and its better than shipping bad code, but i feel like the usage could be lower.
Proposed solution
Ideally we would be able to assign diferent models for diferent tasks ex:
Labeling would use model GPT 5.5 low
Issue enricher would use GPT Luna medium
PR reviews GPT Sol High
etc..
I personally set Sol High for my reviews, but it could get expensive having to use it on any small task, especially if i set it to auto review and auto reply and solve issues.
But we could get a little fancier and maybe have an agent that would manage what model will be used for the specific task and complexity.
For simple issues replies or labeling it would assign a cheap lower tier model.
Reviews it would use a medium tier model to analyse the complexity of the PR or Commits and would then assign the appropriate model to it.
Ex: A new PR was opened, its medium complexity but since its the first review the agent would assign a model like GPT Sol High for the first review, the commits later are smaller and just small fixes so it would assign a medium to lower tier model depending on the complexity of the changes.
Maybe also a temporary memory during the PR being opened so the higher model can pass down information to lower models.
The options are trully endless, the configuration, skills etc.
And if it lowers the usage of reviews while maintaining the quality its the best scenario, especially token users and high production-large codebase people.
Use case
It would take some fine tuning to get the perfect settings, maybe in the beggining when in doubt make it assign a higher model.
But it is beneficial to everyone in general, with tokens cost going through the roof, plans being basically impossible to use all the credits a year ago to now you can spend the weekly credits in 1 full production day.
Hopefully you can consider this, would not be a hard implementation if manually set by user.
Alternatives considered
Alternatively, a quick implementation would be to let the user tag pullfrog asking for a review and informing what model to use.
I already have a agent rule where it tags pullfrog when we are ready to review, adding a new rule where it will analyse the commits and its difficulty and assigning a model when tagging pullfrog would be a simpler workaround.
Not sure if this is already a possibility, but i could not find it.
Additional context
No response
Activity
pullfrog commentedon Aug 25, 2026
Plan: models per task
Actionable. Two things worth saying up front: part of this already ships today, and the part that doesn't is constrained by when Pullfrog resolves the model.
No duplicate issues found.
What already works today
1. Per-run model override when tagging — the "Alternatives considered" workaround already exists. A
--model=<slug>flag in an@pullfrogcomment is stripped and applied server-side, and hard-fails before the agent spawns if the run can't serve that model (utils/modelAccess.ts,main.ts:377-403). So@pullfrog review --model=gpt-solworks now.2. Per-trigger standing defaults —
utils/modelAccess.ts:6-11documents three provenances for a non-explicit standing model: the repo setting, a model flag in org/repo base instructions, and "a trigger's fallback instructions". So putting--model=<cheap-slug>in an automation's event-level instructions should already pin that automation to a cheaper model. The console surface for this lives in a separate repo (pullfrog/app), so I can't verify the UX from here — but the action honors it.3. Review fan-out is already downshifted —
agents/subagentModels.ts+ thesubagentModelfield inmodels.tsmean the review orchestrator already runs its lens subagents on a cheaper sibling (claude-opus→claude-sonnet,gpt-sol→gpt-terra). The expensive model is spent on orchestration and the final verdict, not on every lens. The bulk of review token spend is already tiered.4. Cross-run PR memory exists — the "temporary memory during the PR so the higher model can pass down information to lower models" idea is implemented as the rolling PR summary snapshot (
mcp/selectMode.tsbuildSummaryAddendum). It is a durable per-PR context file, written at end-of-run, read by the next run on that PR. It is exactly the handoff channel needed for a first-review-high / follow-ups-cheap split.Suggestion for the author: before any new feature lands, try
--model=in the event instructions for the labeling and issue-enrichment automations. That likely captures most of the savings described.The architectural constraint
The mode (
Review,Plan,Build,Task…) is chosen by the agent, mid-run, viaselect_mode— after the model is resolved and the harness is spawned. AndresolveAgentpicks claude-code vs opencode from the model, so changing the model changes the runner too (utils/agent.ts:127-192).So "a model per mode" is not implementable as stated. The unit that is known before dispatch is the trigger (
PayloadEvent.triggerinexternal.ts— 15 variants:issues_opened,issues_labeled,pull_request_opened,pull_request_synchronize,fix_review,implement_plan, …). Any per-task model config must key on trigger/automation, not mode.Milestone 1 — per-automation model config (the ask, minus the fancy part)
Let each automation carry its own model + effort, defaulting to the repo default.
pullfrog/app, out of scope for this repo): store a model/effort per automation; the dispatcher already knows the trigger and already writespayload.model, so it just writes the automation's model instead of the repo default.modelExplicitstaysfalseso a missing key soft-falls-back rather than hard-failing.resolvePayload(utils/payload.ts:214) readsjsonPayload.modelfirst, so a server-resolved per-automation model flows through untouched.modelByTrigger: Record<string, string> | nulltoRepoSettings(utils/runContext.ts:28) +defaultSettings, then inresolvePayloadslotrepoSettings.modelByTrigger?.[event.trigger]betweeninputs.modelandrepoSettings.model. Small and self-contained.formatModelLabel(utils/buildPullfrogFooter.ts); a per-automation pick should surface there so nobody is surprised by which model answered.This is the version that is "not a hard implementation if manually set by user" — and it is mostly a console/dispatcher change, not an action change.
Milestone 2 — cheap escalation heuristics (no router agent)
Rather than a model-picking agent, use signals the dispatcher already has:
pull_request_opened/pull_request_ready_for_review→ high tier;pull_request_synchronize→ lower tier. This is a pure config split under Milestone 1, and the PR summary snapshot already carries the first review's understanding forward.utils/changeImpact.ts. If a comparable signal is available server-side at dispatch, a size threshold could pick a tier without spending a model call on the decision.Deterministic, auditable, and free. Worth doing before anything LLM-driven.
Milestone 3 — complexity-routing agent (recommend deferring)
A triage model that reads the diff and picks the tier is the expensive version of Milestone 2, and it fights the architecture:
agent.runresolving), but it doubles spawn latency, loses context across the boundary, and may switch harnesses mid-run.Either way it should be judged against Milestone 2's free heuristics — a triage call that costs 5% of a review to save 30% only pays off if it beats a size threshold, and that is an empirical question, not a design one.
Recommendation
Milestone 1 + 2 deliver essentially all of the stated benefit at low risk. Both are primarily
pullfrog/appwork; the action needs at most one additiveRepoSettingsfield. Milestone 3 should wait until 1 and 2 are measured.Happy to implement the action-side
modelByTriggerfield if the maintainers want the config to live in repo settings — say the word and I'll open a PR.Claude Opus(free via Pullfrog for OSS) | 𝕏colinhacks commentedon Oct 29, 2026
Most of this has shipped as Smart model selection, included in the Pro and Organization plans. Pick Smart in the repo's Model card and Pullfrog chooses the model and reasoning effort for each run from your provider's ladder — for OpenAI, Luna → Terra → Sol → Astra:
We deliberately didn't go with a hardcoded model per task. It's a bit of a footgun: a fixed pick is either too weak for the hard PR or wasted on the easy one, and it goes stale as models change. In general, Smart on Pro pays for itself many times over in model spend.
Reviews also run their parallel sub-reviewers on a cheaper sibling model, and each PR keeps a running summary that the next run picks up. Docs
Closing as shipped. If Smart doesn't fit your setup, reopen and say what's missing.