# devbrother2024/devbrothers-mods architecture

> Architecture diagram of the GitHub repository devbrother2024/devbrothers-mods, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/devbrother2024/devbrothers-mods
- Repository: https://github.com/devbrother2024/devbrothers-mods

## Overview

devbrothers-mods is a four-plugin Claude Code taxi-themed mod pack. The user’s workflow is to install plugins into a Claude Code session, where hooks observe usage, tasks, tool calls, and Bash commands; each mod then reports costs, guides task progress, blocks risky commands for confirmation, or records incidents for review. The README documents capabilities and ordering across the pack, but the excerpts do not show inter-plugin calls, so the mods are represented as independent session hooks. Source excerpts show their main event handling and UI behavior; some documented details are preserved without asserting unsampled implementation links.

Main entry points: [`plugins/taxi-meter/hooks/register.ts`](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts) (Usage and fare tracking), [`plugins/taxi-speedcam/hooks/register.ts`](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts) (Risk command checks), [`plugins/taxi-navi/hooks/register.ts`](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts) (Task progress tracking), [`plugins/taxi-blackbox/hooks/register.ts`](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts) (Tool call recorder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_meter["Metering"]
  node_meter_hook["Usage and fare tracking<br/>[register.ts]"]
  node_meter_commands["Meter and receipt commands<br/>[register.ts]"]
  node_meter_ui["Meter and receipt panels<br/>[register.ts]"]
  node_ledger[("Usage ledger")]
  node_meter_audio["Meter alerts<br/>[register.ts]"]
end

subgraph group_navigation["Task navigation"]
  node_navi_hook["Task progress tracking<br/>[register.ts]"]
  node_navi_command["Navigation command<br/>[register.ts]"]
  node_navi_ui["Route guidance panel<br/>[register.ts]"]
  node_navi_audio["Voice and ding cues<br/>[register.ts]"]
end

subgraph group_safety["Command safety"]
  node_speedcam_hook["Risk command checks<br/>[register.ts]"]
  node_speedcam_prompt["Allow or stop prompt<br/>[register.ts]"]
  node_speedcam_ui["Camera alert and history<br/>[register.ts]"]
  node_speedcam_audio["Camera sound and voice<br/>[register.ts]"]
end

subgraph group_recording["Session recording"]
  node_blackbox_hook["Tool call recorder<br/>[register.ts]"]
  node_blackbox_frames[("Redacted session frames<br/>[register.ts]")]
  node_blackbox_command["Blackbox command<br/>[register.ts]"]
  node_blackbox_ui["Incident timeline and replay<br/>[register.ts]"]
end

node_user(("Claude Code user"))
node_session["Claude Code session"]

node_user -->|"uses"| node_session
node_session -->|"sends usage events"| node_meter_hook
node_meter_hook -->|"reads and writes"| node_ledger
node_session -->|"routes commands"| node_meter_commands
node_meter_commands -->|"opens receipt"| node_meter_ui
node_meter_hook -->|"renders panel"| node_meter_ui
node_meter_hook -->|"plays alerts"| node_meter_audio
node_session -->|"sends task events"| node_navi_hook
node_session -->|"routes command"| node_navi_command
node_navi_hook -->|"renders route"| node_navi_ui
node_navi_hook -->|"plays cues"| node_navi_audio
node_session -->|"dispatches Bash"| node_speedcam_hook
node_speedcam_hook -->|"asks decision"| node_speedcam_prompt
node_speedcam_prompt -->|"continues or denies"| node_session
node_speedcam_hook -->|"updates alert"| node_speedcam_ui
node_speedcam_hook -->|"plays warning"| node_speedcam_audio
node_session -->|"dispatches tool calls"| node_blackbox_hook
node_blackbox_hook -->|"records redacted frames"| node_blackbox_frames
node_session -->|"routes command"| node_blackbox_command
node_blackbox_command -->|"opens incident view"| node_blackbox_ui
node_blackbox_frames -->|"renders incidents"| node_blackbox_ui

click node_meter_hook "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts"
click node_meter_commands "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts"
click node_meter_ui "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts"
click node_meter_audio "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts"
click node_navi_hook "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts"
click node_navi_command "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts"
click node_navi_ui "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts"
click node_navi_audio "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts"
click node_speedcam_hook "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts"
click node_speedcam_prompt "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts"
click node_speedcam_ui "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts"
click node_speedcam_audio "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts"
click node_blackbox_hook "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts"
click node_blackbox_frames "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts"
click node_blackbox_command "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts"
click node_blackbox_ui "https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_meter_hook,node_meter_commands,node_meter_ui,node_ledger,node_meter_audio,node_user toneBlue
class node_navi_hook,node_navi_command,node_navi_ui,node_navi_audio toneAmber
class node_speedcam_hook,node_speedcam_prompt,node_speedcam_ui,node_speedcam_audio toneMint
class node_blackbox_hook,node_blackbox_frames,node_blackbox_command,node_blackbox_ui toneRose
class node_session toneIndigo
```

## Components

### Metering

- [Usage and fare tracking](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts): `plugins/taxi-meter/hooks/register.ts`
- [Meter and receipt commands](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts): `plugins/taxi-meter/hooks/register.ts`
- [Meter and receipt panels](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts): `plugins/taxi-meter/hooks/register.ts`
- **Usage ledger**
- [Meter alerts](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-meter/hooks/register.ts): `plugins/taxi-meter/hooks/register.ts`

### Task navigation

- [Task progress tracking](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts): `plugins/taxi-navi/hooks/register.ts`
- [Navigation command](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts): `plugins/taxi-navi/hooks/register.ts`
- [Route guidance panel](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts): `plugins/taxi-navi/hooks/register.ts`
- [Voice and ding cues](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-navi/hooks/register.ts): `plugins/taxi-navi/hooks/register.ts`

### Command safety

- [Risk command checks](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts): `plugins/taxi-speedcam/hooks/register.ts`
- [Allow or stop prompt](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts): `plugins/taxi-speedcam/hooks/register.ts`
- [Camera alert and history](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts): `plugins/taxi-speedcam/hooks/register.ts`
- [Camera sound and voice](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-speedcam/hooks/register.ts): `plugins/taxi-speedcam/hooks/register.ts`

### Session recording

- [Tool call recorder](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts): `plugins/taxi-blackbox/hooks/register.ts`
- [Redacted session frames](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts): `plugins/taxi-blackbox/hooks/register.ts`
- [Blackbox command](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts): `plugins/taxi-blackbox/hooks/register.ts`
- [Incident timeline and replay](https://github.com/devbrother2024/devbrothers-mods/blob/main/plugins/taxi-blackbox/hooks/register.ts): `plugins/taxi-blackbox/hooks/register.ts`

### Other components

- **Claude Code user**
- **Claude Code session**

## Connections

- Claude Code user → Claude Code session: uses (evidence: `README.md`)
- Claude Code session → Usage and fare tracking: sends usage events (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Usage and fare tracking → Usage ledger: reads and writes (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Claude Code session → Meter and receipt commands: routes commands (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Meter and receipt commands → Meter and receipt panels: opens receipt (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Usage and fare tracking → Meter and receipt panels: renders panel (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Usage and fare tracking → Meter alerts: plays alerts (evidence: `plugins/taxi-meter/hooks/register.ts`)
- Claude Code session → Task progress tracking: sends task events (evidence: `plugins/taxi-navi/hooks/register.ts`)
- Claude Code session → Navigation command: routes command (evidence: `plugins/taxi-navi/hooks/register.ts`)
- Task progress tracking → Route guidance panel: renders route (evidence: `plugins/taxi-navi/hooks/register.ts`)
- Task progress tracking → Voice and ding cues: plays cues (evidence: `plugins/taxi-navi/hooks/register.ts`)
- Claude Code session → Risk command checks: dispatches Bash (evidence: `plugins/taxi-speedcam/hooks/register.ts`)
- Risk command checks → Allow or stop prompt: asks decision (evidence: `plugins/taxi-speedcam/hooks/register.ts`)
- Allow or stop prompt → Claude Code session: continues or denies (evidence: `plugins/taxi-speedcam/hooks/register.ts`)
- Risk command checks → Camera alert and history: updates alert (evidence: `plugins/taxi-speedcam/hooks/register.ts`)
- Risk command checks → Camera sound and voice: plays warning (evidence: `plugins/taxi-speedcam/hooks/register.ts`)
- Claude Code session → Tool call recorder: dispatches tool calls (evidence: `plugins/taxi-blackbox/hooks/register.ts`)
- Tool call recorder → Redacted session frames: records redacted frames (evidence: `plugins/taxi-blackbox/hooks/register.ts`)
- Claude Code session → Blackbox command: routes command (evidence: `plugins/taxi-blackbox/hooks/register.ts`)
- Blackbox command → Incident timeline and replay: opens incident view (evidence: `plugins/taxi-blackbox/hooks/register.ts`)
- Redacted session frames → Incident timeline and replay: renders incidents (evidence: `plugins/taxi-blackbox/hooks/register.ts`)
