agentox
v0.2.0
Published
Cross-agent continuity layer for AI coding assistants
Downloads
1,166
Readme
🚀 The Problem
When you work with AI coding assistants (like Cursor, Claude Engineer, Aider, OpenCode), they lack shared context. Switching from one agent to another means losing your current tasks, architectural decisions, recent changes, and state.
🌟 What is AgentOS?
AgentOS is a continuity layer designed to seamlessly bridge the gap between different AI assistants. It creates a robust, file-based memory layer (agentos/) directly in your project repository.
Whenever you switch assistants, AgentOS generates a highly-condensed bootstrap handoff prompt containing:
- Pending Tasks
- Hard Architectural Decisions
- Recent History & Git changes
- Architecture Mapping
Your next AI agent can immediately pick up where the last one left off!
⚡ Features
- 🧠 Shared Memory State: Maintain task lists, goals, and architectural decisions across sessions.
- 🔄 Seamless Handoffs: Automatically generate a "bootstrap" prompt for your next AI agent via
agentox switch <agent>. - 📸 Intelligent Snapshots: Take snapshots of your workspace before handing it over to another agent.
- 🛡️ Hard Decisions: Enforce architectural guidelines that AI agents are strictly instructed not to override (
--hard). - 🔗 Git Integration: Automatically logs AI agent activity into the execution log on every
git commit.
🛠️ Installation
New in v0.2.0
- Zero-git file watching
- Works on cloned repos
- VSCode/Cursor/Windsurf extension
- Auto-starts on folder open
- One-click agent switch
Install CLI:
npm install -g agentoxInstall Extension: Search for "AgentOX" in your IDE's extension marketplace and install it.
IDE Compatibility
| IDE / Tool | MCP Auto | Bootstrap Fallback | |------------|----------|--------------------| | Claude Code | ✅ Native | ✅ | | Cursor | ✅ Native | ✅ | | Windsurf | ✅ Native | ✅ | | Antigravity | ✅ (via MCP config) | ✅ | | VS Code + Copilot | ❌ (needs Cline/RooCode) | ✅ | | ChatGPT | ❌ | ✅ | | Any other AI | ❌ | ✅ |
AgentOX works everywhere via Bootstrap fallback. MCP gives you zero-paste automation in supported IDEs.
📚 Quick Start
1. Initialize AgentOS in your project
Navigate to your existing project repository and run:
agentox initThis creates the .agentos/ directory and sets up the continuity layer, including a Git post-commit hook for tracking changes.
2. Set your current Agent
agentox use claude(Options: claude, cursor, aider, opencode)
3. Track Tasks and Decisions
# Add pending tasks
agentox task add "Build the login authentication flow"
agentox task add "Setup PostgreSQL database"
# Mark a task as done
agentox task done 1
# Enforce an architectural decision
agentox decision add "Use strictly React and functional components" --hard4. Switch to a new Agent
If you want to move from your current IDE/agent to another (e.g., from Cursor to Claude), use:
agentox switch cursorThis command auto-saves a snapshot, generates a Bootstrap Prompt, copies it to your clipboard, and sets the active agent.
5. Check Status
agentox statusDisplays the current state, active agent, pending tasks, recent decisions, and file tree drift.
📖 Command Reference
| Command | Description |
|---|---|
| agentox init | Initializes AgentOS in the current repo, setting up state files and git hooks. |
| agentox status | Displays the current agent status, tasks, and system state. |
| agentox use <agent> | Sets the active agent without generating a handoff prompt. |
| agentox switch <agent> | Snapshots state, generates a handoff prompt, copies it, and sets active agent. |
| agentox task add/done/list | Manage your agent's pending and completed tasks. |
| agentox decision add/list | Manage architectural decisions. Use --hard to make them strict for AI. |
| agentox snapshot | Manually captures a snapshot of the workspace and state. |
| agentox rollback | Reverts the workspace to a previous snapshot. |
| agentox log-commit | Logs git commits to the execution history (used mainly by the auto-hook). |
| agentox repair | Validates and fixes corrupted .agentos/ JSON state files. |
🤝 Contributing
We welcome contributions to expand AgentOS to more platforms, improve the prompt templates, and enhance state tracking!
- Fork the repo.
- Clone it locally and run
npm install. - Create a feature branch:
git checkout -b feature/my-cool-idea. - Commit your changes:
git commit -m "Add cool idea". - Push to the branch:
git push origin feature/my-cool-idea. - Open a Pull Request!
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
