Commands: @leftsize Reference

Comment @leftsize <command> on a LeftSize issue to get more detail or to manage the issue. LeftSize answers with a comment, usually within a few seconds. @leftsize help lists all commands.

If your LeftSize issues are in Jira, start commands with /leftsize instead, for example /leftsize explain. See Commands in Jira.

How LeftSize reads commands

  • The mention must be a word of its own. @leftsize explain works at the start of a comment, on a new line or after other text. An email address such as support@leftsize.com or a longer name such as @leftsize-team is not a command.
  • Only the first @leftsize in a comment runs, and only the rest of that line is read. A reason that continues on the next line is cut off after the first line.
  • Commands run when the comment is posted. Editing a comment doesn’t run it again, and a comment is never answered twice, even when GitHub delivers it twice.
  • Comments from bots are ignored, for example from github-actions[bot] or another GitHub App. Post commands as a person.
  • An unknown command, or @leftsize on its own, gets a reply with the list of commands.
  • Commands are case-insensitive: @LeftSize Explain works.

Who can run commands

Anyone who can comment on an issue can run commands on it, on every issue and pull request in a repository where the LeftSize GitHub App is installed. LeftSize doesn’t check repository permissions. On issues LeftSize didn’t open, guidance commands give a general answer, and snooze, ignore and wrong still close the issue.

Use a private repository for LeftSize issues

On a public repository any GitHub user can comment, so anyone could close your LeftSize issues with @leftsize ignore, and the issues show your resource names to everyone. Install LeftSize on a private repository, for example a dedicated cloud-findings repository, and give your team access to it.

Guidance commands

Guidance commands add a comment with more detail about the finding. They don’t change the issue.

@leftsize explain

Explains why the resources were flagged, what the finding means and why it matters.

@leftsize howto

Step-by-step instructions to fix the finding. Alias: @leftsize how-to

@leftsize impact

The cost, risk and dependencies of the finding, with the estimated monthly savings per resource where LeftSize could price it.

@leftsize alternatives

Other ways to address the finding besides the main recommendation. Alias: @leftsize options

@leftsize script [type]

A remediation script for the resources in the issue. Types:

Type What you get
aws-cli AWS CLI commands (default on AWS issues)
azure-cli Azure CLI commands (default on Azure issues)
terraform Terraform changes
powershell Azure PowerShell commands

Without a type you get the CLI of the issue’s cloud: aws-cli on AWS issues, azure-cli on Azure issues. Cloudflare issues default to terraform; each Cloudflare rule has one script (Cloudflare API calls with curl, plus Terraform), whatever type you ask for.

Not every rule has a script of every type. When you ask for a type the rule doesn’t have, LeftSize says which types it has and shows the default one. Many rules have a single script, often CLI commands followed by a Terraform example, that is the same whatever type you ask for.

Example: @leftsize script terraform

Review a script before you run it; most scripts that delete or change resources start in dry-run mode. LeftSize never runs anything in your cloud.

@leftsize prompt

Context about the finding, ready to paste into ChatGPT, GitHub Copilot or Claude, so an AI assistant can help with the fix.

@leftsize help

Lists every command. Alias: @leftsize commands

Issue management commands

These commands close the issue or record feedback.

@leftsize snooze [duration]

Closes the issue (as “completed”) for a while. After the snooze period, the next scan that still finds the problem reopens the issue and comments that the snooze expired. If the problem is gone by then, the issue stays closed.

The duration is a number from 1 to 9999 followed by a unit:

Unit Example Meaning
d 14d days
w 2w weeks
m 3m months (30 days each)
y 1y years (365 days each)

Default: 14d. An invalid duration, such as 0d or 2x, gets an error reply and the issue stays open.

If you close a snoozed issue yourself (reopen it and close it again), LeftSize doesn’t reopen it when the snooze ends.

Example: @leftsize snooze 3m

@leftsize ignore [reason]

Closes the issue as “not planned” for good: LeftSize won’t reopen it, and won’t open a new issue for this rule and scope, including for resources that show up there later. The scope is the resource group (Azure), the account and region (AWS) or the account (Cloudflare).

Add a reason so your team knows why the finding was dismissed. Without one, LeftSize records “No reason provided”. Both of these work:

  • @leftsize ignore This is a shared dev environment, cost is accepted
  • @leftsize ignore reason="This is a shared dev environment, cost is accepted"

To undo an ignore, reopen the issue (see Reopening an issue).

@leftsize wrong [reason]

Reports a false positive. It closes the issue as “not planned”, just like ignore, and records the finding as a false positive so the rule can be improved.

Aliases: @leftsize false-positive, @leftsize fp

Example: @leftsize wrong This VM handles batch jobs that run on weekends

If you’d like us to follow up, also email support@leftsize.com with what the rule got wrong.

@leftsize feedback <message>

Records feedback about the finding. The issue stays open. Without a message, LeftSize replies with how to use the command.

Example: @leftsize feedback The savings estimate seems too high for this resource type

Closing and reopening issues yourself

Closing an issue

When you’ve fixed the resources, close the issue. LeftSize won’t reopen an issue that a person closed, and won’t open a new issue for that rule and scope.

How you close it matters:

Close as Use it when What LeftSize records
Completed (the default) You removed or fixed the resources The resources as fixed, with their estimated savings as realized savings
Not planned You’re keeping the resources No savings. Use @leftsize ignore instead if you want to record why

LeftSize picks up the close as soon as it happens. If a later scan still finds a resource, its savings are taken back, and the issue stays closed.

LeftSize closes issues itself only when you ask it to (snooze, ignore, wrong). It doesn’t close an issue when the resources disappear: the issue keeps the last resource list until you close it. The one exception is a rule LeftSize has retired; its open issues may be closed with a comment that explains why.

Reopening an issue

If you reopen a closed LeftSize issue, LeftSize tracks it again right away: a snooze or ignore on it no longer applies, savings recorded when it was closed are taken back, and the next scan updates the resource list. If the problem is gone by then, the issue stays open until you close it.

How long LeftSize remembers a closed issue

LeftSize remembers closed and ignored issues for as long as the GitHub App is installed, so they don’t come back after a year. Findings that no scan has reported for a year are deleted; when a closed or ignored issue still refers to one, LeftSize keeps only the rule, the scope and a SHA-256 hash of the resource ID. See How It Works.

Plans

Commands work the same on every plan. On the Free plan, LeftSize only opens issues for cost optimization rules, so the other rules have no issues to comment on.

Limits

  • LeftSize handles up to 100 GitHub events per minute per installation. Commands above that rate are dropped; post them again a minute later.

Safety

LeftSize only reads. Commands that would change infrastructure (stop, delete, terminate, deallocate, release, resize, scale, schedule, tag) are blocked, and LeftSize replies that it doesn’t make infrastructure changes. Use @leftsize script to get commands you review and run yourself.

Was this article helpful?

© 2026 LeftSize. Cloud cost optimization for GitHub teams.