Petdex connects to four coding agents today: Claude Code, Codex, Gemini CLI, and
opencode. Each one gets its hooks written from the desktop app's Settings →
Agents panel, and every hook invocation drives the floating pet's animation
state and speech bubble through the in-binary runner at
packages/petdex-desktop-native/src/hook_runner.zig.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bun | |
| import { createInterface } from "node:readline/promises"; | |
| import { stdin as input, stdout as output } from "node:process"; | |
| import { existsSync } from "node:fs"; | |
| import { cp, lstat, mkdir, readdir, rename, rm } from "node:fs/promises"; | |
| import { spawnSync } from "node:child_process"; | |
| import os from "node:os"; | |
| import path from "node:path"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bun | |
| import { mkdir, writeFile, readFile, rm } from "node:fs/promises"; | |
| import { existsSync } from "node:fs"; | |
| import { join, dirname, basename } from "node:path"; | |
| const BUCKET = | |
| "https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases"; | |
| const API = | |
| "https://storage.googleapis.com/storage/v1/b/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/o"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bun | |
| /** | |
| * Axios Supply Chain Attack Detector | |
| * Detects compromise from axios@1.14.1 / axios@0.30.4 (2026-03-31) | |
| * | |
| * Malicious versions inject plain-crypto-js@4.2.1 which deploys a | |
| * cross-platform RAT (Remote Access Trojan) via postinstall hook. | |
| * | |
| * Usage: bun run check-axios-attack.ts [--scan-dir /path/to/projects] | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bun | |
| /** | |
| * Download a specific version of Claude Code from npm, | |
| * then extract the original TypeScript source from its source map. | |
| * | |
| * Usage: | |
| * bun extract-claude-code.mjs [version] | |
| * | |
| * Example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Extract original source code from a JavaScript source map file. | |
| * | |
| * Usage: | |
| * node extract-sourcemap.mjs <path-to-.map-file> [output-dir] | |
| * | |
| * Example: | |
| * node extract-sourcemap.mjs cli.js.map ./src-extracted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| GCS_BUCKET="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases" | |
| GCS_API="https://storage.googleapis.com/storage/v1/b/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/o" | |
| VERSIONS_DIR="$HOME/.local/share/claude/versions" | |
| # Colors | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # LiteLLM Supply Chain Attack Detector | |
| # Checks for compromised litellm versions (1.82.7 / 1.82.8) and related IoCs | |
| # Reference: https://github.com/BerriAI/litellm/issues/24512 | |
| # Date: 2026-03-24 | |
| set -euo pipefail | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
/btw is a slash command that lets users ask a quick side question without interrupting the main conversation flow. It forks a lightweight, single-turn API call using the existing conversation context but with no tools available.
The response is displayed inline and can be dismissed with Space/Enter/Escape to resume the main conversation.
NewerOlder