CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

tessl/agent-signals

Record which skills and MCP tools your agents use, and send those signals to your Tessl org so you can see which skills are reached for and which are never used

1.00x
Quality

97%

Does it follow best practices?

Impact

100%

1.00x

2 of 3 eval scenarios. Add 1 more for a full score.

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

emit-signal.shhooks/

#!/usr/bin/env bash
# Skip starting `tessl cli emit-signal` only for a PostToolUse payload that
# cannot produce a signal. The CLI records a signal for a `Skill` tool, an
# `mcp__` tool, or a read of a SKILL.md (by a reading tool or a shell
# command), so a payload that names none of those is dropped there anyway.
# Anything this check cannot read plainly, including JSON `\u` escapes, is
# passed through. The read stops one byte past the CLI's 8 MiB input limit, and
# an oversized payload is passed through so the CLI rejects it.
payload=$(head -c 8388609)
payload_bytes=$(LC_ALL=C; echo "${#payload}")

if ((payload_bytes <= 8388608)) && [[ $payload != *SKILL.md* && $payload != *\\u* ]] &&
  [[ $payload =~ \"hook_event_name\"[[:space:]]*:[[:space:]]*\"PostToolUse\" ]] &&
  ! [[ $payload =~ \"hook_event_name\"[[:space:]]*:[[:space:]]*\"SessionStart\" ]] &&
  ! [[ $payload =~ \"tool_name\"[[:space:]]*:[[:space:]]*\"(Skill|mcp__[^\"]*)\" ]]; then
  exit 0
fi

printf '%s' "$payload" | tessl cli emit-signal >/dev/null 2>&1 || true
exit 0

README.md

tile.json