lifesciences-research: Command for Claude Code

.claude/commands/graphiti-docker-stats.md

graphiti-docker-stats is a command for Claude Code from donbr/lifesciences-research. It costs 11 tokens per session (1,698 once invoked), scanned A, original, MIT.

A command that queries a Docker-hosted Neo4j database and reports development namespaces, stored episodes, and recent activity. Neo4j is a database designed for connected data.

In plain words
What is it for?
Use it to review namespaces beginning with labels such as dev, test, experimental, scratch, or demo and track development activity.
Why use it?
It helps identify temporary or stale development data that may need cleanup and shows how development namespaces are being used.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is donbr/lifesciences-research's own configuration. It tells Claude Code how to work on lifesciences-research itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lifesciences-research configures →

Reuse

Borrowing it

Nothing to install: this file belongs to donbr/lifesciences-research. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/donbr/lifesciences-research/main/.claude/commands/graphiti-docker-stats.md
Clone the repo
git clone --depth 1 https://github.com/donbr/lifesciences-research

Made for: Claude Code.

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 graphiti-docker-stats

README.md
[![agentmods](https://agentmods.dev/badge/commands/donbr/lifesciences-research/graphiti-docker-stats/github.svg)](https://agentmods.dev/commands/donbr/lifesciences-research/graphiti-docker-stats)
Your own site
<a href="https://agentmods.dev/commands/donbr/lifesciences-research/graphiti-docker-stats"><img src="https://agentmods.dev/badge/commands/donbr/lifesciences-research/graphiti-docker-stats/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 graphiti-docker-stats

Your own site · 80×15
<a href="https://agentmods.dev/commands/donbr/lifesciences-research/graphiti-docker-stats"><img src="https://agentmods.dev/badge/commands/donbr/lifesciences-research/graphiti-docker-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 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,698 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.00011 $0.01698
Opus 5 $0.00005 $0.00849
Sonnet 5 $0.00002 $0.00340
Haiku 4.5 $0.00001 $0.00170

Measured 10d ago against content hash 86a66fc26cff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

graphiti-docker-stats 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 10d 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.

.claude/commands/graphiti-docker-stats.md · 228 lines

How it starts

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

Generate development environment statistics for Docker Neo4j namespace management and cleanup.

Instructions

Execute these queries sequentially to build a development environment report. Report results to the user in a formatted summary.

Purpose: Namespace cleanup, development progress tracking, and quick sanity checks.

Query 1: Namespace Overview

mcp__neo4j-docker-cypher__read_neo4j_cypher(
    query="""
    MATCH (e:Episodic)
    RETURN e.group_id AS namespace,
           count(*) AS episodes,
           min(e.created_at) AS first_episode,
           max(e.created_at) AS last_episode
    ORDER BY episodes DESC
    """
)

Purpose: Shows all namespaces with episode counts and identifies cleanup candidates.

Query 2: Development Namespace Breakdown

mcp__neo4j-docker-cypher__read_neo4j_cypher(
    query="""
    MATCH (e:Episodic)
    WHERE e.group_id STARTS WITH 'dev_'
       OR e.group_id STARTS WITH 'test_'
       OR e.group_id STARTS WITH 'experimental_'
       OR e.group_id STARTS WITH 'scratch_'
       OR e.group_id STARTS WITH 'demo_'
    RETURN e.group_id AS namespace,
           count(*) AS episodes,
           max(e.created_at) AS last_activity
    ORDER BY last_activity DESC
    """
)

Purpose: Identifies development namespaces with activity timestamps for cleanup decisions.

Query 3: Total Graph Size

mcp__neo4j-docker-cypher__read_neo4j_cypher(
    query="""
    MATCH (n:Entity)
    WITH count(n) AS entity_count
    MATCH ()-[r]->()
    RETURN entity_count,
           count(r) AS relationship_count
    """
)

Purpose: Simple counts for development environment capacity check.

Query 4: Recent Activity (Last 7 Days)

mcp__neo4j-docker-cypher__read_neo4j_cypher(
    query="""
    MATCH (e:Episodic)
    WHERE e.created_at > datetime() - duration('P7D')
    RETURN e.group_id AS namespace,
           count(*) AS recent_episodes,
           max(e.created_at) AS last_episode
    ORDER BY recent_episodes DESC
    """
)

Read the full file on GitHub · 228 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. 10d ago First seen · 228 lines · 11 tokens per session scan A 86a66fc26cff

Subscribe to this mod's changes

graphiti-docker-stats is a command published in the GitHub repository donbr/lifesciences-research (7 stars, last pushed 7d ago), licensed MIT. It adds 11 tokens to every session and 1,698 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-31.