Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

aim-search

Skill by Hidden-History

Searches the AI Memory Module by semantic similarity, with filters for collection, memory type, project and intent. It is for developers who keep project memories in that module.

  • Score 58
  • 41 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install aim-search

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Hidden-History/ai-memory /tmp/ai-memory && mkdir -p ~/.claude/skills && cp -r /tmp/ai-memory/.claude/skills/aim-search ~/.claude/skills/aim-search

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install aim-search in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The aim-search skill searches the AI Memory Module using semantic similarity. Memories are stored in three collections: code-patterns for how things are built, conventions for rules to follow, and discussions for why decisions were made. Users can filter results by collection, memory type and project. Intent detection (how, what or why) routes a query to a primary collection, and the search expands to secondary collections when the primary one has too few results.

Results are ranked by a relevance score that combines semantic similarity with a temporal decay score, so more recent memories rank higher. Each result shows its score, collection, type and date, and decay scores can be hidden. The skill is intended for developers who use the AI Memory Module and want to retrieve past implementations, conventions, error fixes and decisions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Semantic searchFinds stored memories by meaning using vector similarity.
  • Collection filterUses --collection to target code-patterns, conventions or discussions.
  • Type filterUses --type to filter by memory types such as error_fix or decision.
  • Intent detectionUses --intent how, what or why to route a query to a primary collection.
  • Cascading searchExpands to secondary collections when the primary collection has too few results.
  • Decay scoringShows relevance, semantic and temporal scores for each result.
  • Project scopingFilters results by project, auto-detected from the working directory.

What you need

  • AI Memory Module with the search.py implementation
  • Qdrant API key (QDRANT_API_KEY in .env.secrets)
  • Python
  • Git repository for project auto-detection

Try asking

  • Search my memory for how we implement authentication
  • Find error fixes for database connection problems
  • Why did we choose postgres? Search the discussions collection

Good to know

  • If the Qdrant auth fails, results are file-only and the knowledge base is not consulted.
  • Default result limit is 5, and the score threshold defaults to 0.7 (set in .env).
  • Performance target is under 2 seconds for typical searches.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: .claude/skills/aim-search/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadBash

Alternatives to aim-search

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

aim-search: common questions

Which embedding model does aim-search use?

Semantic search uses jina-embeddings-v2-base-en for vector similarity. The source does not describe other models.

How is the decay score calculated?

The final score is 0.7 times semantic plus 0.3 times 0.5 raised to age_days divided by half_life. Half-life varies by memory type, for example 60 days for rules and guidelines.

What happens if the Qdrant API key is rejected?

The search reports a 401 auth failure and says the knowledge base was not consulted. Results are then file-only, not empty search results.

How do I install aim-search?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is aim-search free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is aim-search safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to aim-search?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

aim-search Install

Add to stack

Loading.