Skip to content
Back to skills

Memory Gc

ASecurity

Rotate autopilot JSONL ledgers, keep memory bounded. Caps file size and keeps N rotated backups so memory does not grow unbounded.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
securitypythonshellbash

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add Elsfa7-110/Hermes-BugHunter --skill memory-gc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Gc?

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

Security grade badge for Memory Gc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elsfa7-110-memory-gc/badge)](https://www.skillsdirectory.com/skills/elsfa7-110-memory-gc)

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: memory-gc
description: "Rotate autopilot JSONL ledgers, keep memory bounded. Caps file size and keeps N rotated backups so memory does not grow unbounded."
sources: ["commands/memory-gc.md"]
---

# /memory-gc

Garbage-collect the autopilot ledger (`~/.hermes/bughunter/memory/`). Reports current sizes, rotates oversized files past a configurable cap, or purges old backups.

## Usage

```
/memory-gc                       # report only
/memory-gc --rotate              # rotate files above 10 MB (default cap)
/memory-gc --rotate --max-mb 5   # custom cap
/memory-gc --purge-backups       # delete all .1/.2/.3 backups
/memory-gc --dir <path>          # scan a non-default ledger dir
```

## Implementation

The agent shells out to, from the repo root:

```bash
python3 engine/memory.py --gc [--rotate] [--purge-backups] [--dir PATH] [--max-mb N]
```

## Defaults

- **Rotation cap:** 10 MB per file · **Backups kept:** 3 (`<file>.1` newest → `<file>.3` oldest)
- **Scope:** every `*.jsonl` under the ledger dir (`findings.jsonl`, `negatives.jsonl`)

Rotation also fires automatically on append inside the ledger writer, so files stay bounded without any session-end hook.

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 security →

Comments

Loading comments…

Newsletter

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