Execute Runbooks
Runbooks are predefined response procedures that guide you through incident remediation.
They can include automated actions (restart a service, scale infrastructure, query logs) and manual steps (verify with a customer, check a dashboard).
Executing runbooks during an incident ensures you follow standardized procedures rather than working from memory under pressure.
View Attached Runbooks
Some runbooks are automatically attached to an incident based on the incident type and trigger conditions configured by your administrator.
-
Open the Incident Details page.
-
Click the Runbooks tab.

-
Review any runbooks that are already attached.

Execute a Runbook
From the Harness UI
- On the Runbooks tab, click Execute on an attached runbook — or click Execute Additional Runbook to add and run a different one.
- If adding a new runbook, search for or browse available runbooks, select the appropriate one, and confirm.
- Work through the steps in order:
- Automated steps run on their own and report results (success, failure, output). Review the results before proceeding.
- Manual steps provide instructions for you to follow. Mark each step complete as you go.
- Execution progress is logged in the incident timeline, giving full visibility to other responders and stakeholders.
- Click Close when execution is completed.
From Slack (Using Slugs)
If your runbooks have been configured with slugs, you can execute them directly from Slack without navigating the Harness UI.
Prerequisites:
- Slack authentication: You must authenticate Slack with Harness AI SRE before using slug commands.
- Runbook slugs configured: Administrators must assign slugs to runbooks. Go to Create Runbooks to learn how slugs are configured.
Execute a runbook by slug:
From an incident Slack channel, type:
/harness run <slug>
Replace <slug> with the runbook's short identifier (e.g., /harness run restart-pods).
List available slugs:
If you do not know which slugs are available, type:
/harness run
The system responds with a list of all runbook slugs available for the current project and incident.
Why use Slack slugs?
- Faster response: Execute runbooks instantly without switching tools during high-pressure incidents.
- Muscle memory: Common slugs (e.g.,
rollback,scale-up) become second nature to on-call responders. - Lower MTTR: Reduce mean time to resolution by removing UI navigation from the response path.
Go to Use Slack Commands for complete documentation on runbook slug commands.
Choose the Right Runbook
If you're unsure which runbook to use:
- Check the incident type — Your administrator has likely associated recommended runbooks with each type. Auto-attached runbooks are the first place to look.
- Browse the runbook library — Navigate to Runbooks in the left panel to see all available runbooks, their descriptions, and which incident types they're designed for.
- Ask your team — If multiple runbooks seem applicable, check with teammates in the incident channel.
Best Practices
- Start with auto-attached runbooks — They're pre-selected for the incident type and are usually the most relevant first response.
- Review automated step results before moving on — An automated step might fail or return unexpected output. Verify before proceeding to the next step.
- Don't skip manual steps — Even if you think you know the procedure, follow the runbook. It exists to prevent steps from being missed during high-pressure situations.
- Note deviations — If you need to deviate from the runbook (a step doesn't apply, you take a different action), document what you did in the incident timeline so it's captured for post-incident review.