Skip to content

feat: agentsync optimize suggests model and effort for agents - #19

Merged
llbbl merged 1 commit into
mainfrom
feat/optimize-report
Oct 19, 2026
Merged

llbbl merged 1 commit into
mainfrom
feat/optimize-report

Conversation

@llbbl

@llbbl llbbl commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Asks a decision model (TypeSafe Jev by default, Cloudflare Clef optional) through OpenRouter's Decisions endpoint which Claude model and effort each agent should run on; the options are limited to the Claude family aliases.
  • Only suggests a change above --min-confidence; a part below the threshold is marked low-confidence on its own, per part.
  • The cost cap (--max-cost) is estimated up front and tracked from the reported cost; the run stops when spend can't be tracked.
  • Rows fail closed: a missing, unparseable or out-of-range answer leaves the agent unchanged and says why.
  • Tests never touch the network.

Verification

just check passes on macOS and Linux. New tests were confirmed to fail when the guarded behaviour is broken. Live runs against real agents with Jev and Clef cost under $0.002.

Report only: --apply follows in a separate PR.

Refs #2

`agentsync optimize` asks a decision model (TypeSafe Jev by default, Cloudflare Clef optional) through OpenRouter which Claude model family and effort each agent should run on, and reports current against suggested with the advisor's confidence. It only suggests a change above --min-confidence, refuses to exceed --max-cost, and stops when spend can't be tracked. Report only; nothing is written. Needs $OPENROUTER_API_KEY; every other command stays offline.
@llbbl
llbbl merged commit f69fcea into main Oct 19, 2026
2 checks passed
@llbbl
llbbl deleted the feat/optimize-report branch October 19, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant