flow-metrics

flow-metrics is an agent for coding agents from TAJD/projektor. It costs 17 tokens per session (891 once invoked), scanned A, original, MIT.

A project metrics tool that measures how work moves from being ready to finished, including time in progress, review delays, open-work age, and human involvement.

In plain words
What is it for?
Use it to review weekly or daily delivery metrics, compare lead and cycle times, find review bottlenecks, and inspect currently aging work.
Why use it?
It turns indexed project timestamps into trends and snapshots, so teams can see where work slows down and which items may be stuck.

Agent

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.

agentmods
npx agentmods add agents/tajd/projektor/flow-metrics
Clone the repo
git clone --depth 1 https://github.com/TAJD/projektor

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 flow-metrics

README.md
[![agentmods](https://agentmods.dev/badge/agents/tajd/projektor/flow-metrics.svg)](https://agentmods.dev/agents/tajd/projektor/flow-metrics)
Your own site
<a href="https://agentmods.dev/agents/tajd/projektor/flow-metrics"><img src="https://agentmods.dev/badge/agents/tajd/projektor/flow-metrics.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00891
Opus 5 $0.00009 $0.00445
Sonnet 5 $0.00003 $0.00178
Haiku 4.5 $0.00002 $0.00089

Measured 4d ago against content hash 4d8b5524884b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flow-metrics 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 4d 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.

apps/docs/src/content/docs/agents/flow-metrics.md · 66 lines

How it starts

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

get_flow_metrics computes these from indexed transition timestamps for one project. Pass since/until (epoch seconds) to window it, and granularity: "day" for daily buckets (default is weekly: the current ISO week plus the preceding five).

The collaboration-shape metrics below measure human attention, not an agent-vs-human split — the question they answer is "where does a human's time go," not "who did the work."

Time-in-state

Metric Definition
leadTime ready → done
cycleTime claimed → done
timeInProgress claimed → next stage
reviewLatency in_review → done — the primary human choke point, with a reviewLatencyOverTime trend
agingWip every currently open (in_progress/in_review) issue with its age since claim — a present-state snapshot, not scoped to since/until. Read it against cycleTime's p50/p90 as reference lines: it surfaces stuck items before they finish and skew the percentiles.

Collaboration shape

Metric Definition
humanInterventions human-authored comments plus status bounces out of review, per completed issue
autonomyRatio lease-held time ÷ cycle time (claimed → done), per completed issue
flowEfficiency lease-held time ÷ lead time (ready → done), for issues completed in the window

autonomyRatio and flowEfficiency look similar but divide by different spans: autonomyRatio excludes queueing time before an issue was claimed; flowEfficiency includes it. A project with a long ready→claimed queue will show a lower flowEfficiency than autonomyRatio even with identical execution.

Volume over time

Metric Definition
wipOverTime work-in-progress (claimed but not done) count per bucket
throughputOverTime issues completed per bucket
cfdOverTime cumulative flow diagram: per-bucket counts of issues in each stage (backlogTodo, inProgress, inReview, done). done is cumulative and never decreases; a widening band between two stages is a choke point.
arrivalVsCompletionOverTime issues created vs. completed per bucket, plus net (created − completed) — answers whether the backlog is growing or burning
bugShareOverTime bug share of completed throughput per bucket (total, bugCount, bugSharePercent). Untyped issues count toward total but never bugCount. A rising trend signals more defects shipping, not just more work.
bugTypeTracked whether a task type keyed bug exists in the workspace at all. false means bug share can't be computed (no matching type) — distinct from a genuine 0%.

Read the full file on GitHub · 66 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. 4d ago First seen · 66 lines · 17 tokens per session scan A 4d8b5524884b

Subscribe to this mod's changes

flow-metrics is an agent published in the GitHub repository TAJD/projektor (39 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 891 once invoked, about $0.0001 per session on Opus 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-08-30.