telemetry-query

telemetry-query is a command for Claude Code from JackScammell/Parliament-Of-Chaos. It costs 19 tokens per session (1,322 once invoked), scanned A, original, MIT.

A command for running ad-hoc queries over activity.jsonl and the plugin data directory, which store Parliament telemetry records.

In plain words
What is it for?
It helps investigate recorded activity and examine data collected by the plugin.
Why use it?
It provides a read-only way to inspect telemetry data without manually searching the files.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Part of the chaos plugin — 65 commands, 33 agents, 13 hooks shipped together

Good fit It helps investigate recorded activity and examine data collected by the plugin.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jackscammell/parliament-of-chaos/telemetry-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JackScammell/Parliament-Of-Chaos

Made for: Claude Code.

Or install chaos, the plugin that ships this one along with the rest of its 65 commands, 33 agents, 13 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for telemetry-query

README.md
[![agentmods](https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/telemetry-query/github.svg)](https://agentmods.dev/commands/jackscammell/parliament-of-chaos/telemetry-query)
Your own site
<a href="https://agentmods.dev/commands/jackscammell/parliament-of-chaos/telemetry-query"><img src="https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/telemetry-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for telemetry-query

Your own site · 80×15
<a href="https://agentmods.dev/commands/jackscammell/parliament-of-chaos/telemetry-query"><img src="https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/telemetry-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.01322
Opus 5.5 $0.00008 $0.00529
Sonnet 5.5 $0.00004 $0.00264
Haiku 4.5 $0.00002 $0.00132

Measured 2mo ago against content hash 49435e9e045a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

telemetry-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/telemetry-query.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Telemetry Query

The activity.jsonl log and other files under ${CLAUDE_PLUGIN_DATA}/ are write-only today — hooks append but nothing reads them. This command is the missing read path: an ad-hoc query tool with filters, aggregations, and output formats suitable for piping into /parliament-metrics or human review.

Usage

/telemetry-query [--event <name>] [--agent <name>] [--since <duration>] [--until <duration>] [--where <expr>] [--group-by <field>] [--limit <n>] [--json]

Examples:

/telemetry-query --event TaskCompleted --since 24h
/telemetry-query --agent grumpy-code-reviewer --since 7d --group-by session_id
/telemetry-query --event PermissionDenied --since 30d   # diagnose auto-mode denials
/telemetry-query --where 'duration_ms > 60000' --limit 20
/telemetry-query --event Stop --since 7d --group-by reason --json

Options

  • --event <name>: Filter by hook event name (e.g. TaskCreated, TaskCompleted, Stop, PermissionDenied, SubagentStop, PostToolUse, DebateCompleted).
  • --agent <name>: Filter by the agent field where present.
  • --since <duration> / --until <duration>: Time window. Accepts Nh, Nd, Nw, Nmo, or ISO timestamps. Defaults: --since 7d, --until now.
  • --where <expr>: Post-filter expression over record fields. Supports simple comparisons (==, !=, <, >, contains). Whitelisted fields only — no arbitrary code execution.
  • --group-by <field>: Aggregate counts by field (agent, event, session_id, reason, tool, etc.).
  • --limit <n>: Cap result rows. Default 100.
  • --json: Emit structured output.

Data Sources

  • ${CLAUDE_PLUGIN_DATA}/agent-logs/activity.jsonl (primary — the path log_event.sh writes)
  • ${CLAUDE_PLUGIN_DATA}/agent-logs/activity.jsonl.<epoch>.old (timestamped rotation backups, merged transparently when the --since window reaches back into them)
  • ${CLAUDE_PLUGIN_DATA}/debate-logs/completions.jsonl (optional — surfaced via --event DebateCompleted)

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 103 lines · 19 tokens per session scan A 49435e9e045a

Subscribe to this mod's changes

telemetry-query is a command published in the GitHub repository JackScammell/Parliament-Of-Chaos (4 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 1,322 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

telemetry-query compared with commands from other repositories

telemetry-query next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
telemetry-queryJackScammell/Parliament-Of-ChaosCommand41mo agoMITA19Claude Code
templategastownhall/beadsCommand29kyesterdayMITA0Claude Code
swarm-statusproffesor-for-testing/agentic-qeCommand537yesterdayMITA0Claude Code
auto-browsemarcusquinn/aidevopsCommand477todayMITA18Claude Code
swarm-statusruvnet/agentic-flowCommand85019d agononeA0Claude Code
doctorfatihkan/badiCommand81mo agoMITA0Claude Code
fixstefan-jansen/claude-code-toolkitCommand1014mo agoMITA9Claude Code