@99x-ai-dlc/idf-installer 0.0.0-stage → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -2
- package/bin/idf-installer.js +185 -0
- package/package.json +22 -4
- package/repository-agents/process-diagnostic-agent/review-guide.md +669 -0
- package/repository-agents/process-diagnostic-agent/role-play.md +223 -0
- package/repository-agents/process-diagnostic-agent/skills/trend-analysis.md +113 -0
- package/repository-agents/process-estimation-agent/estimate.md +69 -0
- package/repository-agents/process-estimation-agent/estimation-guide.md +435 -0
- package/repository-agents/process-migration-agent/migrate.md +72 -0
- package/repository-agents/process-migration-agent/migration-guide.md +490 -0
- package/repository-agents/process-onboarding-agent/external-skills/README.md +189 -0
- package/repository-agents/process-onboarding-agent/external-skills/ux-os.md +92 -0
- package/repository-agents/process-onboarding-agent/onboard.md +214 -0
- package/repository-agents/process-onboarding-agent/ops/build/backlog.md +43 -0
- package/repository-agents/process-onboarding-agent/ops/build/bolts/_template.md +53 -0
- package/repository-agents/process-onboarding-agent/ops/build/units/_template.md +112 -0
- package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/README.md +22 -0
- package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/_template.md +34 -0
- package/repository-agents/process-onboarding-agent/ops/inception/dependency-map.md +47 -0
- package/repository-agents/process-onboarding-agent/ops/inception/elaborations/_template.md +46 -0
- package/repository-agents/process-onboarding-agent/ops/inception/intents/README.md +9 -0
- package/repository-agents/process-onboarding-agent/ops/inception/intents/_template.md +92 -0
- package/repository-agents/process-onboarding-agent/ops/operate/improvements/_template.md +51 -0
- package/repository-agents/process-onboarding-agent/ops/operate/incidents/_template.md +61 -0
- package/repository-agents/process-onboarding-agent/ops/operate/retros/_template.md +122 -0
- package/repository-agents/process-onboarding-agent/rules/engagement.md +70 -0
- package/repository-agents/process-onboarding-agent/setup-guide.md +1409 -0
- package/repository-agents/process-onboarding-agent/skills/ai-hub-metrics.md +341 -0
- package/repository-agents/process-onboarding-agent/skills/bolt-risk-assessment.md +208 -0
- package/repository-agents/process-onboarding-agent/skills/bug-bolt.md +105 -0
- package/repository-agents/process-onboarding-agent/skills/compact-docs.md +123 -0
- package/repository-agents/process-onboarding-agent/skills/dependency-audit.md +187 -0
- package/repository-agents/process-onboarding-agent/skills/design-session.md +230 -0
- package/repository-agents/process-onboarding-agent/skills/governance-map.md +212 -0
- package/repository-agents/process-onboarding-agent/skills/hotfix-bolt.md +102 -0
- package/repository-agents/process-onboarding-agent/skills/knowledge-promotion.md +188 -0
- package/repository-agents/process-onboarding-agent/skills/new-engineer-induction.md +303 -0
- package/repository-agents/process-onboarding-agent/skills/nfr-bolt.md +117 -0
- package/repository-agents/process-onboarding-agent/skills/notifications.md +456 -0
- package/repository-agents/process-onboarding-agent/skills/process-health.md +252 -0
- package/repository-agents/process-onboarding-agent/skills/process-visualization.md +157 -0
- package/repository-agents/process-onboarding-agent/skills/product-engineering-essentials.md +261 -0
- package/repository-agents/process-onboarding-agent/skills/progress-digest.md +184 -0
- package/repository-agents/process-onboarding-agent/skills/release-readiness-checklist.md +259 -0
- package/repository-agents/process-onboarding-agent/skills/root-cause-analysis.md +151 -0
- package/repository-agents/process-onboarding-agent/skills/solution-shaping.md +98 -0
- package/repository-agents/process-onboarding-agent/skills/uat.md +267 -0
- package/repository-agents/process-skills-agent/onboard.md +68 -0
- package/repository-agents/process-skills-agent/skills-guide.md +404 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
# Skill: Notifications
|
|
2
|
+
|
|
3
|
+
**Purpose:** Send Slack notifications to the engineer at the moments in the delivery loop that need a human — so nobody has to sit watching a session. This is a **local, per-engineer setup**: each person creates their own Slack channel and their own webhook, on their own machine, and is notified about their own sessions. It is not a team broadcast channel, and no webhook URL is ever shared or committed. Notifications operate on two independent layers:
|
|
4
|
+
|
|
5
|
+
1. **Harness layer (deterministic).** Hooks in the tool's own config fire on the tool's lifecycle events — a turn ending (work done, question asked, awaiting the next prompt) and needing attention (permission request, idle prompt). All three supported tools have these; the event names and config file differ. They run automatically regardless of what work is happening, so they cannot be forgotten — but they carry a generic message, because a hook does not know what a bolt is.
|
|
6
|
+
2. **Lifecycle layer (agent-driven, all tools).** The experience agent sends a rich, event-specific notification at framework moments — bolt complete, UAT sign-off required, incident logged, and so on. There is no harness event for "a bolt closed," so these are sent by the agent running the configured send command via its shell tool at the point the workflow reaches that moment.
|
|
7
|
+
|
|
8
|
+
Use the harness layer for "attention/done" pings and the lifecycle layer for "this delivery moment needs you." Both send through the same script and resolve the same endpoint — no credentials are ever written into a committed file.
|
|
9
|
+
|
|
10
|
+
**Trigger:** The harness layer fires automatically once installed. The lifecycle layer fires automatically from the master rule file routing lines (see *Lifecycle events* below). An engineer can also say "send a notification that …" to fire an ad-hoc one, or "turn notifications off for this session" to suppress both layers until the session ends.
|
|
11
|
+
|
|
12
|
+
**Dependency classification:** Needs config — the send command and hooks work as-is, but each engineer must supply their own endpoint (Step 2) before anything is sent.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Invariants
|
|
17
|
+
|
|
18
|
+
Anyone editing this file — human or AI — must keep all six of these true. They are the things earlier revisions got wrong, and each one fails silently when broken:
|
|
19
|
+
|
|
20
|
+
1. **One webhook per engineer, pointing at their own channel.** No shared URL, no shared secret store, no project-wide endpoint. The single exception is a CI/cron runner, which gets its own webhook on a team channel (Step 4).
|
|
21
|
+
2. **The AI never touches Slack.** It does not create apps, call the Slack API, ask for the URL, or gate on whether the engineer may install apps. It presents instructions and waits.
|
|
22
|
+
3. **`Status: Disabled` is an exact token.** `new-engineer-induction.md` string-matches it. Never write "Notifications: disabled" or any other spelling.
|
|
23
|
+
4. **`.gitignore` before the URL exists.** `scripts/notify.env`, `.envrc` and `.claude/settings.local.json` are gitignored by the AI up front — these are the only files that may ever hold the URL, and the only remaining path by which it could be committed.
|
|
24
|
+
5. **The script escapes, the caller does not.** `scripts/notify.sh` takes raw text and builds the JSON itself. Never reintroduce hand-escaping rules for the agent to follow.
|
|
25
|
+
6. **Every send exits 0.** An unset variable, an empty message, a missing `jq`/`python3`, a failed or timed-out request — all are silent no-ops. A notification must never break the step it reports on.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## What each AI tool gets
|
|
30
|
+
|
|
31
|
+
**All three supported tools have lifecycle hooks.** Claude Code has had them longest; Cursor added them in 1.7 and GitHub Copilot's are in preview, so treat the two newer ones as more likely to move — *verified September 2026, re-check before relying on an exact event name.*
|
|
32
|
+
|
|
33
|
+
The event names and config files differ; the role does not. All three call the same `scripts/notify.sh`, which is why the send script is deliberately tool-neutral and not under `.claude/`.
|
|
34
|
+
|
|
35
|
+
| | **Claude Code** | **Cursor** | **GitHub Copilot** |
|
|
36
|
+
|---|---|---|---|
|
|
37
|
+
| Hook config | `.claude/settings.json` | `.cursor/hooks.json` (or `~/.cursor/hooks.json`) | `.github/hooks/*.json` (or `~/.copilot/hooks/`) |
|
|
38
|
+
| Turn ended — work done, question asked, awaiting your next prompt | `Stop` | `stop` | `agentStop` |
|
|
39
|
+
| Needs permission / attention | `PermissionRequest` (a specific request) or `Notification` (idle prompt) | `beforeShellExecution` | `permissionRequest`, `notification` |
|
|
40
|
+
| Session over | `SessionEnd` (matcher: `clear`, `resume`, `logout`, `prompt_input_exit`, `other`) | `sessionEnd` | `sessionEnd` |
|
|
41
|
+
| Subagent finished | `SubagentStop` | `subagentStop` | `subagentStop` |
|
|
42
|
+
| Lifecycle layer (framework events) | Yes | Yes, in agent mode | Agent mode only — completions and inline chat cannot run commands |
|
|
43
|
+
| Stop the send prompting | `permissions.allow` in `.claude/settings.json` | agent terminal-command allowlist in Cursor Settings | VS Code Copilot terminal auto-approve |
|
|
44
|
+
|
|
45
|
+
**Only the first two rows are installed by default.** Session-over and subagent-finished exist on all three tools but are not part of the default set: when a session ends you are almost always the one who ended it, so the ping tells you nothing you did not just do. Install them only for headless or cloud runs, where a session can end without anyone watching. Claude Code's event list is larger than these four (it includes `TaskCompleted`, `TeammateIdle`, `PostCompact` and others) — check its docs if a project wants something more specific.
|
|
46
|
+
|
|
47
|
+
Per-tool gotchas:
|
|
48
|
+
|
|
49
|
+
- **Cursor CLI is not the Cursor IDE.** Community reports say the CLI omits `stop`, `afterAgentResponse` and `beforeSubmitPrompt` while the IDE emits them. A headless `cursor-agent` run may notify nothing. Verify with a test send rather than assuming.
|
|
50
|
+
- **Copilot takes separate commands per platform** — a hook entry has both `bash` and `powershell` keys. That makes it the only one of the three with cross-platform dispatch built into the format.
|
|
51
|
+
- **Copilot's cloud agent reads only `.github/hooks/*.json`** from the cloned repo, not user-level config.
|
|
52
|
+
- **Copilot needs agent mode** for the lifecycle layer at all; completions and plain inline chat cannot run a command.
|
|
53
|
+
|
|
54
|
+
### Why there are still two layers
|
|
55
|
+
|
|
56
|
+
Not because some tools lack hooks — they all have them now. The layers answer different questions:
|
|
57
|
+
|
|
58
|
+
- **The harness layer is deterministic but semantically blind.** The tool fires it, so it cannot be forgotten; but a hook has no idea what a *bolt* is. It knows a turn ended, not that a bolt closed and a retro is due.
|
|
59
|
+
- **The lifecycle layer is semantic but best-effort.** It knows exactly which delivery moment was reached, because the agent reached it — which is also why it depends on the agent noticing the routing line.
|
|
60
|
+
|
|
61
|
+
Use both. Neither substitutes for the other.
|
|
62
|
+
|
|
63
|
+
One thing that still needs saying to Cursor and Copilot teams: **the routing line has to be in *their* rule file.** The lifecycle layer is driven by the master rule file, so the Section 6 routing line and Section 10 must exist in the mirror the tool actually loads — `.cursor/rules/project-rules.mdc` (or any always-applied `.mdc` under `.cursor/rules/`, or legacy `.cursorrules`), or `.github/copilot-instructions.md`, not just `CLAUDE.md`. A stale mirror silently disables the lifecycle layer for that tool. New Cursor mirrors should be created only as `.cursor/rules/project-rules.mdc` — never as `.cursorrules`.
|
|
64
|
+
|
|
65
|
+
Environment variables are often *easier* on these tools, because an interactive integrated terminal loads the shell profile. Do not rely on it: some agent integrations run commands through a non-interactive shell, which reads no startup file on bash and a different one on every platform. That is why Step 2 Option A (`scripts/notify.env`) is the recommended setup for every tool.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Configuration — the endpoint comes from an environment variable
|
|
70
|
+
|
|
71
|
+
Notifications are sent to whatever endpoint is present in the environment. **Nothing is ever hardcoded into a framework file or committed** — a Slack incoming-webhook URL is a bearer credential and must be treated as a secret.
|
|
72
|
+
|
|
73
|
+
| Variable | Channel | Example value |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| `SLACK_WEBHOOK_URL` | Slack incoming webhook | `https://hooks.slack.com/services/<WORKSPACE_ID>/<WEBHOOK_ID>/<TOKEN>` |
|
|
76
|
+
|
|
77
|
+
Rules:
|
|
78
|
+
- **This is per engineer, per machine.** Each person points their own webhook at their own Slack channel and sets the variable locally (shell profile or `.envrc`). There is no project-wide endpoint, no shared URL, and nothing to distribute — a teammate who never sets the variable simply gets no notifications. A CI or cron runner is the one exception, and it gets its own webhook rather than borrowing anyone's (Step 4).
|
|
79
|
+
- Leave the variable unset and notifications become a silent no-op — safe by default.
|
|
80
|
+
- Never echo the full webhook URL back to the engineer or into any artifact. Refer to it as "the configured Slack webhook."
|
|
81
|
+
- The endpoint is normally kept in a gitignored `scripts/notify.env`, which the send script reads directly — this is the only setup that behaves identically on macOS, Windows and Linux. An environment variable takes precedence over the file when both are present, which is how CI supplies it.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Setting the environment variable
|
|
86
|
+
|
|
87
|
+
Each engineer (and each CI runner) does this once. Nothing here is committed.
|
|
88
|
+
|
|
89
|
+
### Who does what
|
|
90
|
+
|
|
91
|
+
This is the one part of the framework the AI cannot do for the engineer, because it involves a credential. Unlike every other skill — where the engineer only answers questions — notifications needs two actions taken outside the repo. Be explicit about that instead of stalling or improvising:
|
|
92
|
+
|
|
93
|
+
| Task | Who | Why |
|
|
94
|
+
|---|---|---|
|
|
95
|
+
| Create their own channel, Slack app, and incoming webhook (Step 1) | **Engineer** | A browser flow under their own Slack login, in their own workspace. The AI has no browser and no Slack session. |
|
|
96
|
+
| Write the endpoint into `scripts/notify.env` (or set the variable — Step 2) | **Engineer** | The AI would have to be told the URL to write it, which puts the credential in the conversation. |
|
|
97
|
+
| Verify with a test send (Step 3) | **AI** | Runs the script, which resolves the endpoint itself; the AI never sees the value. |
|
|
98
|
+
| CI / shared-runner secrets (Step 4) | **Engineer** | Another credential, another web UI. |
|
|
99
|
+
| Add `scripts/notify.env`, `.envrc` and `.claude/settings.local.json` to `.gitignore` | **AI** | The one file edit that prevents a leak. Do it up front, before the engineer has a URL to put anywhere — not after. |
|
|
100
|
+
| Create `scripts/notify.sh`, allowlist it, install the hooks in the tool's hook config, write Section 10 and the Section 6 routing line | **AI** | Ordinary file work — none of these hold the URL, only a reference to it. |
|
|
101
|
+
| Send notifications from then on | **AI** | The point of the skill. |
|
|
102
|
+
|
|
103
|
+
**Do no part of the Slack side yourself.** Do not create or configure a Slack app, do not call the Slack API, do not open or ask anyone to open a browser on your behalf, and do not ask whether the engineer has permission to install apps — that is theirs to deal with, not yours to gate. Your entire role in Steps 1 and 2 is to present the instructions, then wait.
|
|
104
|
+
|
|
105
|
+
**Never ask the engineer to paste the webhook URL into the conversation**, and never offer to edit their shell profile for them. If they paste it anyway, do not repeat it back, do not write it to any file, and tell them it is now in the session transcript and should be rotated in Slack (**Incoming Webhooks → remove the webhook, add a new one**).
|
|
106
|
+
|
|
107
|
+
Present Steps 1 and 2 as a short checklist the engineer can follow at their own pace, then stop and wait for them to say it is done. Pick up at Step 3. If they are not ready — no time, no app-install permission, waiting on an admin — record `Status: Disabled` in Section 10, tell them it can be enabled later by running these same steps, and move on. Never block onboarding on it.
|
|
108
|
+
|
|
109
|
+
### Step 1 — Create your channel and webhook
|
|
110
|
+
|
|
111
|
+
*The engineer does this — see* Who does what *above.* This is a personal setup: your own channel, your own webhook, notifying you about your own sessions. Teammates do not share either.
|
|
112
|
+
|
|
113
|
+
1. In Slack, create the channel you want to be notified in. A private channel with only you in it is the normal choice; name it for yourself (`#ai-dlc-alice`) so it is obvious what it is. Do not point this at a team channel unless the whole team has agreed to the noise.
|
|
114
|
+
2. Go to <https://api.slack.com/apps> and click **Create New App → From scratch** (or open an existing app). Pick the target workspace.
|
|
115
|
+
3. Open **Incoming Webhooks** and toggle it **On**.
|
|
116
|
+
4. Click **Add New Webhook to Workspace**, choose the channel you just created, and **Allow**.
|
|
117
|
+
- Many workspaces restrict who may install apps. If this step needs approval, the request goes to a workspace admin and you wait for them — that is normal, not a misconfiguration. Tell the AI to leave notifications disabled for now and come back to it once approval lands.
|
|
118
|
+
5. Copy the generated URL — its shape is `https://hooks.slack.com/services/<WORKSPACE_ID>/<WEBHOOK_ID>/<TOKEN>`, three path segments after `/services/`. This whole URL is a secret; treat it like a password. The channel is fixed at webhook creation time — to notify a different channel, create a second webhook.
|
|
119
|
+
|
|
120
|
+
> Deliberately no realistic-looking example above, and do not add one. A dummy webhook URL whose path segments imitate the real format (a `T…` workspace id, a `B…` webhook id, a long alphanumeric token) matches GitHub's secret-scanning pattern for Slack webhooks, so push protection rejects the commit — in this repo and in every project that copies this file. Keep placeholders in `<ANGLE_BRACKET>` form.
|
|
121
|
+
|
|
122
|
+
### Step 2 — Tell the script where to send
|
|
123
|
+
|
|
124
|
+
Two ways. The first works identically on macOS, Windows and Linux and needs no shell knowledge — prefer it, and offer the second only to engineers who ask for it.
|
|
125
|
+
|
|
126
|
+
#### Option A (recommended) — `scripts/notify.env`
|
|
127
|
+
|
|
128
|
+
Create a file next to the send script containing one line:
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
SLACK_WEBHOOK_URL="<YOUR_WEBHOOK_URL>"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
That is the whole setup. The script reads this file when the variable is not already in the environment. It is gitignored (the AI adds it in onboarding step 2), so it is never committed.
|
|
135
|
+
|
|
136
|
+
**Why this is the default:** an AI tool runs commands in a *non-interactive* shell, and that shell reads a different startup file on every platform — or, on bash, none at all:
|
|
137
|
+
|
|
138
|
+
| Platform / shell | What a non-interactive shell reads |
|
|
139
|
+
|---|---|
|
|
140
|
+
| macOS / Linux, **zsh** | `~/.zshenv` only (**not** `~/.zshrc` — that is interactive-only) |
|
|
141
|
+
| Linux / Git Bash, **bash** | **nothing.** Non-interactive bash reads no startup file. `BASH_ENV` would have to already be in the environment to be read. |
|
|
142
|
+
| Windows PowerShell / cmd | the user environment from the registry (`setx`) |
|
|
143
|
+
|
|
144
|
+
So "put an export in your shell profile" is wrong on two of the three rows, and the failure is silent — the engineer's terminal works while the AI's shell sees nothing. The env file sidesteps all of it.
|
|
145
|
+
|
|
146
|
+
#### Option B — an environment variable, if the engineer prefers it
|
|
147
|
+
|
|
148
|
+
Correct per platform. Get this wrong and it appears to work in a terminal while every AI-driven send silently no-ops.
|
|
149
|
+
|
|
150
|
+
- **macOS / Linux, zsh:** add `export SLACK_WEBHOOK_URL="<YOUR_WEBHOOK_URL>"` to **`~/.zshenv`** — not `~/.zshrc`. `.zshenv` is read on every zsh invocation; `.zshrc` only for interactive ones. Then `chmod 600 ~/.zshenv`.
|
|
151
|
+
- **Linux, bash or mixed shells:** put it in `~/.config/environment.d/notifications.conf` as `SLACK_WEBHOOK_URL=<YOUR_WEBHOOK_URL>` (systemd user environment, inherited by GUI apps and their children after the next login). `~/.profile` covers login shells only.
|
|
152
|
+
- **macOS, shell-agnostic:** `launchctl setenv SLACK_WEBHOOK_URL "<YOUR_WEBHOOK_URL>"` makes it visible to GUI-launched apps, but it is lost on reboot unless installed as a LaunchAgent.
|
|
153
|
+
- **Windows:** `setx SLACK_WEBHOOK_URL "<YOUR_WEBHOOK_URL>"`, then open a new terminal. This is user-level and shell-agnostic, so it covers PowerShell, cmd and Git Bash. Note the send script is POSIX `sh`, so **running** it needs Git Bash or WSL.
|
|
154
|
+
- **Per-project instead of global:** [direnv](https://direnv.net) with the export in a gitignored `.envrc`. Convenient in a terminal, but direnv hooks the *interactive* shell, so an AI tool's shell will usually not see it. Use Option A instead.
|
|
155
|
+
|
|
156
|
+
> Never put the URL in any file that gets committed — not the master rule file, not `.claude/settings.json`, not a checked-in `.env`. `scripts/notify.env`, `.envrc`, and `.claude/settings.local.json` are all gitignored; nothing else may hold it.
|
|
157
|
+
|
|
158
|
+
#### Claude Code only — `.claude/settings.local.json`
|
|
159
|
+
|
|
160
|
+
If the team is on Claude Code and would rather keep it in tool config than a script-adjacent file:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
{ "env": { "SLACK_WEBHOOK_URL": "<YOUR_WEBHOOK_URL>" } }
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Gitignored, and it reaches every shell Claude Code spawns. Do not offer this on Cursor or Copilot projects: `env` there is a Claude Code setting, so those tools never read it and the engineer would be writing a live credential to disk for nothing.
|
|
167
|
+
|
|
168
|
+
### Step 3 — Verify
|
|
169
|
+
|
|
170
|
+
Run this from the repository root. It exercises whichever route Step 2 used, and it checks the **HTTP status**, not the exit code:
|
|
171
|
+
|
|
172
|
+
```sh
|
|
173
|
+
scripts/notify.sh 'AI-DLC notifications test'
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
If nothing arrives, the script says why on stderr — either no endpoint was found, or `jq`/`python3` is missing. It always exits 0, so **never treat exit 0 as proof of delivery**: a failed or timed-out request exits 0 too, by design, because a notification must never break the step it reports on.
|
|
177
|
+
|
|
178
|
+
To confirm delivery rather than infer it, ask Slack directly:
|
|
179
|
+
|
|
180
|
+
```sh
|
|
181
|
+
[ -f scripts/notify.env ] && . scripts/notify.env
|
|
182
|
+
curl -s -o /dev/null -w 'HTTP %{http_code}\n' --max-time 5 \
|
|
183
|
+
-X POST -H 'Content-Type: application/json' \
|
|
184
|
+
--data '{"text":"AI-DLC notifications test 2"}' "$SLACK_WEBHOOK_URL"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
`HTTP 200` (body `ok`) means Slack accepted it. Anything else — `403`, `404`, a timeout — means the webhook is wrong or revoked, not that the script is broken.
|
|
188
|
+
|
|
189
|
+
**The check that actually matters:** run the send from a *non-interactive* shell, because that is what the AI tool uses. If Step 2 Option A was used this cannot fail, which is the point of preferring it. If the engineer chose Option B, verify it explicitly:
|
|
190
|
+
|
|
191
|
+
```sh
|
|
192
|
+
zsh -c 'scripts/notify.sh "non-interactive test"' # zsh users
|
|
193
|
+
bash -c 'scripts/notify.sh "non-interactive test"' # bash users
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
An `SLACK_WEBHOOK_URL not set` here while the plain terminal works is the classic symptom: the export is in an interactive-only startup file (`~/.zshrc`, or `~/.bashrc` on bash). Move it to `~/.zshenv`, or switch to Option A.
|
|
197
|
+
|
|
198
|
+
### Step 4 — CI and shared runners (optional, and the one shared exception)
|
|
199
|
+
|
|
200
|
+
A CI job or cron runner is not a person, so it is the deliberate exception to everything above: it needs a **separate webhook of its own, pointing at a team channel**, owned by the team.
|
|
201
|
+
|
|
202
|
+
**Never put an engineer's personal webhook in a CI secret.** A repo-level secret is readable by every workflow and every collaborator with the right access, the alerts would land in a channel only one person can see, and revoking it would break that person's local setup too. Create a second webhook for a shared channel (e.g. `#ai-dlc-ci`) and use that.
|
|
203
|
+
|
|
204
|
+
Then store it in the platform's secrets store and expose it as an environment variable to the job — never in the repo:
|
|
205
|
+
- **GitHub Actions:** add repo secret `SLACK_WEBHOOK_URL`, then map it under the step's `env:` block.
|
|
206
|
+
- **GitLab CI:** add a masked CI/CD variable of the same name.
|
|
207
|
+
- Any runner: set it as an environment variable in the runner/agent configuration.
|
|
208
|
+
|
|
209
|
+
Because that channel does have an audience, the sensitive-detail rule under *Message format* matters more there than it does in a personal channel.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### New teammates joining later
|
|
213
|
+
|
|
214
|
+
This is a **personal, per-machine setup, not a team channel.** Each engineer has their own Slack channel and their own webhook pointing at it, so the notifications they get are about the work in *their* session, on *their* machine. Nobody shares a webhook URL, and nothing about it is committed or centrally configured.
|
|
215
|
+
|
|
216
|
+
That has one consequence worth stating up front: a new engineer gets no notifications until they set this up themselves, and because an unset variable is a deliberate silent no-op, **nothing warns them**. Their sessions simply never notify, and they have no reason to suspect the feature exists.
|
|
217
|
+
|
|
218
|
+
So a joining engineer runs the **full sequence from Step 1**, exactly as the first engineer did:
|
|
219
|
+
|
|
220
|
+
1. Create their own channel to be notified in — a private channel, or a channel with just them in it. Naming it for themselves (`#ai-dlc-alice`) keeps it obvious.
|
|
221
|
+
2. Create their own Slack app and incoming webhook pointing at that channel (Step 1 above).
|
|
222
|
+
3. Set `SLACK_WEBHOOK_URL` on their own machine (Step 2), and confirm with a test send (Step 3).
|
|
223
|
+
|
|
224
|
+
**Never hand a webhook URL to a teammate**, and never ask one for theirs. It is a personal credential like an SSH key: if two people share it, one person's session noise lands in the other's channel, and revoking it cuts off both. There is no shared secret store to keep, because there is no shared secret.
|
|
225
|
+
|
|
226
|
+
The `new-engineer-induction` skill prompts for this automatically, so a joining engineer is asked rather than left to discover it.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## The send command
|
|
231
|
+
|
|
232
|
+
Every send — both layers — goes through one script, `scripts/notify.sh` (installed during onboarding; see *Onboarding setup*, step 3). The script builds the JSON payload itself, so **the agent never escapes anything for JSON**:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
scripts/notify.sh 'Message text, exactly as it should appear in Slack'
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Run it from the repository root. Do not write `./scripts/notify.sh` or `bash scripts/notify.sh` — the permission allowlist matches the bare `scripts/notify.sh` form, and the other spellings will prompt.
|
|
239
|
+
|
|
240
|
+
**The single rule the agent must follow:** the argument is single-quoted, so any apostrophe inside the message must be written `'\''` (close quote, escaped quote, reopen quote) — or simply use a typographic `’` instead. Nothing else needs escaping: `$`, backticks, double quotes, backslashes, and newlines all pass through untouched, because the shell does not re-expand a single-quoted argument and the script does the JSON encoding.
|
|
241
|
+
|
|
242
|
+
For a message that is awkward to quote, pass it on stdin with a quoted heredoc instead — no escaping at all:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
scripts/notify.sh <<'MSG'
|
|
246
|
+
Message text with 'apostrophes', "quotes", $dollars — all literal.
|
|
247
|
+
MSG
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**One rendering rule, not an escaping rule:** Slack parses `&`, `<`, and `>` in message text as markup. If a message would contain them literally (e.g. an intent named `orders <v2>`), replace `&` with `&`, `<` with `<`, and `>` with `>` first. Do this *before* prepending the emoji prefix, so the prefix itself is not escaped. Note also that `*` and `_` in a name will render as bold/italic — harmless, but say so if a team asks why a unit name looks odd.
|
|
251
|
+
|
|
252
|
+
High-priority events prefix the message with `:rotating_light: ` so they stand out in the channel; normal events have no prefix. Do not add `<!here>` or `<!channel>`: the destination is the engineer's own channel, so there is nobody else to alert — it just badges them a second time in their own channel. (The exception is a webhook deliberately pointed at a shared channel, such as the CI webhook in Step 4.)
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## Message format
|
|
257
|
+
|
|
258
|
+
Every lifecycle message follows one shape so alerts are scannable:
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
[<ProjectName>] <Event> — <one-line detail>. <Action needed>
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Examples:
|
|
265
|
+
- `[Acme] UAT sign-off required — Intent "Checkout v2" has all units Done. Run UAT to close it.`
|
|
266
|
+
- `[Acme] Bolt complete — "Payments hardening" (4/4 units Done). Retro is due.`
|
|
267
|
+
- `:rotating_light: [Acme] Incident logged — "Orders API 500s in prod" (Sev-1). Hotfix bolt started.`
|
|
268
|
+
- `:rotating_light: [Acme] Circuit breaker — unit "apply-coupon" output rejected 3× on the same failure. Execution paused.`
|
|
269
|
+
- `:rotating_light: [Acme] Dependency audit due — scheduled for today. Run it before other work.`
|
|
270
|
+
|
|
271
|
+
`<ProjectName>` is read from Section 1 of the master rule file.
|
|
272
|
+
|
|
273
|
+
**Keep sensitive detail out of the message.** The destination is the engineer's own channel, so the audience is normally just them — but the message still leaves the machine, crosses Slack's servers, and stays in that channel's history and their phone's notification shade. Name the intent, unit, or incident; do not paste customer data, credentials, stack traces, or log excerpts. The detail belongs in the incident or unit file, which the message points to implicitly.
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Lifecycle events (the default notify set)
|
|
278
|
+
|
|
279
|
+
The agent sends a lifecycle notification when it reaches any of these moments. This set is the default; the project may add or remove events in the master rule file Notifications section.
|
|
280
|
+
|
|
281
|
+
| Event | When it fires | Priority |
|
|
282
|
+
|---|---|---|
|
|
283
|
+
| **Elaboration sign-off required** | The elaboration unit summary table is ready and the AI is waiting for engineer sign-off | high |
|
|
284
|
+
| **Bolt complete** | The last unit in a bolt is marked Done | normal |
|
|
285
|
+
| **UAT sign-off required** | All units under an intent are Done and UAT has not yet run | high |
|
|
286
|
+
| **Intent implemented** | An intent moves to Implemented and its Implementation Summary is written | normal |
|
|
287
|
+
| **Incident logged / hotfix started** | An incident file is created or a hotfix bolt begins | high |
|
|
288
|
+
| **Circuit breaker tripped** | The engagement circuit breaker fires (output rejected 3× on the same failure) | high |
|
|
289
|
+
| **Dependency audit due** | Session start on or after the `Next dependency audit` date in Section 9 | high |
|
|
290
|
+
|
|
291
|
+
Sending is best-effort and must never interrupt the workflow: send the notification, then continue the step. Do not wait for or report the curl result unless the engineer asked for an ad-hoc send.
|
|
292
|
+
|
|
293
|
+
**Expect overlap with the harness layer, and keep both.** With the turn-ended hook installed, asking for sign-off *is* the end of a turn, so the harness fires there too — you will get two messages at a sign-off moment. That is the correct trade, not a defect to tune away:
|
|
294
|
+
|
|
295
|
+
- The **harness** message is instant and generic: "finished its turn — waiting for you." It cannot be missed, and it cannot tell you what for.
|
|
296
|
+
- The **lifecycle** message says *which* delivery moment and *what is needed*: "UAT sign-off required — intent 'Checkout v2' has all units Done."
|
|
297
|
+
|
|
298
|
+
Delete the lifecycle sign-off events and you keep only the ping that does not say why. Delete the turn-ended hook and you depend on the agent remembering. Neither is worth the saving of one Slack line.
|
|
299
|
+
|
|
300
|
+
The attention hook (`Notification` / `beforeShellExecution` / `permissionRequest`) is different again — it fires on a permission request or an idle prompt, not when a question is asked, so it rarely doubles up with anything.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Onboarding setup (run once, during installation)
|
|
305
|
+
|
|
306
|
+
The onboarding agent performs these steps when the engineer opts into notifications:
|
|
307
|
+
|
|
308
|
+
**1. Ask whether the engineer wants notifications.**
|
|
309
|
+
|
|
310
|
+
> "Do you want Slack notifications for delivery moments that need a human — bolt complete, UAT sign-off, incidents, and so on? It's a personal setup: your own channel, your own webhook, on this machine. Each teammate does their own, and nothing gets committed. (You can skip this and add it later.)"
|
|
311
|
+
|
|
312
|
+
Section 10 records whether *this project* fires the lifecycle events at all; each engineer's own environment variable decides whether they personally receive them. So enabling Section 10 does not switch anything on for anyone else, and a teammate who never sets the variable is unaffected.
|
|
313
|
+
|
|
314
|
+
If the engineer declines, write Section 10 with **`Status: Disabled`** — that exact token, since `new-engineer-induction.md` matches on it — and stop here.
|
|
315
|
+
|
|
316
|
+
**2. Close the leak paths first, before the engineer has a URL in hand.** Add `scripts/notify.env`, `.envrc` and `.claude/settings.local.json` to the project's `.gitignore` (create the file if there is none), and confirm with `git check-ignore scripts/notify.env .envrc .claude/settings.local.json`. This is yours to do, and doing it now means there is no window in which a webhook URL could land in a tracked file.
|
|
317
|
+
|
|
318
|
+
**3. Install the send script.** Every send — both layers — goes through this one script, so JSON encoding lives in exactly one place and the command can be allowlisted once. Create it at **`scripts/notify.sh`, at the repository root** — not under `{FRAMEWORK_ROOT}`, and not under `.claude/`; it must be tool-neutral and reachable at a stable relative path.
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
#!/bin/sh
|
|
322
|
+
# Usage: scripts/notify.sh 'message text' (or pipe the message on stdin)
|
|
323
|
+
# Takes RAW text — the caller does not escape anything for JSON.
|
|
324
|
+
# Endpoint resolution, in order:
|
|
325
|
+
# 1. SLACK_WEBHOOK_URL already in the environment (CI, or an engineer who set it there)
|
|
326
|
+
# 2. scripts/notify.env next to this script — gitignored, one line, works on every OS/shell
|
|
327
|
+
# The file exists because a non-interactive shell (which is what an AI tool spawns) reads no
|
|
328
|
+
# startup file on bash, and a different one on every platform. Reading it here removes the
|
|
329
|
+
# whole problem: no shell configuration anywhere, same behaviour on macOS, Windows and Linux.
|
|
330
|
+
if [ -z "$SLACK_WEBHOOK_URL" ]; then
|
|
331
|
+
env_file="$(dirname "$0")/notify.env"
|
|
332
|
+
[ -f "$env_file" ] && . "$env_file"
|
|
333
|
+
fi
|
|
334
|
+
[ -n "$SLACK_WEBHOOK_URL" ] || { echo "SLACK_WEBHOOK_URL not set (no environment variable, no scripts/notify.env) — notification skipped" >&2; exit 0; }
|
|
335
|
+
|
|
336
|
+
if [ "$#" -gt 0 ]; then
|
|
337
|
+
msg="$*" # join all args, so a forgotten quote truncates nothing
|
|
338
|
+
elif [ -t 0 ]; then
|
|
339
|
+
msg="" # interactive with no argument: nothing to send, do not block on cat
|
|
340
|
+
else
|
|
341
|
+
msg="$(cat)" # message piped in
|
|
342
|
+
fi
|
|
343
|
+
[ -n "$msg" ] || { echo "notify.sh: empty message — notification skipped" >&2; exit 0; }
|
|
344
|
+
|
|
345
|
+
if command -v jq >/dev/null 2>&1; then
|
|
346
|
+
payload="$(printf '%s' "$msg" | jq -Rs '{text: .}')"
|
|
347
|
+
elif command -v python3 >/dev/null 2>&1; then
|
|
348
|
+
payload="$(printf '%s' "$msg" | python3 -c 'import json,sys; print(json.dumps({"text": sys.stdin.read()}))')"
|
|
349
|
+
else
|
|
350
|
+
echo "notify.sh needs jq or python3 to build the payload — notification skipped" >&2
|
|
351
|
+
exit 0
|
|
352
|
+
fi
|
|
353
|
+
|
|
354
|
+
curl -sf --max-time 5 -X POST -H 'Content-Type: application/json' \
|
|
355
|
+
--data "$payload" "$SLACK_WEBHOOK_URL" >/dev/null || true
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Then `chmod +x scripts/notify.sh` and commit it — it contains no secret, only the variable reference. Notes on the design, which are worth preserving if the script is edited:
|
|
359
|
+
|
|
360
|
+
- **The script does the JSON encoding, not the caller.** Hand-escaping JSON in prose instructions is error-prone in exactly the way that fails silently: a malformed payload gets a 400 from Slack, `curl -f` fails, `|| true` swallows it, and nobody learns the notification was dropped. `jq -Rs` / `json.dumps` cannot get it wrong.
|
|
361
|
+
- **`--max-time 5`** keeps the promise that sending never blocks a step. Without it, a black-holed connection to `hooks.slack.com` stalls the turn for the full TCP timeout.
|
|
362
|
+
- **An unset variable exits 0 but says so on stderr**, so the ad-hoc "send a notification that …" path has something truthful to report instead of claiming success. Exit stays 0 so a Claude Code hook never surfaces an error.
|
|
363
|
+
- **Plain POSIX shell**, hence `#!/bin/sh` — nothing here needs bash. On Windows it needs Git Bash or WSL; plain PowerShell cannot run it.
|
|
364
|
+
- **No message is a no-op, not an error.** Called with no argument and nothing piped in, it says so on stderr and exits 0 rather than hanging on `cat` waiting for input that never comes.
|
|
365
|
+
- If the project already keeps scripts under another name (`bin/`, `tools/`), put it there instead and use that exact path everywhere — the allowlist rule and Section 10 must match it character for character.
|
|
366
|
+
|
|
367
|
+
**4. Stop the send prompting for permission.** The lifecycle layer runs the script through the AI's shell/terminal tool, so by default the tool asks the engineer to approve every notification — which defeats the point of being notified. Approve it once, per tool:
|
|
368
|
+
|
|
369
|
+
- **Claude Code** — add the allow rule to `.claude/settings.json` (see the combined file in step 6; do not write it as a separate file that overwrites the hooks block):
|
|
370
|
+
```json
|
|
371
|
+
{ "permissions": { "allow": ["Bash(scripts/notify.sh:*)"] } }
|
|
372
|
+
```
|
|
373
|
+
The rule matches the bare `scripts/notify.sh …` form only. `./scripts/notify.sh` and `bash scripts/notify.sh` will still prompt.
|
|
374
|
+
- **Cursor** — add `scripts/notify.sh` to the agent's allowlist of terminal commands in Cursor Settings, so agent mode runs it without a confirmation.
|
|
375
|
+
- **GitHub Copilot** — allow the command in the VS Code terminal auto-approve settings for Copilot agent mode (`chat.tools.terminal.autoApprove`, or the equivalent in your version). Copilot must be in **agent mode**; completions and plain inline chat cannot run commands at all, so the lifecycle layer will never fire there.
|
|
376
|
+
|
|
377
|
+
If the team declines to allowlist anything, notifications still work — they just prompt before each send. Say so plainly rather than leaving it as a surprise.
|
|
378
|
+
|
|
379
|
+
**5. Hand the engineer Steps 1 and 2 of *Setting the environment variable* and wait — these two are theirs, not yours (see *Who does what*). Never ask them to paste the webhook URL into the conversation or into a committed file.** They create their own Slack channel and an incoming webhook pointing at it (Step 1), then tell the script where to send by writing `scripts/notify.env` — or, if they prefer, by setting `SLACK_WEBHOOK_URL` in a file a non-interactive shell actually reads (Step 2).
|
|
380
|
+
|
|
381
|
+
Stop here and wait for them to say it is done. Do not proceed while the endpoint is missing: every send would be a silent no-op and the remaining steps would look like they worked.
|
|
382
|
+
|
|
383
|
+
When they confirm, run *Setting the environment variable* Step 3 yourself to verify — the send script exists by now, which is why this step comes after installing it. Every teammate repeats this on their own machine with their own channel; see *New teammates joining later*.
|
|
384
|
+
|
|
385
|
+
**6. Install the harness layer.** Every supported tool has hooks — install them, do not offer them. Two events by default: **turn ended** and **needs attention**. The turn-ended hook is the one engineers actually want: it fires when the agent finishes work, asks a question, or stops for the next prompt, which is the whole point of not watching a session.
|
|
386
|
+
|
|
387
|
+
Use the config file for the team's tool (see *What each AI tool gets*). Prefix every message with the project name so a person watching several repos can tell them apart.
|
|
388
|
+
|
|
389
|
+
**Claude Code** — `.claude/settings.json`, merged with the `allow` entry from step 4:
|
|
390
|
+
```json
|
|
391
|
+
{
|
|
392
|
+
"permissions": { "allow": ["Bash(scripts/notify.sh:*)"] },
|
|
393
|
+
"hooks": {
|
|
394
|
+
"Stop": [
|
|
395
|
+
{ "hooks": [ { "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/scripts/notify.sh ':white_check_mark: [<ProjectName>] Claude finished its turn — waiting for you.'" } ] }
|
|
396
|
+
],
|
|
397
|
+
"Notification": [
|
|
398
|
+
{ "hooks": [ { "type": "command", "command": "\"$CLAUDE_PROJECT_DIR\"/scripts/notify.sh ':bell: [<ProjectName>] Claude needs your attention — permission request or idle prompt.'" } ] }
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**Cursor** — `.cursor/hooks.json`:
|
|
405
|
+
```json
|
|
406
|
+
{
|
|
407
|
+
"version": 1,
|
|
408
|
+
"hooks": {
|
|
409
|
+
"stop": [ { "command": "scripts/notify.sh ':white_check_mark: [<ProjectName>] Cursor finished its turn — waiting for you.'" } ],
|
|
410
|
+
"beforeShellExecution": [ { "command": "scripts/notify.sh ':bell: [<ProjectName>] Cursor is asking to run a command.'" } ]
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
**GitHub Copilot** — `.github/hooks/notify.json`:
|
|
416
|
+
```json
|
|
417
|
+
{
|
|
418
|
+
"version": 1,
|
|
419
|
+
"hooks": {
|
|
420
|
+
"agentStop": [ { "type": "command",
|
|
421
|
+
"bash": "scripts/notify.sh ':white_check_mark: [<ProjectName>] Copilot finished its turn — waiting for you.'",
|
|
422
|
+
"powershell": "sh scripts/notify.sh ':white_check_mark: [<ProjectName>] Copilot finished its turn — waiting for you.'" } ],
|
|
423
|
+
"permissionRequest": [ { "type": "command",
|
|
424
|
+
"bash": "scripts/notify.sh ':bell: [<ProjectName>] Copilot needs your approval.'",
|
|
425
|
+
"powershell": "sh scripts/notify.sh ':bell: [<ProjectName>] Copilot needs your approval.'" } ]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Notes:
|
|
431
|
+
|
|
432
|
+
- **Merge, never overwrite.** If the tool's config file already exists, add these keys to what is there. For Claude Code, step 4 and step 6 both touch `.claude/settings.json`; for Cursor and Copilot the file may already hold unrelated hooks.
|
|
433
|
+
- **Turn-ended fires on every turn.** That is the intent — it is the event that replaces watching the session — but say the number out loud during onboarding: a forty-turn session is forty messages. If the team finds it too much, drop the turn-ended hook and keep the attention hook, which fires only when the agent is actually blocked on them.
|
|
434
|
+
- **Claude Code needs `$CLAUDE_PROJECT_DIR`; the others take a repo-relative path.** Hook commands have no guaranteed working directory, and Claude Code is the one with an explicit variable for the project root. Cursor resolves a project hook's relative path from the project root; Copilot accepts a `cwd` key if you need to pin it. Get this wrong and the hook dies with "No such file or directory" — silently, because hook failures are swallowed.
|
|
435
|
+
- **Hooks are not governed by the send-command allowlist.** `permissions.allow` (or the equivalent) covers the agent's own shell tool, not the harness. That is why the hook path and the call-site path are spelled differently on purpose.
|
|
436
|
+
- Hooks call the same `scripts/notify.sh`, so they inherit the timeout, the payload encoding, and the silent-no-op behaviour. Step 3 must have run first.
|
|
437
|
+
- **If `.claude/` (or the tool's config directory) is gitignored in this project**, the hooks cannot be shared — they become per-engineer setup like the endpoint. Record that in Section 10 and add it to the induction steps, or a new teammate silently gets nothing.
|
|
438
|
+
- None of these files contain a secret — only the script path and message text — so they are safe to commit wherever the project's ignore rules allow it.
|
|
439
|
+
|
|
440
|
+
**7. Wire the lifecycle layer into the master rule file** (Section 6 routing line and Section 10 — see the setup guide).
|
|
441
|
+
|
|
442
|
+
**8. Confirm.** Send one test notification (substituting the real project name for `<ProjectName>`) whose text exercises the characters real messages contain — parentheses, an em-dash, an apostrophe, and a quoted name — so quoting and the allowlist are verified against the real shape, not a benign string:
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
scripts/notify.sh ':rotating_light: [<ProjectName>] Notifications configured — test of unit '\''apply-coupon'\'' (Sev-1) "quoted".'
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Ask the engineer to confirm the message arrived in the Slack channel and that it was sent **without a permission prompt**. If it prompted, step 4 did not take effect.
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
## Turning it off
|
|
453
|
+
|
|
454
|
+
- **Per session:** the engineer says "turn notifications off for this session" — the agent suppresses both layers (skips lifecycle sends) until the session ends.
|
|
455
|
+
- **Just for you:** unset `SLACK_WEBHOOK_URL` in your shell profile. Nobody else is affected — the endpoint is per engineer.
|
|
456
|
+
- **For the whole project:** set Section 10 to **`Status: Disabled`** (that exact token) so the lifecycle events stop firing for everyone, and remove the `.claude/settings.json` hooks.
|