Borrowing it
Nothing to install: this file belongs to saubakirov/trace-first-starter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/saubakirov/trace-first-starter/master/.claude/commands/tfw-research.mdgit clone --depth 1 https://github.com/saubakirov/trace-first-starterWrote 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.
[](https://agentmods.dev/commands/saubakirov/trace-first-starter/tfw-research)<a href="https://agentmods.dev/commands/saubakirov/trace-first-starter/tfw-research"><img src="https://agentmods.dev/badge/commands/saubakirov/trace-first-starter/tfw-research.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.01886 |
| Opus 5 | $0.00006 | $0.00943 |
| Sonnet 5 | $0.00003 | $0.00377 |
| Haiku 4.5 | $0.00001 | $0.00189 |
Grade A, and why
tfw-research 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TFW Research — Core Algorithm
🔒 ROLE LOCK: RESEARCHER You write RES and research/ stage files only. You do NOT write HL, TS, ONB, RF, REVIEW, or code.
Mindset: Find gaps, expose blind spots, demand proof; observe, infer, question.
Read Contract
Root instructions are already active. Read this workflow completely, then select inputs in this order. Every shared range is addressed by its unique Markdown heading.
| Order | Input | Checkpoint purpose | Authority |
|---|---|---|---|
| 1 | selected task status.md and journal/ |
current lifecycle and lineage | task-local |
| 2 | master HL, research/iterations.yaml, and predecessor research/iterN/RES.md only for iteration 2+ |
question, approved context, iteration/resume state | governing task artifacts |
| 3 | .tfw/project_config.yaml keys under tfw.research |
mode and limits | project config |
| 4 | .tfw/conventions.md headings HL (High Level), Session identity, Commit Attribution, Fact Categories, and Anti-patterns (prohibited) |
contract, identity, attribution, candidate routing, prohibitions | shared rule |
| 5 | HL §7.2 citations and newly relevant knowledge | research evidence and decision context | named source |
| 6 | .tfw/workflows/research/{mode}.md, then only the first incomplete stage template; .tfw/templates/RES.md at synthesis |
mode behavior and output form | workflow/template |
Full AGENTS.md, conventions.md, glossary.md, and KNOWLEDGE.md are not reloaded. Completed
stage files are read only for resume or synthesis; §14.1 history is read only when a compatibility
question triggers it. Missing or duplicate addressed headings are a hard stop under
conventions.md → Context Selection.
Step 0: Resume & Iteration Detection
On resume, reread this workflow and mode. Read research/iterations.yaml when present. Current iteration is the first pending entry, cross-checked against iterN/ folders (highest + 1, else 1); for N>1 read predecessor RES files. In current iterN/, inspect stage/RES files. Resume from first missing stage. Existing RES completes the iteration.
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.
- today Changed · -6 lines f1d62fbb0d8d
- 8d ago First seen · 154 lines · 13 tokens per session scan A 1f602b42b174
tfw-research is a command published in the GitHub repository saubakirov/trace-first-starter (29 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 1,886 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.
Other commands, from other repositories
fw-setup-use
Workspace FDK stack switch — nvm use from .nvmrc or explicit 10/9 (Node 24.11 vs 18); optional --write-nvmrc and --global flags.
fdk-migrate
Migrate a legacy Freshworks app from platform-version 2.3 (2.x), FDK 9.x, and Node 18 to Platform 3.0 with FDK 10.0.1 and Node 24.11.0. Transforms manifest, request templates, Crayons UI, and validates on the new toolchain. Does not install fdk/Node—use fw-setup (or prompt user to add it) per SKILL.md.
fw-setup-status
Check FDK and Node.js installation status (/fw-setup status); optional --verbose diagnostics.
openehr-explain
One-stop router that explains or looks up any openEHR thing — auto-detects an archetype, a template, an RM/AM/BASE type, an RM structural concept, an ADL idiom, an AQL query or keyword, or a terminology code (replaces /archetype-explain, /template-explain, /type-spec, /rm-structure, /adl-idiom, /terminology).
bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
swarm-init
Initialize a Ruflo swarm with specified topology and configuration.