orgkit-analyze

A read-only preview of how orgkit would organize the current repository. Orgkit is a system that groups repository work into roles and shared memory for coding agents.

In plain words
What is it for?
Use it before initializing orgkit to understand the suggested roles, the reasoning behind them, and the possible reduction in repeated context.
Why use it?
It lets you review the proposed organization before anything is created or changed. The proposal is based on the repository's actual folders and files, not just name matching.

Command

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 commands/hdk10/orgkit/orgkit-analyze
Clone the repo
git clone --depth 1 https://github.com/hdk10/orgkit
Per session 55 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,218 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.00055 $0.01218
Opus 5 $0.00028 $0.00609
Sonnet 5 $0.00011 $0.00244
Haiku 4.5 $0.00006 $0.00122

Measured yesterday against content hash 3650d7770045, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

orgkit-analyze 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 yesterday.

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/orgkit-analyze.md · 90 lines

How it starts

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

You are giving the user an intelligent, read-only preview of how orgkit would organize their repository. This is the teaser people run first — so it must show the real intelligence, not a keyword guess. You read the repo and reason; you write nothing.

The Python tool handles mechanics. You handle judgment. This command is exactly /orgkit-init's reasoning, minus any writing.


Step 1 — Extract deterministic folder signals

The user's repo root is ${CLAUDE_PROJECT_DIR} (fall back to $PWD). Get the token-bounded signal payload.

Prefer the installed engine if it exists; fall back to the plugin copy:

# Use whichever exists:
#   .org/scan.py  — installed engine (preferred)
#   ${CLAUDE_PLUGIN_ROOT}/orgkit/scan.py  — plugin copy (pre-install fallback)
if [ -f "${CLAUDE_PROJECT_DIR:-$PWD}/.org/scan.py" ]; then
  python3 "${CLAUDE_PROJECT_DIR:-$PWD}/.org/scan.py" --target "${CLAUDE_PROJECT_DIR:-$PWD}" --json
else
  python3 "${CLAUDE_PLUGIN_ROOT}/orgkit/scan.py" --target "${CLAUDE_PROJECT_DIR:-$PWD}" --json
fi

Parse the JSON. For each top-level folder you get: name, file_count, top_exts, kind (python/node/web/data/docs/infra/mixed), telltale files, and a ~300-char excerpt.


Step 2 — YOU reason over the signals (the intelligent step)

Do not fall back to keyword matching. For any folder where the kind is mixed/docs, the name is cryptic (v2/, proj-final/, temp2/, experiments/), or the excerpt is unhelpful — read a file or two yourself to learn what it actually is:

cat "${CLAUDE_PROJECT_DIR}/<folder>/README.md" 2>/dev/null
ls "${CLAUDE_PROJECT_DIR}/<folder>/"

Then reason through the structure:

  1. What functions are actually represented? Cluster by what the work is (product engineering, data science, design, growth, ops, research…), not by folder names.
  2. What 3–8 roles fit THIS repo? Match how the team actually thinks. Too many roles defeats the purpose.
  3. Map every folder to a role, each with a one-line rationale grounded in real content.
  4. Resolve cryptic names explicitly — if v2/ is a React app, say so; if experiments/ is credit-risk notebooks, say so.

Read the full file on GitHub · 90 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. yesterday First seen · 90 lines · 55 tokens per session scan A 3650d7770045

Subscribe to this mod's changes

orgkit-analyze is a command published in the GitHub repository hdk10/orgkit (2 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 1,218 once invoked, about $0.0003 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.