Skip to main content
guidesSource-backed

Deep Links into Claude Code Runbooks and Alerts

A practical walkthrough of Claude Code deep links: the claude-cli:// URL scheme, how to build links with repo, cwd, and prompt parameters, embedding them in runbooks and alerts, and the safety model where prompts are inert until you press Enter.

by JPette1783·added 2026-06-05·
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://code.claude.com/docs/en/deep-links, https://github.com/JSONbored/awesome-claude/blob/main/content/guides/deep-links-into-claude-code-runbooks-and-alerts.mdx
Safety notes
A deep link only chooses a directory and pre-fills the prompt box; nothing reaches the model until you read it and press Enter., Treat links from untrusted sources with care: review the pre-filled prompt, especially long ones, before sending, since long prompts can scroll off screen., Permission rules, CLAUDE.md, and directory trust prompts apply to a link-launched session the same as any other session., Administrators can disable handler registration with disableDeepLinkRegistration in managed settings.
Privacy notes
The link itself can be hosted anywhere, but the session always opens locally on the machine where you click; no remote execution occurs., Encode prompts carefully and avoid embedding secrets or sensitive identifiers in shared link URLs., The cwd parameter rejects network and UNC paths; repo only resolves to clones Claude Code has already seen.
Author
JPette1783
Submitted by
JPette1783
Claim status
unclaimed
Last verified
2026-06-05

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

63

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Needs review

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    No reviewed flag detected in metadata.

    Pending

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

Adoption plan

Balanced adoption plan

Current risk score 24/100. Use staged verification before broader rollout.

Risk 24

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    No review metadata found; increase manual validation.

    Pending
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Missing required evidence: Metadata review. Risk score 31.

Risk 31

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Missing

Review metadata is missing.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required gaps: Metadata review

Decision timeline

Decision timeline · balanced

Blocking gaps: Check metadata review status. Risk 28.

Risk 28

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is missing.

Pending

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

Blockers: Check metadata review status

Prerequisite readiness

Prerequisite readiness

3 prerequisites to line up before setup. Have accounts and credentials ready first.

0/3 ready
Account & credentials1Install & runtime1General1

Safety & privacy surface

Safety & privacy surface

4 safety and 3 privacy notes across 5 risk areas. Review closely: credentials & tokens, permissions & scopes, network access.

5 areas
  • SafetyLocal filesA deep link only chooses a directory and pre-fills the prompt box; nothing reaches the model until you read it and press Enter.
  • SafetyGeneralTreat links from untrusted sources with care: review the pre-filled prompt, especially long ones, before sending, since long prompts can scroll off screen.
  • SafetyCredentials & tokensPermission rules, CLAUDE.md, and directory trust prompts apply to a link-launched session the same as any other session.
  • SafetyPermissions & scopesAdministrators can disable handler registration with disableDeepLinkRegistration in managed settings.
  • PrivacyCredentials & tokensThe link itself can be hosted anywhere, but the session always opens locally on the machine where you click; no remote execution occurs.
  • PrivacyCredentials & tokensEncode prompts carefully and avoid embedding secrets or sensitive identifiers in shared link URLs.
  • PrivacyNetwork accessThe cwd parameter rejects network and UNC paths; repo only resolves to clones Claude Code has already seen.

Safety notes

  • A deep link only chooses a directory and pre-fills the prompt box; nothing reaches the model until you read it and press Enter.
  • Treat links from untrusted sources with care: review the pre-filled prompt, especially long ones, before sending, since long prompts can scroll off screen.
  • Permission rules, CLAUDE.md, and directory trust prompts apply to a link-launched session the same as any other session.
  • Administrators can disable handler registration with disableDeepLinkRegistration in managed settings.

Privacy notes

  • The link itself can be hosted anywhere, but the session always opens locally on the machine where you click; no remote execution occurs.
  • Encode prompts carefully and avoid embedding secrets or sensitive identifiers in shared link URLs.
  • The cwd parameter rejects network and UNC paths; repo only resolves to clones Claude Code has already seen.

Prerequisites

  • Claude Code v2.1.91 or later installed; the claude-cli:// handler registers on first interactive launch.
  • For the repo parameter, a local clone where you have run Claude Code at least once so its path is recorded.
  • A surface that allows custom URL schemes (note GitHub-rendered Markdown strips claude-cli://).

Schema details

Install type
copy
Troubleshooting
No
Full copyable content
## Overview

A deep link is a `claude-cli://` URL that opens Claude Code in a new terminal
window, optionally in a specific repository and with a prompt already typed. It
turns a runbook step, alert, or dashboard into a one-click starting point for a
task. The prompt is pre-filled but never sent until you press Enter.

## Build a link

Every link starts with `claude-cli://open` and takes optional query parameters:

| Parameter | Description |
| --- | --- |
| `q` | Prompt text to pre-fill. URL-encode it; use `%0A` for newlines. Max 5,000 chars. |
| `cwd` | Absolute working directory. Network and UNC paths are rejected. |
| `repo` | A GitHub `owner/name` slug resolved to a local clone you have used before. |

If both `cwd` and `repo` are present, `cwd` wins. Example:

```text
claude-cli://open?repo=acme/payments&q=Investigate%20the%20failed%20deploy.%0ACheck%20recent%20commits%20to%20main.
```

Clicking it opens Claude Code in your local clone of `acme/payments` with the
decoded two-line prompt ready to edit and send.

## Embed in a runbook

```markdown
## High 5xx rate on web-gateway

1. Acknowledge the page.
2. [Open Claude Code in the gateway repo](claude-cli://open?repo=acme/web-gateway&q=5xx%20rate%20is%20elevated.%20Check%20recent%20deploys%20and%20error%20logs.)
3. Post findings in the incident channel.
```

Note: GitHub-rendered Markdown strips `claude-cli://`, so on GitHub put the link
in a code block for readers to copy. Use a wiki, dashboard, or chat tool that
allows custom URL schemes for true one-click behavior.

## Trigger from the shell

```bash
# macOS
open "claude-cli://open?repo=acme/payments&q=review%20open%20PRs"
# Linux
xdg-open "claude-cli://open?repo=acme/payments&q=review%20open%20PRs"
```

On Windows, `Start-Process "claude-cli://open?..."` in PowerShell.

## cwd vs repo

- Use `cwd` when everyone has the project at the same absolute path (for example
  a standardized devcontainer).
- Use `repo` when each person clones to a different location; Claude Code opens
  the matching clone you used most recently. It only finds clones where you have
  run Claude Code at least once, and the link does not change the checked-out
  branch.

## Safety model

The launched session shows a `Prompt from an external link` warning until you
send or clear it. For prompts over 1,000 characters, the warning includes the
length and reminds you to scroll and review. Nothing runs until you press Enter,
and normal permission rules, CLAUDE.md, and trust prompts still apply.

## Tip

Store long runbook prompts as a `/skill` in the repo so the link's `q` parameter
only has to name the skill.

## Source

- Launch sessions from links: https://code.claude.com/docs/en/deep-links

About this resource

Overview

A deep link is a claude-cli:// URL that opens Claude Code in a new terminal window, optionally in a specific repository and with a prompt already typed. It turns a runbook step, alert, or dashboard into a one-click starting point for a task. The prompt is pre-filled but never sent until you press Enter.

Build a link

Every link starts with claude-cli://open and takes optional query parameters:

Parameter Description
q Prompt text to pre-fill. URL-encode it; use %0A for newlines. Max 5,000 chars.
cwd Absolute working directory. Network and UNC paths are rejected.
repo A GitHub owner/name slug resolved to a local clone you have used before.

If both cwd and repo are present, cwd wins. Example:

claude-cli://open?repo=acme/payments&q=Investigate%20the%20failed%20deploy.%0ACheck%20recent%20commits%20to%20main.

Clicking it opens Claude Code in your local clone of acme/payments with the decoded two-line prompt ready to edit and send.

Embed in a runbook

## High 5xx rate on web-gateway

1. Acknowledge the page.
2. [Open Claude Code in the gateway repo](claude-cli://open?repo=acme/web-gateway&q=5xx%20rate%20is%20elevated.%20Check%20recent%20deploys%20and%20error%20logs.)
3. Post findings in the incident channel.

Note: GitHub-rendered Markdown strips claude-cli://, so on GitHub put the link in a code block for readers to copy. Use a wiki, dashboard, or chat tool that allows custom URL schemes for true one-click behavior.

Trigger from the shell

# macOS
open "claude-cli://open?repo=acme/payments&q=review%20open%20PRs"
# Linux
xdg-open "claude-cli://open?repo=acme/payments&q=review%20open%20PRs"

On Windows, Start-Process "claude-cli://open?..." in PowerShell.

cwd vs repo

  • Use cwd when everyone has the project at the same absolute path (for example a standardized devcontainer).
  • Use repo when each person clones to a different location; Claude Code opens the matching clone you used most recently. It only finds clones where you have run Claude Code at least once, and the link does not change the checked-out branch.

Safety model

The launched session shows a Prompt from an external link warning until you send or clear it. For prompts over 1,000 characters, the warning includes the length and reminds you to scroll and review. Nothing runs until you press Enter, and normal permission rules, CLAUDE.md, and trust prompts still apply.

Tip

Store long runbook prompts as a /skill in the repo so the link's q parameter only has to name the skill.

Source

Source citations

Add this badge to your README

Show that Deep Links into Claude Code Runbooks and Alerts is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/guides/deep-links-into-claude-code-runbooks-and-alerts.svg)](https://heyclau.de/entry/guides/deep-links-into-claude-code-runbooks-and-alerts)

How it compares

Deep Links into Claude Code Runbooks and Alerts side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

2 trust signals differ across this comparison (Source provenance, Submitter).

Field

A practical walkthrough of Claude Code deep links: the claude-cli:// URL scheme, how to build links with repo, cwd, and prompt parameters, embedding them in runbooks and alerts, and the safety model where prompts are inert until you press Enter.

Open dossier

Configure Claude Code auto mode hard-deny rules that block high-risk actions unconditionally, complement soft-deny prompts and team permission policy.

Open dossier

A practical walkthrough of Claude Code channels: how an MCP-server channel pushes messages, alerts, and webhooks into a running session, how to install and enable Telegram, Discord, or iMessage, sender allowlists, and enterprise controls.

Open dossier

Set up Claude Code GitHub Actions for pull request review: install the Claude GitHub app, store ANTHROPIC_API_KEY in secrets, pin anthropics/claude-code-action to an audited commit SHA with least-privilege permissions, and follow documented security practices.

Open dossier
Next steps
Trust
Review statusNot reviewedNot reviewedNot reviewedNot reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceDiffersSource-backedSubmission linkedSource submissionSource-backedSubmission linkedSource submission
SubmitterDiffersJPette1783kiannidevJPette1783kiannidev
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
BrandGitHub logoGitHub
Categoryguidesguidesguidesguides
SourceSource-backedSource-backedSource-backedSource-backed
AuthorJPette1783kiannidevJPette1783kiannidev
Added2026-06-052026-06-132026-06-052026-06-16
Platforms
Harness
Source repo
Safety notesA deep link only chooses a directory and pre-fills the prompt box; nothing reaches the model until you read it and press Enter. Treat links from untrusted sources with care: review the pre-filled prompt, especially long ones, before sending, since long prompts can scroll off screen. Permission rules, CLAUDE.md, and directory trust prompts apply to a link-launched session the same as any other session. Administrators can disable handler registration with disableDeepLinkRegistration in managed settings.Hard-deny rules block regardless of user intent or allow exceptions—misconfiguration can halt legitimate workflows. Auto mode classifiers can still fail open with evaluation errors; hard deny is not a substitute for branch protection and CI gates. Do not rely on auto mode alone for secrets handling; deny credential reads and outbound bulk transfers explicitly.Channel input is untrusted external content; treat incoming messages as data, not as instructions that should widen permissions. Events only arrive while the session is open; for unattended use, --dangerously-skip-permissions bypasses prompts and should be used only in trusted environments. Each channel keeps a sender allowlist; only paired/allowlisted IDs can push messages, and anyone who can reply can also approve permission relays if enabled, so allowlist only trusted senders.The Claude GitHub app requests Contents, Issues, and Pull requests read and write permissions—scope installation to intended repositories. Never commit API keys; use GitHub encrypted secrets such as ANTHROPIC_API_KEY, and only expose them to workflows you trust. Pin third-party GitHub Actions to reviewed immutable commit SHAs rather than mutable tags. Declare least-privilege GITHUB_TOKEN permissions explicitly before enabling AI review workflows. Review Claude suggestions before merging; automation should not bypass CODEOWNERS. Workflows consume GitHub Actions minutes and Claude API tokens—set timeouts and max-turn limits.
Privacy notesThe link itself can be hosted anywhere, but the session always opens locally on the machine where you click; no remote execution occurs. Encode prompts carefully and avoid embedding secrets or sensitive identifiers in shared link URLs. The cwd parameter rejects network and UNC paths; repo only resolves to clones Claude Code has already seen.Auto mode classifiers evaluate tool names, arguments, and session context that may include file paths and repository metadata. Denial messages and debug logs can retain snippets of blocked commands; restrict log access on shared machines. Managed settings sync may expose rule text to all enrolled clients—avoid embedding internal codenames you do not want widely visible.A channel is an MCP server you configure with your own credentials; tokens are stored locally (for example ~/.claude/channels/telegram/.env). Incoming and outgoing messages pass through the third-party platform (Telegram, Discord, Apple Messages); review what data flows there. The iMessage channel reads your Messages database and requires Full Disk Access; understand that exposure before enabling it.PR diffs and issue comments are attacker-controlled on public repositories; treat them as prompt-injection input and avoid giving untrusted PRs secret-backed tool access. PR diffs and issue comments are sent to the model provider during workflow runs. Logs may retain prompts—align retention with corporate data handling rules. Use repository secrets rather than echoing credentials in workflow YAML.
Prerequisites
  • Claude Code v2.1.91 or later installed; the claude-cli:// handler registers on first interactive launch.
  • For the repo parameter, a local clone where you have run Claude Code at least once so its path is recorded.
  • A surface that allows custom URL schemes (note GitHub-rendered Markdown strips claude-cli://).
  • Claude Code with auto mode available on your provider and organization policy.
  • Permission to edit project or managed settings.json for the target repositories.
  • A list of actions that must never run without explicit human approval.
  • Pilot engineers who can trigger both allowed and blocked auto mode actions safely.
  • Claude Code v2.1.80 or later, authenticated through claude.ai or a Console API key (channels are not available on Bedrock, Vertex AI, or Foundry).
  • Bun installed, since the channel plugins are Bun scripts.
  • On Team, Enterprise, or managed Console orgs, an admin must enable channels first.
  • Repository admin access to install the Claude GitHub app and add secrets.
  • Anthropic API access or approved provider setup documented for your org.
  • A CLAUDE.md or review rubric describing project standards.
  • Branch protection requiring human review before merging automation output.
Install
Config
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.