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/michael-ovo/obsidian-knowledge-agent/cleangit clone --depth 1 https://github.com/Michael-OvO/obsidian-knowledge-agentWrote 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/michael-ovo/obsidian-knowledge-agent/clean)<a href="https://agentmods.dev/commands/michael-ovo/obsidian-knowledge-agent/clean"><img src="https://agentmods.dev/badge/commands/michael-ovo/obsidian-knowledge-agent/clean.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 | $0.00018 | $0.00234 |
| Opus 5 | $0.00009 | $0.00117 |
| Sonnet 5 | $0.00004 | $0.00047 |
| Haiku 4.5 | $0.00002 | $0.00023 |
Grade A, and why
clean 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.
What it actually says
Tidy up and sync the vault to git. Respect every boundary — never touch .obsidian/, never
delete without approval.
- Survey. Run
git --no-pager statusand group the changes (new notes, edits, learned-state changes) into a short summary. - Commit. Stage and commit the note changes with
$ARGUMENTSas the message, or a clear inferred one (e.g.notes: add 3 ML notes, fix links). Keep any pending learned-rule changes as a separatechore(learn):commit — see/obsidian-knowledge:evolve. - Inbox. If
Inbox/still holds material that has already been processed, offer to clear it (move, archive, or delete) — only with my explicit approval. - Push if a remote exists and I haven't said otherwise. Report what was committed and pushed.
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.
- 5d ago First seen · 17 lines · 18 tokens per session scan A f86be9538a1c
clean is a command published in the GitHub repository Michael-OvO/obsidian-knowledge-agent (207 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 234 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
gen-commit-msg
Generate intelligent commit messages based on staged changes. Invoke with /gen-commit-msg.
caveman-commit
Generate a terse caveman-style commit message for staged changes.
port-commits
把已落地、可追溯的一组 commit,用 cherry-pick(最稳妥) 同步到目标分支(常见:main → hc-0730)。.
commit
../../.mastracode/commands/commit.md.
spec
Manage specifications in our development process.
commit
智能生成 Git 提交信息并提交.