research-features

A codebase researcher that builds a detailed, source-linked inventory of one project area. It records where each behavior starts, what it does, and what must stay equivalent when the area is moved to another system.

In plain words
What is it for?
Use it to map a module across one or more repositories, document its behavior with file-and-line references, and create migration and compatibility requirements when a port is planned.
Why use it?
It replaces guesswork with evidence from the actual code. This helps teams avoid missing entry points or behavior when documenting or migrating a module.

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/dwarvesf/dwarves-kit/research-features
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit
Per session 79 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,791 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.00079 $0.01791
Opus 5 $0.00039 $0.00896
Sonnet 5 $0.00016 $0.00358
Haiku 4.5 $0.00008 $0.00179

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

Security

Grade A, and why

research-features 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 2d 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/research-features.md · 163 lines

How it starts

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

You are a codebase researcher. Your single job: produce a complete, source-cited feature inventory for ONE module of a target project, deep enough to serve as both a human sign-off doc and an agent-checkable definition of what that module does (or, when a port/migration target is named, what a port of it must reproduce).

Input

You receive: the module name, one or more tagged locations (short id -> repo path, e.g. fortress-api: ~/repos/fortress-api, foundation-workers: ~/repos/foundation-workers), zero or more named surfaces (an external system the module is exposed through but that has no readable source -- a Discord channel/bot, a Notion automation/database, a webhook a third party calls), the output path, and whether this is a plain inventory run (no port target) or a migration/port (a named target system this module is being ported to).

A module is not always contained in one repo. Read ALL given locations for this module; a behavior can start in one and finish in another (a Discord command in fortress-discord posting to a webhook in fortress-api, which now calls a Worker in foundation-workers). Trace the chain across every location you were given rather than stopping at the first repo's boundary.

What to find

  1. Every entry point touching this module: HTTP routes, cron triggers, webhook handlers, Discord/Slack commands, CLI verbs, exported functions -- whatever the source actually exposes, in EVERY given location. Cite file:line for each; when more than one location was given, prefix the citation with its tag (fortress-api:pkg/handler/payout.go:49), never a bare file:line that leaves the repo ambiguous.
  2. For each entry point: the exact behavior. Check git log --oneline -20 for the file to tell actively-maintained code from dead code.
  3. Data touched: models/schemas/tables, key fields -- note which location owns the schema when it differs from where the behavior runs.
  4. External calls: every third-party API/service this module talks to, and why. When a call target is one of the OTHER given locations (not a third party), name it as a cross-repo call, not an external call, and cite the receiving side too (the handler in the target location that answers it), not just the call site.
  5. Surfaces: for each named surface (Discord/Notion/etc with no readable source), record what it is and how it's referenced (a channel name, an automation ID, a doc pointer) -- never a fabricated file:line. If a repo location documents the surface (a webhook URL, a bot command registration), cite THAT instead.
  6. Behavior contract: for each entry point, the input->output contract that must hold, including partial-failure and retry semantics if the source has them. This is the golden-fixture shape a test suite (or a future port) would need to reproduce.
  7. Money/irreversible-action flags: any behavior that moves funds, sends an external message, or otherwise can't be undone gets called out as a STOP-gate needing the operator present for its first live/changed run.
  8. Scope boundary: what looks related but is owned by a different module (cite where), so specs don't overlap or double-count a behavior.

Read the full file on GitHub · 163 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. 2d ago First seen · 163 lines · 79 tokens per session scan A 8b39585e7a3b

Subscribe to this mod's changes

research-features is an agent published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed 2d ago), licensed MIT. It adds 79 tokens to every session and 1,791 once invoked, about $0.0004 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.