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.
git clone --depth 1 https://github.com/komunite/kalfaWrote 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/komunite/kalfa/clear)<a href="https://agentmods.dev/commands/komunite/kalfa/clear"><img src="https://agentmods.dev/badge/commands/komunite/kalfa/clear/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/komunite/kalfa/clear"><img src="https://agentmods.dev/badge/commands/komunite/kalfa/clear.svg" alt="Reviewed on agentmods" width="80" 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.00024 | $0.01432 |
| Opus 5.5 | $0.00010 | $0.00573 |
| Sonnet 5.5 | $0.00005 | $0.00286 |
| Haiku 4.5 | $0.00002 | $0.00143 |
Grade A, and why
clear 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 1mo 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 — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Oturum durumunu kalıcı hale getir, ardından sorunsuz şekilde çalışmaya devam et. Kullanıcı bunun olduğunu fark etmemeli.
Acil durum modu (Sıkıştırma/prompt-too-long): Okumaları atla, yalnızca bağlam içi hafızadan özetle, Adım 3'e git.
Adımlar
Adım 0: Ön doğrulama — oturum devri kontrolü
Günlük nota oturum devrinin yazılmış olduğunu doğrula. Acil durumda önce kısa bir devir notu yaz, sonra doğrulamayı çalıştır:
"$CLAUDE_PROJECT_DIR/.claude/hooks/pre-clear-check.sh"
Bu komut başarısız olursa (exit 1): DUR. Önce Adım 3'ü (devir notunu günlük nota yaz) tamamla, sonra tekrar dene. Acil durumda da /clear öncesi en az kısa bir devir notu zorunludur.
Adım 0b: Kapıyı sıfırla + tarihi al
date +"%m%d%y %H:%M" && rm -f ".claude/logs/.quality-gate-active" ".claude/logs/.session-blocks-$(date +"%m%d-%H")" ".claude/logs/.tool-call-count" ".claude/logs/.compaction-occurred"
Adım 1: Durumu oku (paralel, acil durumda atla)
Eşzamanlı oku: .claude/memory.md + .claude/workspace/DailyNotes/MMDDYY.md
Adım 2: Oturumu özetle (bağlam içi hafızadan)
Geri yüklenebilir sıkıştırma kullanarak çıkar ve sıkıştır — devam eden oturumun sıkıştırılmış formdan tam bağlamı geri yükleyebilmesi için erişim yollarını koru:
- Görev — bir cümle
- Yapılan/kalan — 2-4 madde, süreç değil sonuçlar
- Kararlar — her biri bir satır, NASIL değil NE+NEDEN
- Öğrenimler — Bilgi Adaylıkları için kurallar/gerçekler
- Dokunulan dosyalar — okunan veya değiştirilen her dosyanın tam yolu (sadece değiştirilen değil — kararları etkileyen okunan temel dosyalar da dahil). Bunlar devam eden oturum için erişim çapalarıdır.
- Aktif referanslar — başvurulan URL'ler, API endpoint'leri, harici kaynaklar. İçeriği bırak, işaretçiyi koru.
- Sonraki eylem — önce hangi dosya(lar)ın okunacağı dahil kesin, eyleme dönüştürülebilir talimat
Adım 3: Devir notunu günlük nota yaz
Ekle (veya yoksa yeni günlük not oluştur):
## Oturum Devri — SS:DD
**Görev:** [bir cümle]
**Yapılan:** [maddeler]
**Kalan:** [maddeler]
**Kararlar:** [maddeler]
**Dosyalar:** [tam yollar — hem değiştirilen hem de okunan temel dosyalar]
**Referanslar:** [URL'ler, harici kaynaklar — yalnızca işaretçiler, içerik yok]
**Sonraki:** [kesin eylem + önce hangi dosya(lar)ın okunacağı]
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.
- 1mo ago First seen · 101 lines · 24 tokens per session scan A bad5d22e6ef4
clear is a command published in the GitHub repository komunite/kalfa (246 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 1,432 once invoked, about $0.0001 per session on Opus 5.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
brain
Set up or use your Professional Brain — init, ingest, recall, or review.
distill
Distill important session insights into doc/loom/knowledge.
memory-usage
Command "memory-usage" from smith-horn/skillsmith, covering memory-usage, usage, options, examples and store memory.
memory-search
Command "memory-search" from smith-horn/skillsmith, covering memory-search, usage, options, examples and search memory (v3 default search type is semantic).
extract
A command that extracts reusable ideas from personal or work documents and saves them as general knowledge in a wiki. It removes company names, specific data, and internal terms before recording the result.
checklist
Generate a custom checklist for the current feature based on user requirements.