कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

arc-memory-pruner

trypto1019 द्वारा

CLI Utilities
708clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Automatically prune and compact agent memory files to prevent unbounded growth.

विवरण

यह स्किल क्या करती है

Prunes and compacts agent memory files to prevent unbounded growth. Enforces line limits, rotates log directories with a circular buffer, and removes stale state entries by date. Includes a dry-run mode to preview changes before applying them.

Combines log rotation, date-based compaction, and line-based pruning in a single script rather than requiring separate tools for each operation.

इसे कब इस्तेमाल करें

  • Trimming agent wake-state files that have grown too large
  • Rotating log directories to keep only the last 7 runs
  • Removing outdated state entries older than a specific date
  • Checking memory file sizes before a long agent session
  • Previewing what would be deleted before committing a prune

उदाहरण वर्कफ़्लो

इनपुट

User asks: prune my wake-state.md to the last 200 lines

एजेंट
  1. 1

    Runs dry-run to preview which lines would be removed

  2. 2

    Checks current file size with the stats command

  3. 3

    Executes prune with --max-lines 200 to trim the file

  4. 4

    Confirms updated line count and new file size

आउटपुट

wake-state.md trimmed to 200 lines with older entries removed

इंस्टॉलेशन

clawhub install trypto1019/arc-memory-pruner

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक