Skip to content
Development
Command

/metrics

Show IJFW token / cost / session metrics over a time window. Reads .ijfw/metrics/sessions.jsonl via the ijfw_metrics MCP tool.

From plugin
ijfw
20522 skills37 agents22 commands1 MCP
Install
$ npx -y skills add FerroxLabs/ijfw --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/metrics

Context preview

What this command does when you run it.

Show IJFW token / cost / session metrics over a time window. Reads .ijfw/metrics/sessions.jsonl via the ijfw_metrics MCP tool.

Command definition

metrics.md
name: ijfw-metrics
description: "Show IJFW token / cost / session metrics over a time window. Reads .ijfw/metrics/sessions.jsonl via the ijfw_metrics MCP tool."

Call the `ijfw_metrics` MCP tool with:

  • `period`: `$1` if provided (one of `today`, `7d`, `30d`, `all`), else `7d`
  • `metric`: `$2` if provided (one of `tokens`, `cost`, `sessions`, `routing`), else `tokens`

Render the result inside a fenced code block -- no extra commentary, no headers. The tool returns positive-framed text even when no data is available yet.

Examples the user might invoke:

  • `/ijfw-metrics` -- last 7 days, tokens
  • `/ijfw-metrics 30d cost` -- last 30 days, cost in USD
  • `/ijfw-metrics all sessions` -- all-time session counts and handoff rate
  • `/ijfw-metrics today routing` -- today's routing mix

Footer note (only if data appears): metrics reflect clean session-ends only -- crashes or force-quits skip the Stop hook and undercount tokens for that turn.

Ships withijfw

IJFW — It Just F*cking Works. Ferrox Labs' local-first infrastructure for AI coding agents: shared memory, smart routing, multi-AI cross-audits, disciplined workflow.

Get the whole plugin