[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117268":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":10,"trendingCount":13,"starSnapshotCount":13,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},117268,"ai4ai","AI4XE\u002Fai4ai","AI4XE","Let AI manage itself — a cross-harness kit for runtime status, context renewal, self-duplication and more","",null,"TypeScript",135,0,61,1,33,35,61.8,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33],"agent-skills","ai-agents","ai-harness","claude-code","codex","context-managment","deepseek-harness","dsh-plugin","multi-agent","opencode","2026-11-23 15:31:04","2026-11-23 01:50:08","![AI4AI — Let AI Manage Itself](docs\u002Fbanner.svg)\n\n[![X](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FX-@xAI4AI-000?logo=x&logoColor=white)](https:\u002F\u002Fx.com\u002FxAI4AI)\n\n[English](README.md) | [中文](README.zh-CN.md)\n\n**AI4AI** — Let AI manage itself more easily.\n\nAI4AI is an extension kit for AI harnesses: it abstracts extension capabilities into a unified interface — the same tool calls work across harnesses, and skills stay portable.\n\n- **Know Itself** — understand its own runtime state, including but not limited to context usage, model, reasoning effort and window.\n- **Renew Itself** — renew itself on demand, refreshing the context, shedding the burden and traveling light.\n- **Duplicate Itself** — create its own copies, making task scheduling and coordination more flexible.\n\n## Supported harnesses\n\n| Harness | Linux | macOS | Windows |\n|---|---|---|---|\n| Claude Code | ✅ | ✅ | WSL |\n| Codex | ✅ | ✅ | WSL |\n| OpenCode | ✅ | ✅ | WSL |\n| DeepSeek Harness | ✅ | ✅ | ✅ |\n\nOn Windows, all harnesses except DeepSeek Harness run via WSL; details and limits are in [the contract docs](docs\u002Fcontract.md).\n\n## Start\n\nRequires Node.js 22+. Choose one — do not run all three:\n\n**Recommended**\n\n```bash\nnpm install -g ai4ai && ai4ai init\n```\n\n**Custom install**\n\n```bash\nnpx ai4ai init\n```\n\n**Project-scope install**\n\n```bash\nnpm i -D ai4ai && npx ai4ai init --scope project\n```\n\nFor DeepSeek Harness, `ai4ai init` installs both the web and headless profiles.\n\n`init` detects and registers local harnesses (idempotent); `--yes` skips the prompt.\n\n```bash\nai4ai status      # show state\nai4ai upgrade     # re-register\nai4ai uninstall   # remove registrations\n```\n\n## What AI can do\n\nThe same commands across harnesses (in-harness `session` tool and `ai4ai` CLI):\n\n- `status` — know its own context, model, reasoning effort, window, auto-compaction.\n- `handoff` — renew its context in place while keeping the task.\n- `spawn` — start a detached executor that works in parallel (not a sub-agent).\n- `message` \u002F `finish` \u002F `stop` \u002F `list` — manage executors.\n- `watch` \u002F `events` \u002F `sweep` — observe and clean up session processes (CLI helpers).\n\nClaude Code \u002F OpenCode \u002F DSH expose the tools after registration; Codex uses the CLI:\n\n```bash\nai4ai session --operation status --harness codex\n```\n\nMIT.\n",2,"2026-11-24 04:55:13","CREATED_QUERY"]