Skip to content

Cockpit 3c follow-up: evaluate the tool-mirror spike and feed worker-tools.jsonl into the inspector drawer #84

Description

@robercano

Context

Issue #71 / PR #75 landed .claude/scripts/log-worker-tool.sh as a SPIKE, disabled by default: a PostToolUse hook that mirrors worker Bash/Edit/Write calls to .claude/state/worker-tools.jsonl (zero agent tokens, capped at 2000 lines). The stated exit criterion — gather signal/noise and log-growth evidence on a real orchestrated run before committing to always-on mirroring — has not been executed yet.

Change

  1. Evaluate: enable the hook (wiring snippet is in the script header), run at least one real multi-worker fan-out, and record findings on the issue: lines/hour, rotation behavior, whether the Bash summaries are readable, any noise sources worth filtering.
  2. Decide: if the evidence is good, flip the hook to enabled-by-default in .claude/settings.json (and the setup skill's scaffolding); if not, document why and what would change the call.
  3. Payoff: extend the cockpit worker-inspector drawer (issue Cockpit 3b: worker inspector drawer (timeline + worktree forensics + breadcrumbs) #70) with a "Live activity" section — the most recent worker-tools.jsonl records attributed to the worker's worktree path, newest first, rendered via textContent only (same XSS contract as the rest of the drawer). Extend GET /api/worker/<role>/<task> to include them.

Done when

  • Evaluation findings are posted on this issue.
  • The enable/disable decision is made and reflected in settings + docs.
  • If enabled: the drawer shows live tool activity per worker, with tests in cockpit.test.sh covering the new API field (including the no-log-file case).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmodule:harnessOrchestrator machinery under .claudeplannedOwner-approved for the autonomous loop (assigned ONLY by the owner)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions