Skip to content

feat(automations): Edit with agent (v0.445.0) - #825

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/automation-edit-with-agent
Sep 17, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/automation-edit-with-agent

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Adds Edit with agent… to each automation's menu: opens an interactive session with the automation's own agent, briefed with the current trigger/mode/run-as/task prompt and last 5 runs (+ optional note).

  • automation_propose gains an editOf lane — only changed fields, merged + validated against the live automation at propose time (bad cron, schedule on an event trigger, no-op → refused).
  • Lands as an edit card on the same automation.proposed type (before → after preview; side-by-side task prompt compare). Approve → Automations.update under the Edit form's ownership rule; 409 if the automation changed after the proposal (ignoring enabled), so a human's edit is never reverted.
  • New route POST /api/automations/:id/edit-with-agent; audited automation.edit.session / .proposed / .approved.
  • Test: scripts/automation-edit-proposal-test.cjs (24 checks), added to test:governance (full suite green).

🤖 Generated with Claude Code

…he edit (v0.445.0)

Automations → Edit with agent… opens an interactive session with the
automation's own agent, briefed with its config and recent runs. The agent
proposes the change via automation_propose({ editOf }); an edit card applies
via Automations.update on approval and 409s if the automation changed since.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer merged commit 1a034ba into main Sep 17, 2026
1 check passed
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