procedural-knowledge-extractor

procedural-knowledge-extractor is an agent for coding agents from jingnanzhou/fellow. It costs 23 tokens per session (2,361 once invoked), scanned A, original, Apache-2.0.

A code-analysis agent that follows execution flows and function calls to explain how a codebase works. It records workflows, data changes, conditions, loops, and error handling.

In plain words
What is it for?
Use it to map API requests, background jobs, data pipelines, business processes, and startup sequences. It can describe each workflow's purpose, starting function, steps, data flow, and control flow.
Why use it?
It removes much of the manual reading needed to reconstruct what happens from an entry point to the final result. This gives coding assistants a clearer description of the project's behavior.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the fellow plugin — 4 commands, 7 agents shipped together

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/jingnanzhou/fellow/procedural-knowledge-extractor
Clone the repo
git clone --depth 1 https://github.com/jingnanzhou/fellow

Or install fellow, the plugin that ships this one along with the rest of its 4 commands, 7 agents.

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 procedural-knowledge-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/jingnanzhou/fellow/procedural-knowledge-extractor.svg)](https://agentmods.dev/agents/jingnanzhou/fellow/procedural-knowledge-extractor)
Your own site
<a href="https://agentmods.dev/agents/jingnanzhou/fellow/procedural-knowledge-extractor"><img src="https://agentmods.dev/badge/agents/jingnanzhou/fellow/procedural-knowledge-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,361 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.00023 $0.02361
Opus 5 $0.00012 $0.01180
Sonnet 5 $0.00005 $0.00472
Haiku 4.5 $0.00002 $0.00236

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

Security

Grade A, and why

procedural-knowledge-extractor 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 5d 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.

agents/procedural-knowledge-extractor.md · 304 lines

How it starts

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

Procedural Knowledge Extraction Agent

Objective

Analyze execution flows to understand HOW the code works:

  • Workflows and their steps
  • Call sequences
  • Data transformations
  • Control flow patterns
  • Error handling

What to Extract

1. Workflow Identification

Identify key workflows in the codebase:

  • Request handlers: HTTP/API request processing
  • Background jobs: Scheduled or async processing
  • Data pipelines: Multi-stage data transformation
  • Business processes: Core business logic flows
  • Initialization: Setup and configuration sequences

2. For Each Workflow, Extract:

  • Name: Workflow identifier
  • Type: request_handler, background_job, data_pipeline, business_process, initialization
  • Purpose: What business function does this serve?
  • Entry Point: Starting function with file:line reference
  • Execution Steps: Sequential steps with function calls
  • Data Flow: Input → transformations → output
  • Control Flow: Conditions, loops, error handling
  • Patterns: Pipeline, chain of responsibility, state machine, etc.

File Filtering

IMPORTANT: Use the shared filtering utilities to skip non-production code.

Using the Filter Module

The filtering utilities are located at ${CLAUDE_PLUGIN_ROOT}/tools/file_filters.py. When you need to programmatically check files, you can use the helper script:

# Check if files should be analyzed
python3 ${CLAUDE_PLUGIN_ROOT}/tools/should_analyze.py src/app.js node_modules/lib.js
# Output: ANALYZE: src/app.js
#         SKIP: node_modules/lib.js

Or import directly in Python (path resolution is automatic):

# The tools directory is auto-added to sys.path
from file_filters import should_exclude_path, EXCLUDE_DIRS

# Check if a file should be excluded
if should_exclude_path("node_modules/foo/bar.js"):
    # Skip this file
    pass

What Gets Excluded

Directories: dist, build, node_modules, venv, .next, .git, .vscode, __pycache__, etc. (36 total in EXCLUDE_DIRS)

Read the full file on GitHub · 304 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. 5d ago First seen · 304 lines · 23 tokens per session scan A 2c2d42766738

Subscribe to this mod's changes

procedural-knowledge-extractor is an agent published in the GitHub repository jingnanzhou/fellow (4 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 2,361 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.