You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,14 +218,24 @@ Investigation-first workflow for targeted fixes. Finds the root cause before tou
218
218
219
219
Just chat — no plan, no approval gate. Quality hooks and TDD enforcement still apply. Best for small tasks and exploration. For anything that needs a plan, use `/spec` — not Claude Code's built-in plan mode.
220
220
221
+
### Claude CLI Flag Passthrough
222
+
223
+
All Claude Code CLI flags work directly with `pilot` — current and future. Pilot forwards any flag it doesn't recognize to the Claude CLI automatically.
224
+
225
+
```bash
226
+
pilot --channels plugin:telegram@claude-plugins-official
227
+
pilot --model opus --verbose
228
+
pilot --resume
229
+
```
230
+
221
231
### Headless Mode
222
232
223
-
Run Pilot non-interactively with `-p` for CI/CD pipelines, scripts, and automated workflows. All Claude Code CLI flags work — `--output-format`, `--allowedTools`, `--continue`, `--bare`, etc.
233
+
Run Pilot non-interactively with `-p` for CI/CD pipelines, scripts, and automated workflows. All Claude Code CLI flags work — `--output-format`, `--allowedTools`, `--channels`, `--continue`, `--bare`, etc.
224
234
225
235
```bash
226
236
pilot -p "Run tests and fix failures" --allowedTools "Bash,Read,Edit"
227
237
pilot -p "Summarize this project" --output-format json
228
-
pilot -p "Review this PR for security issues" --bare --allowedTools "Read"
238
+
pilot --channels plugin:telegram@official -p "Check messages"
Copy file name to clipboardExpand all lines: docs/docusaurus/docs/features/cli.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,23 @@ Command reference for the `pilot` binary at `~/.pilot/bin/pilot`.
10
10
11
11
Run `pilot` or `ccp` with no arguments to start Claude with Pilot enhancements. Most commands support `--json` for structured output. Multiple sessions can run in parallel on the same project.
12
12
13
+
## Claude CLI Flag Passthrough
14
+
15
+
Pilot forwards any unrecognized flags directly to the Claude CLI. This means all current and future Claude Code flags work out of the box — no Pilot update required.
16
+
17
+
```bash
18
+
# Use any Claude CLI flag directly
19
+
pilot --channels plugin:telegram@claude-plugins-official
20
+
pilot --model opus --verbose
21
+
pilot --resume
22
+
pilot --continue
23
+
24
+
# 'run' is an explicit alias — same behavior
25
+
pilot run --channels plugin:telegram@claude-plugins-official
26
+
```
27
+
28
+
Pilot only intercepts its own subcommands (`activate`, `status`, `worktree`, etc.) and flags (`--version`, `--skip-update-check`). Everything else passes through to `claude`.
29
+
13
30
## Headless Mode
14
31
15
32
Run Pilot non-interactively with `-p` (or `--print`). Wraps `claude -p` with license validation and the Pilot plugin — use it in CI/CD pipelines, scripts, or automated workflows.
@@ -24,8 +41,8 @@ pilot -p "Summarize this project" --output-format json
24
41
# Auto-approve specific tools
25
42
pilot -p "Run tests and fix failures" --allowedTools "Bash,Read,Edit"
26
43
27
-
#Streaming output
28
-
pilot -p "Explain recursion" --output-format stream-json --verbose
44
+
#With channels
45
+
pilot --channels plugin:telegram@claude-plugins-official -p "Check messages"
29
46
30
47
# Continue a previous conversation
31
48
pilot -p "Now focus on the database queries" --continue
@@ -34,15 +51,16 @@ pilot -p "Now focus on the database queries" --continue
34
51
pilot -p "Summarize this file" --bare --allowedTools "Read"
35
52
```
36
53
37
-
All [Claude Code CLI flags](https://code.claude.com/docs/en/cli-reference) work with `-p`, including `--output-format`, `--allowedTools`, `--continue`, `--resume`, `--append-system-prompt`, `--json-schema`, and `--bare`. Pilot-specific flags like `--skip-update-check` are stripped automatically.
54
+
All [Claude Code CLI flags](https://code.claude.com/docs/en/cli-reference) work with `-p`, including `--output-format`, `--allowedTools`, `--continue`, `--resume`, `--channels`, `--append-system-prompt`, `--json-schema`, and `--bare`. Pilot-specific flags like `--skip-update-check` are stripped automatically.
38
55
39
56
## Session & Context
40
57
41
58
| Command | Description |
42
59
|---------|-------------|
43
60
|`pilot`| Start Claude with Pilot enhancements, auto-update, and license check |
61
+
|`pilot [claude-flags...]`| Start Claude with any Claude CLI flags passed through |
44
62
|`pilot -p "prompt" [flags...]`| Headless mode — run non-interactively with Pilot plugin (CI/CD, scripts) |
45
-
|`pilot run [args...]`|Same as interactive, with optional flags (`--skip-update-check`) |
63
+
|`pilot run [flags...]`|Explicit alias for starting Claude (all flags passed through) |
46
64
|`ccp`| Alias for pilot |
47
65
|`pilot check-context --json`| Get current context usage percentage |
48
66
|`pilot register-plan <path> <status>`| Associate a plan file with the current session |
Copy file name to clipboardExpand all lines: docs/docusaurus/docs/features/remote-control.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,29 @@ For the SSH/Termius approach, you need network connectivity to your computer. In
84
84
|**Quick check**| Glance at a running session from your phone without going back to your desk |
85
85
|**Multi-device**| Heavy coding from terminal, lighter interactions from browser, quick approvals from phone |
86
86
87
+
## Channels — Telegram, Discord & iMessage
88
+
89
+
[Channels](https://code.claude.com/docs/en/channels) push messages from external platforms directly into your running Pilot session. Claude reads the message, acts on it with your full local environment, and replies back through the same platform.
90
+
91
+
```bash
92
+
# Start Pilot with a channel enabled
93
+
pilot --channels plugin:telegram@claude-plugins-official
94
+
pilot --channels plugin:discord@claude-plugins-official
95
+
pilot --channels plugin:imessage@claude-plugins-official
96
+
```
97
+
98
+
Channels require [Bun](https://bun.sh/) and a one-time bot setup (Telegram/Discord) or macOS (iMessage). Each channel maintains a sender allowlist — only paired users can push messages.
99
+
100
+
| Channel | Setup | Pairing |
101
+
| ------- | ----- | ------- |
102
+
|**Telegram**|[Create a bot](https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/telegram), pass token during install | Send any message to the bot → approve pairing code in terminal |
103
+
|**Discord**|[Create a bot](https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/discord), pass token during install | Send any message to the bot → approve pairing code in terminal |
104
+
|**iMessage**|[macOS only](https://github.com/anthropics/claude-plugins-official/tree/main/external_plugins/imessage), no token needed | Texting yourself works automatically |
105
+
106
+
**Channels vs Remote Control:** Remote Control gives you a window into your session from the Claude App or browser. Channels let external platforms push events *into* your session — they're complementary. Use both together: channels for incoming messages, Remote Control for monitoring and steering.
107
+
108
+
**Team/Enterprise:** Channels are off by default. Admins enable them via [claude.ai Admin settings](https://claude.ai/admin-settings/claude-code). See the full [Channels documentation](https://code.claude.com/docs/en/channels) and [Channels reference](https://code.claude.com/docs/en/channels-reference) for building custom channels.
109
+
87
110
## Troubleshooting
88
111
89
112
If Remote Control doesn't connect or shows authentication errors, run `/logout` followed by `/login` inside Claude Code. This re-authenticates your session and resolves most connection issues.
Copy file name to clipboardExpand all lines: pilot/commands/spec.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,11 @@ model: sonnet
35
35
36
36
## 0.0 Permission Mode Pre-Flight Check
37
37
38
-
**⛔ Before ANY other step, check if the spec_mode_guard hook injected a permission mode warning.** If you see a system-reminder containing "Current permission mode is" or "requires 'bypassPermissions' mode", you MUST:
38
+
**Before proceeding, check if the spec_mode_guard hook injected a permission mode note.** If you see a system-reminder containing "Current permission mode is", briefly warn the user:
39
39
40
-
1. Tell the user their current mode is not optimal for `/spec` autonomous execution
41
-
2. Instruct them to press **Shift+Tab** to cycle to **Bypass Permissions** mode
42
-
3.**STOP** — do NOT read env vars, invoke any skill, or proceed with the workflow
43
-
4. Wait for the user to confirm they have switched, then re-invoke `/spec` with the same arguments
40
+
> "Your current permission mode is **{mode}**. For uninterrupted `/spec` execution, **Bypass Permissions** mode is recommended (Shift+Tab to cycle). Proceeding — the workflow may pause for permission prompts."
44
41
45
-
**This check takes priority over all workflow steps below.** The hook warning is authoritative — never override it.
42
+
**Then continue with the workflow.** Do not stop or wait for the user to switch. The user's mode choice is respected — bypass permissions is recommended, not required.
Copy file name to clipboardExpand all lines: pilot/rules/development-practices.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,8 @@ This rule is about git commands, not file operations. Editing files is always al
118
118
119
119
**⛔ Never selectively unstage.** Commit ALL staged changes as-is.
120
120
121
+
**⛔ Always `git push -u` on new branches.** When pushing a newly created branch for the first time, use `git push -u origin <branch>` (or `--set-upstream`) so the local branch tracks the correct remote. Without `-u`, the upstream stays on the old branch (e.g. `origin/master`), breaking subsequent pushes from IDEs and CLI.
0 commit comments