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/zelixag/ai-memex-cli/helpgit clone --depth 1 https://github.com/zelixag/ai-memex-cliWhat 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.00508 |
| Opus 5 | $0.00000 | $0.00254 |
| Sonnet 5 | $0.00000 | $0.00102 |
| Haiku 4.5 | $0.00000 | $0.00051 |
Grade A, and why
help 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 3d 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 — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
memex help
Show all available memex knowledge base commands.
Action
memex --help
Recommended agent-native workflows
/memex:capture— capture sources into raw//memex:ingest— compile raw material into wiki pages/memex:query— answer from the durable wiki/memex:distill— save useful conversations as raw session material/memex:lint— health-check the wiki (mechanical + semantic)/memex:status— inspect vault state
Compatible CLI shortcuts
/memex:capture— Capture URLs, files, pasted text, or search results into the memex raw layer./memex:ingest— Ingest raw content into wiki pages. Delegates semantic processing to the AI agent./memex:fetch— Fetch web content or documentation into the raw/ directory./memex:distill— Distill the current or a past session into a structured raw wiki document./memex:search— Search the wiki and raw knowledge base./memex:query— Answer from the durable memex wiki using the ai-memex query workflow./memex:status— Show vault overview: page count, scenes, recent activity./memex:new— Scaffold a new wiki page with correct frontmatter./memex:lint— Two-layer wiki health check: CLI mechanical pass (orphans, broken links, frontmatter) plus agent-driven semantic pass (contradictions, stale claims, missing cross-references, concepts without pages, data gaps, suggested next sources). Apply safe fixes directly, file unresolved findings as a wiki page./memex:inject— Output relevant wiki context for the current task (saves tokens, improves precision)./memex:log— Append a log entry to the vault activity log.
Quick start
/memex:status # see what's in the knowledge base
/memex:capture https://docs.example.com # capture documentation
/memex:ingest # process raw files into wiki pages
/memex:query "topic" # answer from durable wiki knowledge
/memex:distill # distill useful session knowledge
/memex:lint # health-check (mechanical + semantic)
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.
- 3d ago First seen · 44 lines · 0 tokens per session scan A d42d19479a03
help is a command published in the GitHub repository zelixag/ai-memex-cli (9 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 508 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
wiki-query
Ask questions against the wiki. Synthesizes answers from wiki pages with cross-reference citations.
wiki-req
Capture and decompose a concept into atomic, traceable wiki requirements. Clarifies ambiguous requirements, splits them into atomic pieces, and persists them as wiki/requirements/ pages with status tracking.
wiki-ingest
Process new source packets and synthesize them into wiki knowledge pages.
wiki-record
Capture the just-completed task's tool-call trajectory into the wiki as agent working-memory, then optionally distill it into a reusable skill.
wiki-retro
Save an atomic insight from the current task into the wiki. Creates a single markdown file that layered recall surfaces in future sessions.
wiki-run
Run the full wiki cycle: discover → ingest → lint. Optionally schedule for auto-updates.