Skip to content

feat: agentsync optimize --apply writes suggested model and effort - #21

Merged
llbbl merged 1 commit into
mainfrom
feat/optimize-apply
Oct 20, 2026
Merged

llbbl merged 1 commit into
mainfrom
feat/optimize-apply

Conversation

@llbbl

@llbbl llbbl commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • agentsync optimize --apply writes each suggested model and effort into the agent's real file. For a linked agent that is the canonical file; the link stays a link.
  • Only the model: and effort: lines are edited, byte-for-byte.
  • Output reports how many projects link each written file and reminds that the canonical repo is not committed.

Refusals

  • Refusal (exit 1): a file changed since it was read, foreign links, dereferenced copies, read-only files, and frontmatter that cannot be edited safely.
  • Unreadable state or a write failure (exit 2).

Verification

A live run against OpenRouter on a scratch canonical repo changed exactly one line and left doctor clean.

Refs #2

Writes each suggested change into the agent's real file (a linked
agent's canonical file; the link stays a link), editing only the
model: and effort: lines byte-for-byte.

Refuses a file changed since it was read, foreign links, dereferenced
copies, read-only files and frontmatter it cannot edit safely. Reports
how many projects link each written file and reminds that the canonical
repo is not committed.
@llbbl
llbbl merged commit ad095b3 into main Oct 20, 2026
2 checks passed
@llbbl
llbbl deleted the feat/optimize-apply branch October 20, 2026 01:38
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