{
  "schemaVersion": "1.0",
  "item": {
    "slug": "session-history",
    "name": "Session History",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/amor71/session-history",
    "canonicalUrl": "https://clawhub.ai/amor71/session-history",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/session-history",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=session-history",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/search_sessions.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-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-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/session-history"
    },
    "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/session-history",
    "agentPageUrl": "https://openagent3.xyz/skills/session-history/agent",
    "manifestUrl": "https://openagent3.xyz/skills/session-history/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/session-history/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": "Session History",
        "body": "Search through past OpenClaw session transcripts (JSONL files in ~/.openclaw/agents/*/sessions/)."
      },
      {
        "title": "Quick Reference",
        "body": "# Search for conversations about a topic\npython3 scripts/search_sessions.py \"gclid pipeline error\"\n\n# List recent sessions\npython3 scripts/search_sessions.py --list --days 3\n\n# Search specific agent's history\npython3 scripts/search_sessions.py \"flight monitor\" --agent main\n\n# Wider time range\npython3 scripts/search_sessions.py \"quantum encryption\" --days 30 --max-results 5"
      },
      {
        "title": "Workflow",
        "body": "Run search_sessions.py with the user's query terms to find relevant sessions\nUse sessions_history tool with the sessionKey to pull full context from a match\nIf sessions_history doesn't work (old/closed sessions), read the JSONL file directly with read\nSummarize what was found — don't dump raw transcripts"
      },
      {
        "title": "When to Use",
        "body": "User says \"remember when we discussed X?\" or \"we talked about Y last week\"\nResuming a thread that isn't captured in memory files\nFinding a decision, code snippet, or error from a past session\nCross-referencing what was said vs what's in MEMORY.md"
      },
      {
        "title": "Tips",
        "body": "Also check memory_search first — it indexes session transcripts too\nCombine both: memory_search for semantic matching, search_sessions.py for keyword/exact matching\nThe script searches user AND assistant messages\nJSONL path format: ~/.openclaw/agents/{agent_id}/sessions/{session_uuid}.jsonl"
      }
    ],
    "body": "Session History\n\nSearch through past OpenClaw session transcripts (JSONL files in ~/.openclaw/agents/*/sessions/).\n\nQuick Reference\n# Search for conversations about a topic\npython3 scripts/search_sessions.py \"gclid pipeline error\"\n\n# List recent sessions\npython3 scripts/search_sessions.py --list --days 3\n\n# Search specific agent's history\npython3 scripts/search_sessions.py \"flight monitor\" --agent main\n\n# Wider time range\npython3 scripts/search_sessions.py \"quantum encryption\" --days 30 --max-results 5\n\nWorkflow\nRun search_sessions.py with the user's query terms to find relevant sessions\nUse sessions_history tool with the sessionKey to pull full context from a match\nIf sessions_history doesn't work (old/closed sessions), read the JSONL file directly with read\nSummarize what was found — don't dump raw transcripts\nWhen to Use\nUser says \"remember when we discussed X?\" or \"we talked about Y last week\"\nResuming a thread that isn't captured in memory files\nFinding a decision, code snippet, or error from a past session\nCross-referencing what was said vs what's in MEMORY.md\nTips\nAlso check memory_search first — it indexes session transcripts too\nCombine both: memory_search for semantic matching, search_sessions.py for keyword/exact matching\nThe script searches user AND assistant messages\nJSONL path format: ~/.openclaw/agents/{agent_id}/sessions/{session_uuid}.jsonl"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/amor71/session-history",
    "publisherUrl": "https://clawhub.ai/amor71/session-history",
    "owner": "amor71",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/session-history",
    "downloadUrl": "https://openagent3.xyz/downloads/session-history",
    "agentUrl": "https://openagent3.xyz/skills/session-history/agent",
    "manifestUrl": "https://openagent3.xyz/skills/session-history/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/session-history/agent.md"
  }
}