/test-claude-hooks
Test Claude hook handling during the current Claude turn using only hooks emitted naturally by Claude.
$ npx -y skills add tanlethanh/zedra --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/test-claude-hooks
Context preview
What this command does when you run it.
Test Claude hook handling during the current Claude turn using only hooks emitted naturally by Claude.
Command definition
test-claude-hooks.mdTest Claude hook handling during the current Claude turn using only hooks emitted naturally by Claude.
What it does
1. Uses the real `UserPromptSubmit` emitted for this command → state turns **Running** (blue dot) 2. Requests permission to read `~/.ssh/config` → the real `PermissionRequest` turns state **WaitingApproval** (yellow dot), Delta notification if backgrounded 3. Uses the real `Stop` emitted when the enclosing Claude turn finishes → state turns **Completed** (green dot), Delta notification if backgrounded 4. Done — state reverts to **Idle** after the 30-second host timer
Usage
/test-claude-hooks
Instructions
Use the Read tool to read `~/.ssh/config`, requiring user approval through Claude's tool permission dialog. Do not use Bash, ask for approval as a normal chat question, invoke `zedra agent hook receive`, or manually send any hook events; Claude emits the hooks for the enclosing command and permission request.
After the command is approved or denied, report: `Claude hook test complete. This turn used only real Claude hook events.`
An experimental remote code editor on mobile with GPU-accelerated rendering powered by Zed's GPUI, P2P tunnel over QUIC/UDP by Iroh.
Repo: tanlethanh/zedra
Other commands on zedra.
- /android-build
Build the Rust libraries and install the APK to the connected Android device. Does NOT launch the app or monitor logs.
Open command - /android-dev
Build, install, launch, and monitor the Android app.
Open command - /android-log
Clear logcat and stream filtered logs from the running Android app.
Open command - /devtool
Drive the Zedra Android UI from the agent via the in-app GPUI devtool HTTP server.
Open command - /ios-dev
Build, install, launch, and monitor the iOS app on a connected device.
Open command - /ios-log
Stream and analyze logs from a USB-connected iOS device running Zedra.
Open command

