Skip to content

Skills: a flow view of the hooks, with the agent's activity linked to it #482

Closed

Description

@7schmiede

Problem

A developer cannot see what devstack does for their coding agent while it works. The Skills page lists the pools' skills and how many hooks each carries (2 hooks), but not when a hook fires, under which condition, what it tells the agent, or which tool calls followed. When a hook stays silent (an upstream not accepted, a pattern that does not match), nothing says why; finding out means reading agent-hooks.json, upstreams.toml and the agent's configuration (as in #473).

Proposal

A view Flow on the Skills page: a diagram of a session's phases with the hooks of the skills switched on as nodes, and beside it the activity of the agent's session, linked to the diagram.

  1. Diagram. Phases: session start, a prompt (with the patterns that match), lane stop, session end (given at the next start). Each hook a node, coloured by its skill. Hover: event, condition in plain words (upstream accepted, pattern, repositories), how often (once), which agents get it, the start of its text. A hook whose condition does not hold is greyed out with the reason.
  2. Activity. The hook dispatcher records each firing, devstack mcp each tool call that passes through it (devstack's own tools and the upstreams'): time, agent, session, working tree, hook or tool, duration, result. A hook node shows when it last fired; an upstream's call is shown under the skill that names that upstream; a click on a node filters the activity. Live through /hub/events.
  3. Later, separately: the agent's built-in tools (Bash, Edit, Read) do not pass devstack. Seeing them needs a PostToolUse hook entry whose input carries commands and file contents: a trust question of its own, opt-in, names and durations only.

Only what happened is recorded, never arguments, prompts, hook texts or results; it stays on the machine (not in the pool's telemetry) and is dropped after seven days.

Open

  • Whether an agent passes its session id to devstack mcp; without it, a tool call is matched to a session by working tree and time.
  • Whether the view belongs on the Skills page only, or also on a working tree's page ("what my agent is doing here").

The review card goes into the pull request that builds it.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions