Skip to main content

search-claude-history

Search your Claude Code session history from the command line: find the conversation where you solved something, a command you ran, or an error you hit, with regular expressions, time filters, and surrounding context. It searches Claude Code by default and can search your other coding agents too, without reinstalling anything (see below).

uv tool install search-claude-history
search-claude-history "pattern"

search-claude-history is a build of search-clanker-history, which also searches other coding agents, so it installs search-clanker-history at the same version and defaults to Claude Code. The documentation lives there.

To search other agents as well, change the default once, with no reinstall:

search-claude-history --default-agents claude codex     # for example, add another agent
search-claude-history --default-agents all               # every agent that has history
search-claude-history --default-agents reset             # back to Claude Code only

search-claude-history --agent AGENT overrides the default for a single search. The choice is saved in ~/.config/search-history/config.json (under $XDG_CONFIG_HOME when that is set, and in %APPDATA%\search-history\config.json on Windows), and search-claude-history --default-agents prints the exact path. The settings file is shared by every package, so a default you save applies to all of them.

Already have an older search-claude-history? uv tool upgrade search-claude-history keeps your behavior, but the short command sch is gone; use search-claude-history, or make sch an alias for it. search-claude-history --default-agents all adds the other agents.

Metadata

Release files for search-claude-history 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for search-claude-history 0.3.1
File Size Uploaded Provenance Actions
search_claude_history-0.3.1.tar.gz 2.2 kB Without provenance Details for search_claude_history-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for search-claude-history 0.3.1
File Interpreter ABI Platform Actions
search_claude_history-0.3.1-py3-none-any.whl Python 3 none any Details for search_claude_history-0.3.1-py3-none-any.whl

Total release size: 5.2 kB

Release files / search_claude_history-0.3.1.tar.gz

Download URL search_claude_history-0.3.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1305e2be8e3727f154e97077291c94fa4d75226915c16c521d609df3ede60bf
BLAKE2b-256 checksum
How to use checksums
9e52e7d21155c669a77d2a6a40b73e88618c930033a78d9b4836ea1526b58fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / search_claude_history-0.3.1-py3-none-any.whl

Download URL search_claude_history-0.3.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52b0227b3597f41ee9f066aa8eda2690e3cd1e1ca66f35e2e560299e9ee0c71b
BLAKE2b-256 checksum
How to use checksums
00d46d15598f5341391ceaee9f50e3fb5cb20ab58cce11509e89629c6061bb7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for search-claude-history 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page