Repository navigation
Description
Problem
Currently, reasoning effort can only be configured per client under agents.<id>.clients.<client>.effort. Unlike model, which is vendor- and client-specific, reasoning effort expresses portable author intent (for example, wanting a review or architecture agent to reason deeply regardless of which client a contributor uses).
Today, a maintainer who wants the same effort across clients has to repeat it under claude-code, copilot, and codex, and keep those client blocks in sync.
Decision
Add a portable default agents.<id>.effort field that resolves cleanly across all five clients:
- Portable vocabulary at
agents.<id>.effort. Acceptlow,medium, orhigh(or omitted/nullto inherit the client's session default). These three values are the shared common denominator across clients that support reasoning effort (claude-code,copilot,codex, and Cursor'smodel[effort=...]). Reject any other value at the top level with an error pointing maintainers toagents.<id>.clients.<client>.effortfor client- or model-specific tiers (xhigh,max,minimal,none, etc.). - Client overrides keep native semantics.
agents.<id>.clients.<client>.effortcontinues to accept client-validated values and overridesagents.<id>.effortwhen set. Omitted andnullunderclients.<client>.effortstay equivalent and inheritagents.<id>.effort, matchingclients.<client>.capabilitiesand avoiding an omitted-vs-nulldistinction in YAML. - Claude Code, Copilot, and Codex. Render the resolved effort through their existing standalone native fields (
effort,reasoning-effort,model_reasoning_effort). - Antigravity. Keep existing behavior: Antigravity has no effort setting on custom agents and already emits a deviation (
Antigravity custom agents have no effort setting; the declared effort is not applied.). - Cursor. Preserve "deviations, not failures" for portable declarations while still catching mistakes in explicit
clients.cursorconfiguration:- Portable effort, no concrete model (
clients.cursor.modelomitted orinherit): render without applying effort, mark effort as inherited, and emit a deviation soopenlune checkand Cursor contributors are not blocked. - Portable effort, concrete
clients.cursor.modelwithout inline effort: compose intomodel[effort=<value>]automatically. - Portable effort,
clients.cursor.modelwith inline[effort=...](and noclients.cursor.effort): let the more specificclients.cursor.modeltake precedence rather than failing with a conflict, keepingmodelas authored and effort inherited in review metadata (matching existing inline-only behavior). - Explicit
clients.cursor.effort: keep existing hard errors whenclients.cursor.modelis omitted/inheritor contains a conflicting inline[effort=...].
- Portable effort, no concrete model (
The small distinction between a portable default and an explicit clients.<client>.effort earns its place by giving Cursor contributors a non-blocking deviation on portable manifests while still failing fast on broken clients.cursor blocks and avoiding spurious conflicts when clients.cursor.model embeds an inline effort.
What this needs
- Add
effort(low,medium,high) to top-level agent declarations ininternal/manifest, rejecting other nonblank values with actionable guidance towardclients.<client>.effort. - Resolve
agents.<id>.effortwithclients.<client>.effortoverride inManifest.Resolve, carrying whether the resolved effort came from a client override onspec.Agent. - Update
internal/adapter/cursorto handle portable effort according to the rules above (deviate without concrete model, compose with concrete model, yield to inline[effort=...]onclients.cursor.model) while preserving existing errors for explicitclients.cursor.effort. - Tests through production entry points covering:
- manifest validation (
low/medium/high, invalid top-level values, omitted/null, client overrides including client-specific values likemax); - compilation across
claude-code,copilot,codex,antigravity, andcursor; - Cursor portable-effort deviation (omitted model and
model: inherit), composition with concreteclients.cursor.model, precedence of inline[effort=...], and retained errors for invalid/conflicting explicitclients.cursor.effort; - CLI
planandcheckoutput for portable effort and Cursor/Antigravity deviations.
- manifest validation (
Out of scope
- A portable
agents.<id>.modelfield (model identifiers remain client-specific). - Non-universal effort levels (
xhigh,max,minimal,none) at the top-levelagents.<id>.effortfield. - Clearing a top-level
agents.<id>.effortback to client default for an individual client viaclients.<client>.effort: nullor a sentinel value.
Activity