Skip to content

Add pscale insights agent commands - #1531

Merged
no-itsbackpack merged 2 commits into
mainfrom
egomez/insights-agent-commands
Nov 17, 2026
Merged

no-itsbackpack merged 2 commits into
mainfrom
egomez/insights-agent-commands

Conversation

@no-itsbackpack

Copy link
Copy Markdown
Contributor

Adds pscale insights agent for working with the Insights Agent on a branch. You can list a branch's runs, show one run with its stages and the pull request it opened, start a new run, and cancel a pending or running one. You can also list the branch's run schedules and turn a run type on or off or change when it runs.

runs create takes up to five --fingerprints with their --keyspace to review slow queries, or up to five --schema-recommendation numbers to implement schema recommendations.

pscale insights agent runs create mydb main --org myorg --fingerprint 59801dae501c --keyspace mydb
pscale insights agent runs show mydb main 12 --org myorg
pscale insights agent schedules update mydb main slow_query --org myorg --enabled --frequency week --day-of-week 1 --time 03:00 --time-zone America/New_York

🤖 Generated with Claude Code

List, show, start, and cancel Insights Agent runs on a branch, and list
or change its run schedules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@no-itsbackpack
no-itsbackpack marked this pull request as ready for review November 17, 2026 17:43
@no-itsbackpack
no-itsbackpack requested a review from a team as a code owner November 17, 2026 17:43

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 31edd79. Configure here.

--format csv only accepts a list, so the updated schedule is wrapped in one,
the same way the run commands print a single run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@no-itsbackpack
no-itsbackpack merged commit 48817e7 into main Nov 17, 2026
5 checks passed
@no-itsbackpack
no-itsbackpack deleted the egomez/insights-agent-commands branch November 17, 2026 20:02
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.

2 participants