tunnel-observer

Reviewed at commit b468b10

MIDDLEWARE TUNNEL stage 1: Observer: sees the call first, stamps t0, prints what enters

Made by
ucsandman
What we checked

A small demo of stacked tool-call handlers: when a Bash command contains the word "tunnel", it writes a few log lines with the command start, the other handlers' timings and the total time. It changes nothing, reads no files, runs no programs and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers one handler, on('tool.call', { tool: 'Bash', command: /tunnel/i }), which stamps a start time, calls $.ui.log with the first 60 characters of the command, awaits next(e), then logs the pipeline trace (next.trace plugin names, tiers and milliseconds) and the elapsed time, and returns the result unchanged. It only fires for Bash commands matching /tunnel/i. No store, fs, process, env, network or model calls. It is stage 1 of a four-stage demo (observer, cost, policy, telemetry) meant to be loaded together.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for tunnel-observer

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/tunnel-observer.svg)](https://modsforclaude.com/mods/tunnel-observer/)

← All mods