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 skills/hakiyaka/capsule/map-token-contextnpx skills add hakiyaka/capsule --skill map-token-contextgit clone --depth 1 https://github.com/hakiyaka/capsuleWhat 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.00054 | $0.00794 |
| Opus 5 | $0.00027 | $0.00397 |
| Sonnet 5 | $0.00011 | $0.00159 |
| Haiku 4.5 | $0.00005 | $0.00079 |
Grade A, and why
map-token-context 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 yesterday.
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
Capsule
Use one capsule; put action fields in payload.
- With a virtual router, call
skills {operation:"route",query:"English intent"}; its default is one domain-anchored match. Read only thatskill_file; request a larger limit only when the task truly needs another specialist. - Use
cognitionfor exact cover, assignment, knapsack, shortest path, DAG scheduling, weighted decisions, information-gain checks, reasoning-governor status, or reusable decision kernels; trust its checksum certificate and reason only about unencoded judgment. - Use
run|batchfor commands,filefor files,index|search|rememberfor context,fetchfor web text, andexecutefor derivation. - Use progressive
expand|difffor exact evidence andstats|gain|insight|doctorfor measurement. - Treat
[Capsule replay],[Capsule delta],[Capsule poll: exactly unchanged], and[Capsule session transcript projection]as complete control tags: reuse them directly and callexpandonly when exact bytes are required. The currentexact=capsule always contains the complete latest result. - Treat
[Capsule repeated failure]as proof that the same tool input produced the byte-identical error again. Use its short diagnostic, change input or external state, and callexpandonly if exact bytes are required. - Treat
[Capsule round-trip tax]and the sequence fuse as measured prompts to batch independent work or execute the next concrete change. A costly uncached suffix also tightens output/history budgets mechanically. Successful exec control wrappers are removed automatically; oversized read-only output remains exact-capsule recoverable even at normal context pressure. - For automatic-context-compaction cost, call
insightwithcompaction:trueand the session id/path. It returns aggregates, the latest event, andcontext_pressurewith occupancy, predicted runway, locally reported quota pressure, compaction churn, retained-image risk, reasons, and the active policy. Request bounded rows only withcompaction_events:true. Treat pre/post input as observable exposure because hidden compactor generation is not exposed. - Treat
gainas contract-valid local exposure telemetry, not billing. Legacy hook projections are excluded unlessinclude_unverified:trueis explicitly requested. - Start
view_imageathigh; useoriginalonly for pixel-level evidence. - Give subagents self-contained messages. Automatic policy uses
nonefor independent tasks, a small recent window for deictic continuations, and full history only for explicit whole-conversation dependencies. - Subagent work is task-bounded: keep the default total to 16 (never above 20), use one agent per UI/i18n/performance/release lane, pause after 10 independent agents for one compact
{decisions,evidence,files,blockers}summary, and reuse that digest instead of opening another review wave. Return no raw screenshots, base64 media, full diffs, or transcripts; retain exact recovery in Capsule. - After each grouped mutation and decisive verification, call
statsonce andgainonce. Treat both as local exposure evidence, not billing; do not rerun exploratory reads just to obtain a measurement. - Return the smallest complete answer; explicit detail requirements win.
- Never sacrifice accuracy for compression.
- Skill
apply|restorerequires an explicit request andconfirm:true. - See capsule-contract.md for exact behavior and recovery.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 27 lines · 54 tokens per session scan A f72429f7325d
map-token-context is a skill published in the GitHub repository hakiyaka/capsule (1 stars, last pushed 22d ago), licensed MIT. It adds 54 tokens to every session and 794 once invoked, about $0.0003 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-31.
Other skills, from other repositories
install
플러그인은 소스 저장소가 삭제된 뒤에도 동작해야 하므로, 모든 명령은 설치된 플러그인의 runtime을 사용합니다. ${PLUGINROOT}는 Codex가 이 플러그인에 제공하는 설치 경로입니다.
uninstall
백업을 보존하면서 codex-compressor를 제거하거나 복원합니다.
status
PYTHONPATH="${PLUGINROOT}/runtime" python3 -m codexcompressor status.
doctor
Codex 버전, 설정 권한, 후크 기능과 버퍼 설정을 진단합니다.
graphifychat
Turn any conversation into a queryable knowledge graph. Three-layer portable memory file: TRON (structured input+output capture with emotion, psychology, intent — every turn), Sparse6 (layered relational graph with community detection, hyperedges, confidence scores — every turn), GRAPHREPORT (god nodes + surprising…
r3f-animation
React Three Fiber animation - useFrame, useAnimations, spring physics, keyframes. Use when animating objects, playing GLTF animations, creating procedural motion, or implementing physics-based movement.