repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | { |
| #2 | "skillId": "session-logs", |
| #3 | "name": "session-logs", |
| #4 | "description": "Search and analyze your own session logs (older/parent conversations) using jq.", |
| #5 | "category": "pump-protocol", |
| #6 | "path": "session-logs/SKILL.md", |
| #7 | "url": "https://x402.wtf/api/skills/session-logs", |
| #8 | "tags": [ |
| #9 | "session", |
| #10 | "solana", |
| #11 | "logs" |
| #12 | ], |
| #13 | "requiredEnv": [], |
| #14 | "homepage": null, |
| #15 | "attestation": { |
| #16 | "status": "pending", |
| #17 | "isFormallyVerified": false, |
| #18 | "attestationPda": null, |
| #19 | "verificationTimestamp": null |
| #20 | }, |
| #21 | "markdown": "---\nname: session-logs\ndescription: Search and analyze your own session logs (older/parent conversations) using jq.\nmetadata: {\"clawdbot\":{\"emoji\":\"📜\",\"requires\":{\"bins\":[\"jq\",\"rg\"]}}}\n---\n\n# session-logs\n\nSearch your complete conversation history stored in session JSONL files. Use this when a user references older/parent conversations or asks what was said before.\n\n## Trigger\n\nUse this skill when the user asks about prior chats, parent conversations, or historical context that isn’t in memory files.\n\n## Location\n\nSession logs live at: `~/.clawdbot/agents/<agentId>/sessions/` (use the `agent=<id>` value from the system prompt Runtime line).\n\n- **`sessions.json`** - Index mapping session keys to session IDs\n- **`<session-id>.jsonl`** - Full conversation transcript per session\n\n## Structure\n\nEach `.jsonl` file contains messages with:\n- `type`: \"session\" (metadata) or \"message\"\n- `timestamp`: ISO timestamp\n- `message.role`: \"user\", \"assistant\", or \"toolResult\"\n- `message.content[]`: Text, thinking, or tool calls (filter `type==\"text\"` for human-readable content)\n- `message.usage.cost.total`: Cost per response\n\n## Common Queries\n\n### List all sessions by date and size\n```bash\nfor f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do\n date=$(head -1 \"$f\" | jq -r '.timestamp' | cut -dT -f1)\n size=$(ls -lh \"$f\" | awk '{print $5}')\n echo \"$date $size $(basename $f)\"\ndone | sort -r\n```\n\n### Find sessions from a specific day\n```bash\nfor f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do\n head -1 \"$f\" | jq -r '.timestamp' | grep -q \"2026-01-06\" && echo \"$f\"\ndone\n```\n\n### Extract user messages from a session\n```bash\njq -r 'select(.message.role == \"user\") | .message.content[]? | select(.type == \"text\") | .text' <session>.jsonl\n```\n\n### Search for keyword in assistant responses\n```bash\njq -r 'select(.message.role == \"assistant\") | .message.content[]? | select(.type == \"text\") | .text' <session>.jsonl | rg -i \"keyword\"\n```\n\n### Get total cost for a session\n```bash\njq -s '[.[] | .message.usage.cost.total // 0] | add' <session>.jsonl\n```\n\n### Daily cost summary\n```bash\nfor f in ~/.clawdbot/agents/<agentId>/sessions/*.jsonl; do\n date=$(head -1 \"$f\" | jq -r '.timestamp' | cut -dT -f1)\n cost=$(jq -s '[.[] | .message.usage.cost.total // 0] | add' \"$f\")\n echo \"$date $cost\"\ndone | awk '{a[$1]+=$2} END {for(d in a) print d, \"$\"a[d]}' | sort -r\n```\n\n### Count messages and tokens in a session\n```bash\njq -s '{\n messages: length,\n user: [.[] | select(.message.role == \"user\")] | length,\n assistant: [.[] | select(.message.role == \"assistant\")] | length,\n first: .[0].timestamp,\n last: .[-1].timestamp\n}' <session>.jsonl\n```\n\n### Tool usage breakdown\n```bash\njq -r '.message.content[]? | select(.type == \"toolCall\") | .name' <session>.jsonl | sort | uniq -c | sort -rn\n```\n\n### Search across ALL sessions for a phrase\n```bash\nrg -l \"phrase\" ~/.clawdbot/agents/<agentId>/sessions/*.jsonl\n```\n\n## Tips\n\n- Sessions are append-only JSONL (one JSON object per line)\n- Large sessions can be several MB - use `head`/`tail` for sampling\n- The `sessions.json` index maps chat providers (discord, whatsapp, etc.) to session IDs\n- Deleted sessions have `.deleted.<timestamp>` suffix\n\n## Fast text-only hint (low noise)\n\n```bash\njq -r 'select(.type==\"message\") | .message.content[]? | select(.type==\"text\") | .text' ~/.clawdbot/agents/<agentId>/sessions/<id>.jsonl | rg 'keyword'\n```\n" |
| #22 | } |
| #23 |