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.
npx agentmods add commands/t-rav/hydraflow/hf.memorygit clone --depth 1 https://github.com/T-rav/hydraflowWhat 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 | $0.00000 | $0.00896 |
| Opus 5 | $0.00000 | $0.00448 |
| Sonnet 5 | $0.00000 | $0.00179 |
| Haiku 4.5 | $0.00000 | $0.00090 |
Grade A, and why
hf.memory 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.
How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Capture Session Learnings as Memory Suggestions
Scan the current conversation for architectural decisions, bug root causes, configuration choices, codebase patterns, and workflow preferences. Write each as a memory item to the local JSONL store for ingestion by the memory sync worker.
Usage
/hf.memory
/hf.memory review model decisions
$ARGUMENTS optionally filters extraction to a specific topic. If empty, scan the full conversation.
Instructions
Phase 0: Resolve Configuration
Before doing anything else, resolve these values:
- REPO: Run
echo "$HYDRAFLOW_GITHUB_REPO". If empty, rungit remote get-url originand extract theowner/reposlug (striphttps://github.com/prefix and.gitsuffix). - DATA_ROOT: The HydraFlow data directory. Check
echo "$HYDRAFLOW_DATA_ROOT". If empty, default to.hydraflow/<repo_slug>/relative to repo root (where/in the slug is replaced with-).
Phase 1: Fetch Existing Memories for Dedup
Load existing memory items from the local JSONL store to avoid duplicates:
cat "$DATA_ROOT/memory/items.jsonl" 2>/dev/null | jq -r '.title' | sort -u
Keep these titles in mind — skip any learning that substantially overlaps with an existing item.
Phase 2: Extract Learnings from Conversation
Scan the full conversation history (or filter to $ARGUMENTS topic if provided). Look for these categories:
- Architectural decisions — choices about how the system is structured
- Bug root causes and fixes — what broke, why, and how it was fixed
- Configuration insights — what settings mean and why they're set that way
- Codebase patterns — recurring patterns that future agents should follow
- Workflow preferences — how the developer wants things done
For each learning, formulate:
- title: Short description (under 60 chars)
- learning: What was learned and why it matters (1-3 sentences)
- context: How it was discovered — reference specific issues, PRs, files, or conversation topics
- memory_type: One of
knowledge,config,instruction,code
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.
- 2d ago First seen · 89 lines · 0 tokens per session scan A a652cc591b77
hf.memory is a command published in the GitHub repository T-rav/hydraflow (5 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 896 tokens. 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.
Other commands, from other repositories
gh-issue
Create a new GitHub issue following solution-agnostic principles.
gh-release
Create a new release for the marketplace or a specific plugin.
verify
Verify factual claims in content using deep research methodology - fact-checks key assertions and updates NCI scores.
gh-merge
Merge an approved pull request with standardized settings.
gh-plugin
Validate plugin structure and configuration before committing changes.
gh-review
Review a pull request with proper branch checkout and convention checks.