{
  "schemaVersion": "1.0",
  "item": {
    "slug": "arc-memory-pruner",
    "name": "Memory Pruner",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Trypto1019/arc-memory-pruner",
    "canonicalUrl": "https://clawhub.ai/Trypto1019/arc-memory-pruner",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/arc-memory-pruner",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=arc-memory-pruner",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/memory_pruner.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/arc-memory-pruner"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/arc-memory-pruner",
    "agentPageUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Memory Pruner",
        "body": "Keep your agent's memory lean. Automatically prune logs, compact state files, and enforce size limits so your agent never runs out of disk or context window."
      },
      {
        "title": "Why This Exists",
        "body": "Agents accumulate memory files over time. Logs grow unbounded. State files collect stale entries. Eventually your boot-up reads 50K tokens of memory and half of it is outdated. Memory Pruner enforces limits and keeps only what matters."
      },
      {
        "title": "Prune a memory file (keep last N lines)",
        "body": "python3 {baseDir}/scripts/memory_pruner.py prune --file ~/wake-state.md --max-lines 200"
      },
      {
        "title": "Prune a log directory (circular buffer, keep last N files)",
        "body": "python3 {baseDir}/scripts/memory_pruner.py prune-logs --dir ~/agents/logs/ --keep 7"
      },
      {
        "title": "Compact a state file (remove sections matching a pattern)",
        "body": "python3 {baseDir}/scripts/memory_pruner.py compact --file ~/wake-state.md --remove-before \"2026-02-14\""
      },
      {
        "title": "Check memory sizes",
        "body": "python3 {baseDir}/scripts/memory_pruner.py stats --dir ~/"
      },
      {
        "title": "Dry run (show what would be pruned)",
        "body": "python3 {baseDir}/scripts/memory_pruner.py prune --file ~/wake-state.md --max-lines 200 --dry-run"
      },
      {
        "title": "Features",
        "body": "Line-based pruning: Keep last N lines of any file\nLog rotation: Circular buffer for log directories (keep last N files, delete oldest)\nDate-based compaction: Remove entries older than a cutoff date\nSize limits: Enforce max file sizes in bytes\nDry run mode: Preview changes before applying\nStats: Overview of memory file sizes and growth rates"
      }
    ],
    "body": "Memory Pruner\n\nKeep your agent's memory lean. Automatically prune logs, compact state files, and enforce size limits so your agent never runs out of disk or context window.\n\nWhy This Exists\n\nAgents accumulate memory files over time. Logs grow unbounded. State files collect stale entries. Eventually your boot-up reads 50K tokens of memory and half of it is outdated. Memory Pruner enforces limits and keeps only what matters.\n\nCommands\nPrune a memory file (keep last N lines)\npython3 {baseDir}/scripts/memory_pruner.py prune --file ~/wake-state.md --max-lines 200\n\nPrune a log directory (circular buffer, keep last N files)\npython3 {baseDir}/scripts/memory_pruner.py prune-logs --dir ~/agents/logs/ --keep 7\n\nCompact a state file (remove sections matching a pattern)\npython3 {baseDir}/scripts/memory_pruner.py compact --file ~/wake-state.md --remove-before \"2026-02-14\"\n\nCheck memory sizes\npython3 {baseDir}/scripts/memory_pruner.py stats --dir ~/\n\nDry run (show what would be pruned)\npython3 {baseDir}/scripts/memory_pruner.py prune --file ~/wake-state.md --max-lines 200 --dry-run\n\nFeatures\nLine-based pruning: Keep last N lines of any file\nLog rotation: Circular buffer for log directories (keep last N files, delete oldest)\nDate-based compaction: Remove entries older than a cutoff date\nSize limits: Enforce max file sizes in bytes\nDry run mode: Preview changes before applying\nStats: Overview of memory file sizes and growth rates"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Trypto1019/arc-memory-pruner",
    "publisherUrl": "https://clawhub.ai/Trypto1019/arc-memory-pruner",
    "owner": "Trypto1019",
    "version": "1.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/arc-memory-pruner",
    "downloadUrl": "https://openagent3.xyz/downloads/arc-memory-pruner",
    "agentUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent",
    "manifestUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/arc-memory-pruner/agent.md"
  }
}