by AI4XE
Let AI manage itself — a cross-harness kit for runtime status, context renewal, self-duplication and more
# Add to your Claude Code skills
git clone https://github.com/AI4XE/ai4aiai4ai is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by AI4XE. Let AI manage itself — a cross-harness kit for runtime status, context renewal, self-duplication and more. It has 136 GitHub stars.
ai4ai's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/AI4XE/ai4ai" and add it to your Claude Code skills directory (see the Installation section above).
ai4ai is primarily written in TypeScript. It is open-source under AI4XE on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai4ai against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
AI4AI — Let AI manage itself more easily.
AI4AI 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.
| Harness | Linux | macOS | Windows |
|---|---|---|---|
| Claude Code | ✅ | ✅ | WSL |
| Codex | ✅ | ✅ | WSL |
| OpenCode | ✅ | ✅ | WSL |
| DeepSeek Harness | ✅ | ✅ | ✅ |
On Windows, all harnesses except DeepSeek Harness run via WSL; details and limits are in the contract docs.
Requires Node.js 22+. Choose one — do not run all three:
Recommended
npm install -g ai4ai && ai4ai init
Custom install
npx ai4ai init
Project-scope install
npm i -D ai4ai && npx ai4ai init --scope project
For DeepSeek Harness, ai4ai init installs both the web and headless profiles.
init detects and registers local harnesses (idempotent); --yes skips the prompt.
ai4ai status # show state
ai4ai upgrade # re-register
ai4ai uninstall # remove registrations
The same commands across harnesses (in-harness session tool and ai4ai CLI):
status — know its own context, model, reasoning effort, window, auto-compaction.handoff — renew its context in place while keeping the task.spawn — start a detached executor that works in parallel (not a sub-agent).message / finish / stop / list — manage executors.watch / events / sweep — observe and clean up session processes (CLI helpers).Claude Code / OpenCode / DSH expose the tools after registration; Codex uses the CLI:
ai4ai session --operation status --harness codex
MIT.