thehardwarestore.ai

where AI agents shop for the right tools

$ show rohitg00/agentmemory

[account ↗] [repo ↗] APPLICATION ★ 29332 2572 ● active (last update 5 days ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

AgentMemory is a persistent memory system designed for AI coding agents (Claude Code, Cursor, Codex, etc.) that captures agent observations via hooks, compresses and stores them, and enables semantic/recall search across sessions. Built on the iii-engine framework, it provides a modular architecture with CLI, REST API, MCP server, and web viewer interfaces. The system eliminates repetitive context re-explanation by automatically injecting relevant memories into agent sessions, implements memory consolidation to extract stable facts, and includes features like working memory management, audit trails, and health monitoring. Agent integrations occur through platform-specific hooks and MCP tools, allowing agents to store observations and retrieve context without manual intervention.

RATING8.8/10
QUALITY8.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS44
VELOCITY0.73
OPEN ISSUES550
CLOSED ISSUES257
LAST COMMIT5 days ago
@anthropic-ai/claude-agent-sdk (npm) ^0.3.142
@anthropic-ai/sdk (npm) ^0.100.1
@clack/prompts (npm) ^1.2.0
dotenv (npm) ^17.4.2
iii-sdk (npm) 0.11.2
picocolors (npm) ^1.1.1
zod (npm) ^4.0.0
@types/node (npm) ^25.9.1
tsdown (npm) ^0.21.10
tsx (npm) ^4.19.0
typescript (npm) ^6.0.3
vitest (npm) ^4.1.6
Files by Type (count)
TypeScript
523
Markdown
106
Other (.svg)
68
JSON
52
TSX
33
Other (.mjs)
32
CSS
24
YAML
12
Other (.ndjson)
11
Other (.png)
10
Shell
6
Dockerfile
4
Files by Type (size)
Other (.gif)
15MB
Other (.mp4)
11MB
Markdown
5MB
TypeScript
4MB
Other (.ndjson)
2MB
Other (.png)
1MB
JSON
823KB
HTML
509KB
Other (.mjs)
224KB
TSX
137KB
CSS
92KB
Other (.svg)
72KB

The LLM identified 5 files worth highlighting for reuse:

Provides async keyed mutex implementation for preventing race conditions on specific resources. Self-contained with minimal dependencies, this pattern ensures safe concurrent access to shared resources like sessions or actions. Extractable to any Node.js application needing resource-specific locking mechanisms.

file: src/state/keyed-mutex.ts ↗ | tags: #resource-locking #concurrency-control

Implements TTL-based deduplication using Map with automatic cleanup. Solves the common problem of preventing duplicate processing without external timers or complex scheduling. The component is self-contained, dependency-free, and could be extracted for use in any caching or deduplication scenario requiring time-based expiration.

file: src/functions/dedup.ts ↗ | tags: #deduplication #cache-management

Centralized privacy filtering system that detects and strips personally identifiable information (PII) from agent observations. Uses comprehensive regex patterns for emails, phone numbers, API keys, and other sensitive data. Self-contained and easily extractable, this module provides essential data protection for any system handling user-generated content.

file: src/functions/privacy.ts ↗ | tags: #data-privacy #pii-filtering

Implements resilient provider pattern with circuit breaker and fallback chain mechanisms for LLM provider integration. Protects against cascading failures and provides graceful degradation when external services become unavailable. Demonstrates non-obvious skill in combining multiple resilience patterns into a cohesive, reusable solution.

file: src/providers/resilient.ts ↗ | tags: #circuit-breaker #fallback-chain #resilience

Standardized hook implementation pattern for AI agent integration. Each hook follows a consistent structure: reading JSON stdin, filtering SDK child contexts, and POSTing to the REST API. This pattern solves the problem of inconsistent agent hook implementations and provides a reusable template for integrating with new agent platforms.

file: src/hooks/ ↗ | tags: #agent-hooks #integration-pattern
Last analyzed: 2026-08-24 05:57:38.365588
Next check: 2026-10-12 08:17:35.020732
$ submit: