Files
ai-agent/sidecar/call_hook.py
gabrielvidalandClaude Opus 5.5 4f62cb3936 feat(callprobe): agent-probe replaces claude-probe on the runner
The sidecar now finds, fetches and runs agent-probe (claude-probe's
successor, generalised to opencode / Codex / pi): binary
/usr/local/bin/agent-probe or ~/.local/bin/agent-probe, release assets
agent-probe-<os>-<arch> from GabrielVidal1/agent-probe, MIN_VERSION 0.1.0,
its state dir and socket (AGENT_PROBE_SOCK / AGENT_PROBE_STATE_DIR).
SIDECAR_AGENT_PROBE{,_FETCH,_RELEASES} replace the SIDECAR_CLAUDE_PROBE*
knobs, which still work as fallbacks.

At startup, once — while claude-probe's probe.db exists and agent-probe's
doesn't — it stops claude-probe's daemon (SIGTERM to the pid its
GET /health names) and runs `agent-probe migrate` (record ids kept, so the
hub's cursor carries on), retrying if a session's hook restarted the old
daemon in between; a failure is only logged. Then one
`agent-probe install --config-dir …` for every account, which replaces
claude-probe's hooks in place and sets the other agents' hooks / plugins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 11:37:03 +01:00

10 lines
295 B
Python

#!/usr/bin/env python3
"""Retired: the call probe is agent-probe now (callprobe.py installs its
hooks). This no-op stays only while settings.json files still name it — the
sidecar takes those hooks out at start; delete this file once they're gone."""
import sys
sys.stdin.read()
sys.exit(0)