8000 Let maintainers declare a default reasoning effort for an agent · Issue #107 · dominikbraun/openlune · GitHub
[go: up one dir, main page]

Skip to content

Let maintainers declare a default reasoning effort for an agent #107

Backlog

Description

@dominikbraun

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:

  1. Portable vocabulary at agents.<id>.effort. Accept low, medium, or high (or omitted/null to 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's model[effort=...]). Reject any other value at the top level with an error pointing maintainers to agents.<id>.clients.<client>.effort for client- or model-specific tiers (xhigh, max, minimal, none, etc.).
  2. Client overrides keep native semantics. agents.<id>.clients.<client>.effort continues to accept client-validated values and overrides agents.<id>.effort when set. Omitted and null under clients.<client>.effort stay equivalent and inherit agents.<id>.effort, matching clients.<client>.capabilities and avoiding an omitted-vs-null distinction in YAML.
  3. Claude Code, Copilot, and Codex. Render the resolved effort through their existing standalone native fields (effort, reasoning-effort, model_reasoning_effort).
  4. 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.).
  5. Cursor. Preserve "deviations, not failures" for portable declarations while still catching mistakes in explicit clients.cursor configuration:
    • Portable effort, no concrete model (clients.cursor.model omitted or inherit): render without applying effort, mark effort as inherited, and emit a deviation so openlune check and Cursor contributors are not blocked.
    • Portable effort, concrete clients.cursor.model without inline effort: compose into model[effort=<value>] automatically.
    • Portable effort, clients.cursor.model with inline [effort=...] (and no clients.cursor.effort): let the more specific clients.cursor.model take precedence rather than failing with a conflict, keeping model as authored and effort inherited in review metadata (matching existing inline-only behavior).
    • Explicit clients.cursor.effort: keep existing hard errors when clients.cursor.model is omitted/inherit or contains a conflicting inline [effort=...].

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 in internal/manifest, rejecting other nonblank values with actionable guidance toward clients.<client>.effort.
  • Resolve agents.<id>.effort with clients.<client>.effort override in Manifest.Resolve, carrying whether the resolved effort came from a client override on spec.Agent.
  • Update internal/adapter/cursor to handle portable effort according to the rules above (deviate without concrete model, compose with concrete model, yield to inline [effort=...] on clients.cursor.model) while preserving existing errors for explicit clients.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 like max);
    • compilation across claude-code, copilot, codex, antigravity, and cursor;
    • Cursor portable-effort deviation (omitted model and model: inherit), composition with concrete clients.cursor.model, precedence of inline [effort=...], and retained errors for invalid/conflicting explicit clients.cursor.effort;
    • CLI plan and check output for portable effort and Cursor/Antigravity deviations.

Out of scope

  • A portable agents.<id>.model field (model identifiers remain client-specific).
  • Non-universal effort levels (xhigh, max, minimal, none) at the top-level agents.<id>.effort field.
  • Clearing a top-level agents.<id>.effort back to client default for an individual client via clients.<client>.effort: null or a sentinel value.

Activity

  1. added
    enhancement
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0