atuin:history

atuin:history is a skill for Claude Code from bendrucker/claude. It costs 77 tokens per session (807 once invoked), scanned A, original, MIT.

A read-only report of commands captured in Atuin, a tool that records shell history. It can show what commands ran, when and where they ran, whether they succeeded, and how often commands were used.

In plain words
What is it for?
Use it to find commands you ran, inspect failed commands, review activity in a directory or time period, and see command frequency.
Why use it?
It helps reconstruct past terminal work without manually searching through a shell history file.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the atuin plugin — 1 skill shipped together

Good fit Use it to find commands you ran, inspect failed commands, review activity in a directory or time period, and see command frequency.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bendrucker/claude/history
Install

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.

Any agent
npx skills add bendrucker/claude --skill history
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code.

Or install atuin, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for atuin:history

README.md
[![agentmods](https://agentmods.dev/badge/skills/bendrucker/claude/history.svg)](https://agentmods.dev/skills/bendrucker/claude/history)
Your own site
<a href="https://agentmods.dev/skills/bendrucker/claude/history"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/history.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.00807
Opus 5 $0.00039 $0.00404
Sonnet 5 $0.00015 $0.00161
Haiku 4.5 $0.00008 $0.00081

Measured 7d ago against content hash 8440e5858d75, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

atuin:history 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 7d 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.

plugins/atuin/skills/history/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shell History

Report shell activity from atuin's local capture. This skill only reads. Never run subcommands that modify history (atuin delete, atuin search --delete, atuin import).

Arguments are search terms: start with atuin search $ARGUMENTS.

CLI Queries

The default path. atuin search [query] prints matching commands, newest first. Useful flags:

  • --after "2 days ago" / --before "2026-07-01": date bounds, human phrases work
  • -c/--cwd <dir>: commands run in a directory (--exclude-cwd to invert)
  • -e/--exit <code> / --exclude-exit <code>: filter by exit code (--exclude-exit 0 finds failures)
  • --limit <n>: cap the result count
  • -r: oldest first instead of newest first
  • -f/--format '{time} {command}': also {directory}, {exit}, {duration}, {relativetime}, {user}, {host}
  • --cmd-only: bare command text
  • --search-mode <prefix|full-text|fuzzy|skim>: full-text for exact substring matches, overriding the fuzzy default
  • --include-duplicates: repeated identical commands otherwise collapse to the latest

atuin stats [today|week|month|year] aggregates the period: top commands with counts. -c <n> sets top-N, -n 2 counts command pairs (sequences) instead of single commands.

atuin history list dumps everything, and takes --cmd-only and -f too.

Sandbox

Query subcommands work sandboxed: the sandbox grants writes to ~/.local/share/atuin because atuin opens its metadata db read-write even for searches. Network subcommands (atuin status, sync, login) fail sandboxed. They are never needed to answer history questions, so don't escalate.

DuckDB

For aggregations the CLI can't express (frequency by directory, time-bucketed histograms, joins against other data):

duckdb -c "INSTALL sqlite; LOAD sqlite;
ATTACH '$HOME/.local/share/atuin/history.db' AS atuin (TYPE sqlite, READ_ONLY);
SELECT ...;"

Use $HOME, not ~ (DuckDB does not expand tildes). READ_ONLY is mandatory: the db is WAL-mode with live writers. INSTALL sqlite is a local no-op once the extension is cached. A machine without the cache must run it unsandboxed once, since the extension host is not sandbox-reachable.

Read the full file on GitHub · 59 lines

Changes

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.

  1. 7d ago First seen · 59 lines · 77 tokens per session scan A 8440e5858d75

Subscribe to this mod's changes

atuin:history is a skill published in the GitHub repository bendrucker/claude (16 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 807 once invoked, about $0.0004 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.

Related

Other skills, from other repositories