Skip to content
Back to skills

History Search

ASecurity

Search and retrieval across task history, runs, and reviews

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add D-Shey/autoharness --skill history-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of History Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for History Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-shey-history-search/badge)](https://www.skillsdirectory.com/skills/d-shey-history-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: history-search
description: Search and retrieval across task history, runs, and reviews
---

# history-search

## When to use
Use when querying previous execution details in long-running tasks without loading massive logs into active context:
- Searching past test logs (`runs/*.log`) for specific assertion failures or stack traces.
- Querying earlier critic reviews and arbitrator decisions.
- Retrieving previous tool call outputs on demand.

## Steps
1. **Targeted query dispatch**:
   - Call `harness_history_search(query, kind)` where `kind` is `runs`, `reviews`, or `all`.
   - The search engine inspects task log files on disk and returns only matching lines with file coordinates and line numbers.
   - Reference: Reversible context retrieval (https://github.com/ranxianglei/billion-context).
2. **Context decompression**:
   - If a specific test error needs full inspection, fetch only that run's snippet rather than the entire 500-line pytest dump.
3. **Bounded token return**:
   - Limit search results to the top matching snippets with context windows (e.g., 3 lines before/after).

## How to verify
1. Run `harness_history_search` with an assertion query and verify matched log snippets are returned.
2. Verify filtering by kind (`runs` vs `reviews`) returns only relevant records.

## Facts found here
- `runs/` directory in task state holds output of every `autoharness verify run`.
- `answers/` directory holds exact responses of critic and quality reviewers.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.