A tool to list and resume Claude Code sessions with plans.
curl -LO https://gist.githubusercontent.com/laiso/c79649fea1bd3534b00faa7dfb24885d/raw/cc-plans.py
chmod +x cc-plans.py
mv cc-plans.py ~/bin/cc-plans| { | |
| "providers": { | |
| "Preferred Networks (PLaMo)": { | |
| "baseUrl": "https://platform.preferredai.jp/api/completion/v1", | |
| "api": "openai-completions", | |
| "apiKey": "$PLAMO_API_KEY", | |
| "models": [ | |
| { | |
| "id": "plamo-3.0-prime", | |
| "name": "PLaMo 3.0 Prime", |
| { | |
| "providers": { | |
| "Sakana AI Console": { | |
| "baseUrl": "https://api.sakana.ai/v1", | |
| "api": "openai-responses", | |
| "apiKey": "$SAKANA_API_KEY", | |
| "models": [ | |
| { | |
| "id": "fugu", | |
| "name": "Sakana Fugu", |
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "provider": { | |
| "xai": { | |
| "npm": "@ai-sdk/xai", | |
| "name": "xAI Grok", | |
| "options": { | |
| "apiKey": "xai-YOUR_API_KEY", | |
| "baseURL": "https://api.x.ai/v1" | |
| }, |
gh repo clone openclaw/openclaw
cd openclaw
./docker-setup.sh
# ...onboarding...
docker compose run openclaw-cli status
docker compose run openclaw-cli dashboard --no-open| { | |
| "env": { | |
| "ANTHROPIC_AUTH_TOKEN": "sk-or-v1-your-openrouter-api-key", | |
| "ANTHROPIC_BASE_URL": "https://openrouter.ai/api", | |
| "ANTHROPIC_MODEL": "openrouter/pony-alpha", | |
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "openrouter/pony-alpha", | |
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "openrouter/pony-alpha", | |
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "openrouter/pony-alpha", | |
| "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" | |
| } |
| { | |
| "hooks": { | |
| "SessionStart": [ | |
| { | |
| "matcher": "compact", | |
| "hooks": [{ | |
| "type": "command", | |
| "command": "echo 'ここからは関西弁で応答してください。'", | |
| "timeout": 30 | |
| }] |
const PATH = "logs/sample.jsonl";
const N = 400;
const raw = await dv.io.load(PATH);
if (typeof raw !== "string") {
dv.paragraph(`load failed: ${PATH}`);
return;
}
| { | |
| "hooks": { | |
| "PreToolUse": [ | |
| { | |
| "matcher": "ExitPlanMode", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "code \"$(ls -t ~/.claude/plans/*.md | head -1)\"", | |
| "timeout": 5 |
| name | fork-context |
|---|---|
| description | Fork the context of the conversation and return its full analysis verbatim. |
| forkContext | true |
| model | inherit |
You are an agent that forks the context of the conversation and returns its full analysis verbatim.
Your job: