[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AY53X1NPCZ4WQSE0E9A65X":3,"skill-same:01M7AY53X1NPCZ4WQSE0E9A65X":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7AY53X1NPCZ4WQSE0E9A65X","a0-live-debug",null,"a0, agent-zero, docker, live-debug, scheduler, tasks, csrf, chats","lost-rob0t\u002Fskills","lost-rob0t","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F104283403?v=4","01M7AE2T5GZHE2CF6ANP6TKG0E","nsaspy","01M7AY4Z7QRGZRBX43TN2XT0GR",0,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fa0-live-debug\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: a0-live-debug\ndescription: a0, agent-zero, docker, live-debug, scheduler, tasks, csrf, chats\ncompatibility: any environment with docker access to a running Agent Zero container\n---\n\n# Agent Zero Live Container Debug\n\n## Goal\n\nInspect and debug a running, dockerized Agent Zero runtime without touching the\nhost outside the container.\n\n## Input\n\nA running A0 container (default name `agent-zero`, image `a0-symbolics:local`).\nAll commands run inside the container via `docker exec`; the runtime root is\n`\u002Fa0`.\n\n## Output\n\nConcrete diagnosis of backend\u002FUI\u002Fscheduler problems plus verified fixes.\n\n## Layout (inside container)\n\n| Path | Contents |\n| --- | --- |\n| `\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json` | Scheduler task list (`state`, `last_result` carries run errors) |\n| `\u002Fa0\u002Fusr\u002Fchats\u002F\u003Cctx>\u002Fmessages\u002FN.txt` | Per-context chat turns; higher N = newer |\n| `\u002Fa0\u002Fusr\u002Fprojects\u002F\u003Cslug>\u002F` | Projects; slug is the **folder name**, `.a0proj\u002Fproject.json` holds the `title` |\n| `\u002Fa0\u002Ftmp\u002F` | Runtime caches (memory, playwright) |\n| `\u002Fa0\u002Fwebui\u002F` | Served WebUI source (compare md5 against repo when UI misbehaves) |\n\n## Workflow\n\n1. Identify container and uptime: `docker ps --format '{{.Names}}\\t{{.Status}}'`.\n2. Read scheduler state first; `last_result` records exact run errors:\n   `docker exec agent-zero python3 -c \"import json;d=json.load(open('\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json'));[print(t['name'],t['state'],t.get('last_result')) for t in d['tasks']]\"`\n3. Read worker chat tails for recent agent-side context:\n   `docker exec agent-zero sh -c 'cat \u002Fa0\u002Fusr\u002Fchats\u002F\u003Cid>\u002Fmessages\u002F$(ls \u002Fa0\u002Fusr\u002Fchats\u002F\u003Cid>\u002Fmessages | sort -n | tail -1).txt'`\n4. Check container logs, filtering reaped-pid noise:\n   `docker logs agent-zero --since 30m 2>&1 | grep -viE \"reaped unknown pid\" | tail -50`\n5. Smoke-test APIs from inside the container. CSRF needs a **cookie jar plus\n   Origin header** (login-disabled mode rejects `Origin: None`):\n   ```sh\n   docker exec agent-zero sh -c '\n     curl -s -c \u002Ftmp\u002Fcj http:\u002F\u002Flocalhost:80\u002Fapi\u002Fcsrf_token \\\n       -H \"Origin: http:\u002F\u002Flocalhost:5080\" > \u002Ftmp\u002Fct.json\n     TOKEN=$(python3 -c \"import json;print(json.load(open(\\\"\u002Ftmp\u002Fct.json\\\"))[\\\"token\\\"])\")\n     curl -s -X POST http:\u002F\u002Flocalhost:80\u002Fapi\u002F\u003Cendpoint> \\\n       -H \"Content-Type: application\u002Fjson\" -H \"Origin: http:\u002F\u002Flocalhost:5080\" \\\n       -H \"X-CSRF-Token: $TOKEN\" -b \u002Ftmp\u002Fcj -d \"{\\\"timezone\\\":\\\"America\u002FNew_York\\\"}\"'\n   ```\n6. Endpoints are `\u002Fapi\u002F\u003Cname>`; bare `\u002F\u003Cname>` returns 405. GET on POST-only\n   endpoints returns 405 - always use POST.\n7. Fix persisted data directly only after root-cause confirmation, then re-run\n   the failing operation through the API to verify.\n\n## Known Failure Modes\n\n- **Task runs fail with `FileNotFoundError ... \u002Fusr\u002Fprojects\u002F\u003CName>\u002F.a0proj\u002Fproject.json`**\n  - Task stores a display **title** (`Hackmode`) instead of the folder **slug**\n    (`hackmode`); Linux is case-sensitive. Fix `project_name` (and\n  `project.name`) in `tasks.json` to the folder slug. Listings succeed because\n  serialization never touches disk - only `activate_project` fails at run time.\n- **`CSRF token missing or invalid` via curl** - missing cookie jar or Origin\n  header; see step 5. `Origin None not allowed when login is disabled` means\n  the Origin header was absent.\n- **UI shows no tasks but tasks.json has them** - check the browser console and\n  `ALLOWED_ORIGINS`; the fetch path is `\u002Fscheduler_tasks_list` POST via\n  `webui\u002Fcomponents\u002Fmodals\u002Fscheduler\u002Fscheduler-store.js`.\n\n## Rules\n\n- Never edit tasks.json while a task is `running`; set state to `idle` only\n  after confirming the run actually failed.\n- Prefer reproducing through the real API path over reading files; file reads\n  prove state, API calls prove behavior.\n- Do not restart the container as a first move; read state first.\n- Mask tokens\u002Fsecrets when pasting logs or chat excerpts.\n\n## Verification\n\n```sh\ndocker exec agent-zero python3 -c \"import json;print([t['state'] for t in json.load(open('\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json'))['tasks']])\"\ndocker logs agent-zero --since 5m 2>&1 | grep -ci traceback\n```\n","# Agent Zero Live Container Debug\n\n## Goal\n\nInspect and debug a running, dockerized Agent Zero runtime without touching the\nhost outside the container.\n\n## Input\n\nA running A0 container (default name `agent-zero`, image `a0-symbolics:local`).\nAll commands run inside the container via `docker exec`; the runtime root is\n`\u002Fa0`.\n\n## Output\n\nConcrete diagnosis of backend\u002FUI\u002Fscheduler problems plus verified fixes.\n\n## Layout (inside container)\n\n| Path | Contents |\n| --- | --- |\n| `\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json` | Scheduler task list (`state`, `last_result` carries run errors) |\n| `\u002Fa0\u002Fusr\u002Fchats\u002F\u003Cctx>\u002Fmessages\u002FN.txt` | Per-context chat turns; higher N = newer |\n| `\u002Fa0\u002Fusr\u002Fprojects\u002F\u003Cslug>\u002F` | Projects; slug is the **folder name**, `.a0proj\u002Fproject.json` holds the `title` |\n| `\u002Fa0\u002Ftmp\u002F` | Runtime caches (memory, playwright) |\n| `\u002Fa0\u002Fwebui\u002F` | Served WebUI source (compare md5 against repo when UI misbehaves) |\n\n## Workflow\n\n1. Identify container and uptime: `docker ps --format '{{.Names}}\\t{{.Status}}'`.\n2. Read scheduler state first; `last_result` records exact run errors:\n   `docker exec agent-zero python3 -c \"import json;d=json.load(open('\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json'));[print(t['name'],t['state'],t.get('last_result')) for t in d['tasks']]\"`\n3. Read worker chat tails for recent agent-side context:\n   `docker exec agent-zero sh -c 'cat \u002Fa0\u002Fusr\u002Fchats\u002F\u003Cid>\u002Fmessages\u002F$(ls \u002Fa0\u002Fusr\u002Fchats\u002F\u003Cid>\u002Fmessages | sort -n | tail -1).txt'`\n4. Check container logs, filtering reaped-pid noise:\n   `docker logs agent-zero --since 30m 2>&1 | grep -viE \"reaped unknown pid\" | tail -50`\n5. Smoke-test APIs from inside the container. CSRF needs a **cookie jar plus\n   Origin header** (login-disabled mode rejects `Origin: None`):\n   ```sh\n   docker exec agent-zero sh -c '\n     curl -s -c \u002Ftmp\u002Fcj http:\u002F\u002Flocalhost:80\u002Fapi\u002Fcsrf_token \\\n       -H \"Origin: http:\u002F\u002Flocalhost:5080\" > \u002Ftmp\u002Fct.json\n     TOKEN=$(python3 -c \"import json;print(json.load(open(\\\"\u002Ftmp\u002Fct.json\\\"))[\\\"token\\\"])\")\n     curl -s -X POST http:\u002F\u002Flocalhost:80\u002Fapi\u002F\u003Cendpoint> \\\n       -H \"Content-Type: application\u002Fjson\" -H \"Origin: http:\u002F\u002Flocalhost:5080\" \\\n       -H \"X-CSRF-Token: $TOKEN\" -b \u002Ftmp\u002Fcj -d \"{\\\"timezone\\\":\\\"America\u002FNew_York\\\"}\"'\n   ```\n6. Endpoints are `\u002Fapi\u002F\u003Cname>`; bare `\u002F\u003Cname>` returns 405. GET on POST-only\n   endpoints returns 405 - always use POST.\n7. Fix persisted data directly only after root-cause confirmation, then re-run\n   the failing operation through the API to verify.\n\n## Known Failure Modes\n\n- **Task runs fail with `FileNotFoundError ... \u002Fusr\u002Fprojects\u002F\u003CName>\u002F.a0proj\u002Fproject.json`**\n  - Task stores a display **title** (`Hackmode`) instead of the folder **slug**\n    (`hackmode`); Linux is case-sensitive. Fix `project_name` (and\n  `project.name`) in `tasks.json` to the folder slug. Listings succeed because\n  serialization never touches disk - only `activate_project` fails at run time.\n- **`CSRF token missing or invalid` via curl** - missing cookie jar or Origin\n  header; see step 5. `Origin None not allowed when login is disabled` means\n  the Origin header was absent.\n- **UI shows no tasks but tasks.json has them** - check the browser console and\n  `ALLOWED_ORIGINS`; the fetch path is `\u002Fscheduler_tasks_list` POST via\n  `webui\u002Fcomponents\u002Fmodals\u002Fscheduler\u002Fscheduler-store.js`.\n\n## Rules\n\n- Never edit tasks.json while a task is `running`; set state to `idle` only\n  after confirming the run actually failed.\n- Prefer reproducing through the real API path over reading files; file reads\n  prove state, API calls prove behavior.\n- Do not restart the container as a first move; read state first.\n- Mask tokens\u002Fsecrets when pasting logs or chat excerpts.\n\n## Verification\n\n```sh\ndocker exec agent-zero python3 -c \"import json;print([t['state'] for t in json.load(open('\u002Fa0\u002Fusr\u002Fscheduler\u002Ftasks.json'))['tasks']])\"\ndocker logs agent-zero --since 5m 2>&1 | grep -ci traceback\n```\n",{"name":5,"description":7,"compatibility":24},"any environment with docker access to a running Agent Zero container","main","4b51593eee1b59ce94f1a7bb84b9a1393414906a","skills\u002Fa0-live-debug","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills","https:\u002F\u002Fgithub.com\u002Flost-rob0t","HackerMan\r\nLISP\u002Fnim + nixos\r\n\r\nMonero: \r\n8Bk9yV92PqAepeeCHvWVXsLwnpMWMmB99XoGgLaxWEZNfDXXcfzDWyH56XaGs6K5YFZckaPjQGsPXdRZDokgEFbKSUG9H","2026-11-14 09:27:40",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lost-rob0t\u002Fskills --skill a0-live-debug",{"tool":38,"command":39},"bunx","bunx skills add lost-rob0t\u002Fskills --skill a0-live-debug",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lost-rob0t\u002Fskills --skill a0-live-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fa0-live-debug\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7AYCQH81M6KWJF8SXDK3C0C","unknown-frontmatter","validator, fixture","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Funknown-frontmatter\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7AYBFAATN244PFVY74JWCWM","zara-phone-pair","zara, phone, pairing, adb, wireless-debugging, curve, enrollment, android","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzara-phone-pair\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7AYB9NY8AX86EN0A1PSVBFK","zara-mcp","zara, mcp, stdio, http, tools, resources, prompts, debugging","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzara-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7AYB63ZZTN44G20M900X2WZ","youtube-context","youtube, transcripts, yt-dlp, whisper, video-context","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-context\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7AYB3JEZGMP6YQ91X7BYYED","worker-orchestration","workers, routing, delegation, fleet, budgets, concurrency","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fworker-orchestration\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7AYAZZCC7TXT978GBHEPV47","task-steward-worker","steward, rage, leases, fencing, heartbeat, receipts","https:\u002F\u002Fgithub.com\u002Flost-rob0t\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftask-steward-worker\u002FSKILL.md",[],[]]