caveman--caveman-learn

Applies consent-gated fixes to ranked token sinks from a Caveman learn report.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/hhenrichsen/dots --skill caveman-caveman-learn-hhenrichsen
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: caveman--caveman-learn
Source: https://github.com/hhenrichsen/dots/tree/main/dot_skills/caveman/caveman-learn
Command: npx skills add https://github.com/hhenrichsen/dots --skill caveman-caveman-learn-hhenrichsen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agent configurations accumulate token waste: heavy CLAUDE.md files, never-invoked skills, and context re-pasted every session. The caveman learn command measures where tokens go, but acting on its findings requires careful, reversible edits that actually lower cost without degrading the agent's recall. ## Core Features & Use Cases - Consent-gated fix loop: Reviews ranked token sinks from caveman learn report --json and proposes one fix at a time, applying each edit only after the user says yes. - Reducible trims with a net-token-negative gate: Materializes a candidate via caveman learn apply <sink_id> --dry-run, applies the trim, then re-measures and reverts if tokens per turn did not drop. - Recurring-context offload to cavemem: Verifies the block's sha256 against the locator, stores it with caveman mem remember, writes a recall pointer, and reverts entirely if recall fails so the agent is never made dumber. - Skill distillation holdouts: For repeated tool-step procedures, writes a skill and starts an on/off experiment with caveman learn experiment, requiring at least 5 sessions per arm before any verdict. - Honest savings reporting: Presents caveman learn savings grouped by measurement rung (deterministic remeasure, controlled holdout, counterfactual replay, interrupted time series) without summing across rungs or claiming verified figures. - Use Case: After a learn report flags a 400-line CLAUDE.md block re-established every session, offload it to cavemem, leave a pointer, confirm recall works, and record the applied fix for longitudinal verdicts. ## Quick Start Ask the agent to run a caveman learn report and walk you through fixing the top token sinks one approved edit at a time.

Frequently Asked Questions about caveman--caveman-learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce my AI agent's token cost with caveman learn?▼

Run caveman learn report --json to see your Cave Score and ranked token sinks, then choose which sinks to act on. Each fix is proposed individually and applied only after you approve it, with a re-measure confirming the reduction.

How do I offload repeated context from CLAUDE.md to cavemem?▼

For a recurring_context sink, the skill verifies the block's sha256 against the scan locator, stores it with caveman mem remember, and writes a recall pointer in place of the trimmed block. If recall fails or tokens do not drop, the offload is fully reverted.

Does caveman learn edit my config files automatically?▼

No. The caveman learn analyzer is read-only and only materializes candidates. All edits are made by the skill using the agent's file tools, and only after explicit per-edit consent from the user.

What happens if a trim does not lower tokens per turn?▼

The net-token-negative gate requires the after measurement to be below the before value. If it is not, the edit is reverted and reported; an edit that does not reduce tokens per turn is never kept.

When should I not distill a repeated procedure into a skill?▼

A distilled skill loads into the prefix every session and only pays back on sessions hitting the pattern, so it is graded by a controlled on/off holdout experiment rather than a file recount. A regressed verdict means delete the skill.

Why does the savings report avoid a single blended headline?▼

Savings are grouped by measurement strength: deterministic remeasure, controlled holdout, counterfactual replay, and interrupted time series. Summing across rungs would mix incompatible evidence, so each row is presented with its confounders and attribution provenance.