# mAgent

> mAgent is a free, open-source CLI that opens each of your projects in its own terminal window, launches your AI coding agent inside it, and auto-tiles every window into a grid across all of your monitors. One command — `magent --go` — takes you from an empty desktop to a fully tiled, resumed AI agent workspace.

Key facts:

- Product name: mAgent. Package: magent-multi-ai-agents-manager; CLI command: magent (`pip install magent-multi-ai-agents-manager`, run `magent` or `magent --go`).
- Agents it launches and tiles: Claude Code, OpenAI Codex CLI, Cursor CLI (cursor-agent), Antigravity, plus editors like VS Code and Cursor — anything on PATH.
- Live agent state and automatic conversation resume are wired for Claude Code and Codex only; other tools launch fresh.
- Sessions auto-resume: `claude --continue` and `codex resume` per window, restoring the same grid every time. A folder with no stored conversation starts a fresh agent instead of failing with "No conversation found to continue".
- `magent watch` shows a live table of every agent session — working, needs-input, done, error — sorted most-urgent first; `magent status --json` for scripts and CI. Wire the state hooks once with `magent hooks install` (Claude Code settings + the one-line Codex recipe); the press-a-row-number-to-focus action is Windows-only.
- Remote: on Windows, sessions live in psmux and survive disconnects; attach over SSH/Tailscale. On every platform you can pair Happy for end-to-end-encrypted phone/browser control. The upload server binds loopback + your Tailscale address by default, never the LAN wildcard unless you pass `--host`.
- Platforms: Windows, macOS, Linux · Python 3.10+ (some power features are Windows-only).
- License: AGPL-3.0, by DevinoSolutions.
- No credentials, API key, MCP server, or SDK required — mAgent is a local CLI only.

## Agent setup

- An AI coding agent can set mAgent up for itself: fetch and execute [/agent-setup/prompt.md](https://magent.now/agent-setup/prompt.md) — plain markdown, no auth, `Content-Type: text/markdown`.
- [/agent-setup/](https://magent.now/agent-setup/): human-readable per-agent setup guides (Claude Code, Codex, Cursor, OpenCode) the prompt is generated from.

## Pages

- [Home](https://magent.now/): overview of tiling, resume, watch table, remote control, and platform capability matrix
- [Install guide](https://magent.now/install): step-by-step install — requirements, pip/uv/source install, first-run config, agent state hooks, optional extras, `magent doctor`
- [FAQ](https://magent.now/faq): frequently asked questions
- [Blog](https://magent.now/blog): guides and workflows for running AI coding agents in parallel

## Blog posts

- [How to resume a Claude Code session after a restart](https://magent.now/blog/resume-claude-code-session-after-restart): `claude --continue` vs `claude --resume`, where transcripts live, what survives a reboot or crash, recovering a "lost" session, and resuming every project at once with `magent --go` (with its fresh-start fallback for folders that have no stored conversation)
- [How to run multiple Claude Code sessions in parallel](https://magent.now/blog/run-multiple-claude-code-sessions)
- [mAgent vs tmux: which fits an AI agent workflow?](https://magent.now/blog/magent-vs-tmux-for-ai-agents)
- [Auto-resume Claude Code and Codex sessions after a restart](https://magent.now/blog/auto-resume-claude-code-codex-sessions)
- [Control your AI coding agents from your phone](https://magent.now/blog/control-ai-coding-agents-from-your-phone)
- [Live status for every AI agent session with lifecycle hooks](https://magent.now/blog/ai-agent-status-lifecycle-hooks)
- [Managing a fleet of AI coding agents across projects](https://magent.now/blog/parallel-ai-coding-agents-workflow)
- [Tile terminal windows across monitors, automatically](https://magent.now/blog/tile-terminal-windows-across-monitors)
- [One command to set up your entire dev workspace](https://magent.now/blog/multi-project-development-setup)
- [magent vs Claude Squad vs CCManager vs tmux compared](https://magent.now/blog/magent-vs-claude-squad-ccmanager-tmux): sourced comparison table; every claim about another tool links to its own README or docs, checked 2026-10-01

## Source

- [GitHub repository](https://github.com/DevinoSolutions/magent-multi-ai-agents-manager)
- [PyPI package](https://pypi.org/project/magent-multi-ai-agents-manager)

## Community

- [mAgent Discord](https://discord.gg/P8g3pzBjDx): help, questions, feature requests and show-and-tell

## Full text

- [llms-full.txt](https://magent.now/llms-full.txt): this index plus the complete text of every article above, inlined in one file.
- Every article is also served as clean markdown at its own URL with `.md` appended, e.g. https://magent.now/blog/magent-vs-tmux-for-ai-agents.md
- The home page as markdown: https://magent.now/index.md (also what https://magent.now/ answers to `Accept: text/markdown`).
- [RSS feed](https://magent.now/feed.xml) for new posts.

---

## Questions, answered

### What is mAgent?

mAgent is a free, open-source CLI that opens each of your projects in its own terminal window, launches your AI coding agent inside it, and auto-tiles every window into a grid across all of your monitors. One command takes you from an empty desktop to a fully tiled, resumed AI agent workspace.

### Which AI coding agents does it support?

Claude Code, OpenAI Codex CLI, and Cursor CLI (cursor-agent) out of the box, alongside editors like VS Code and Cursor. Any tool that runs from your PATH can be launched per project, so mixed fleets — some projects on Claude, some on Codex — work naturally. Live agent state and automatic conversation resume are wired for Claude Code and Codex.

### How do I run multiple Claude Code sessions at the same time?

Run magent --go. Each project gets its own terminal window with Claude Code already running, tiled into a grid across your monitors. Sessions resume with claude --continue automatically, and the magent watch table shows the live state of every session — working, needs-input, done, or error — so you always know which window needs you.

### Does mAgent resume my Claude Code conversations after a reboot?

Yes. The default Claude Code command is claude --continue, so magent --go reopens every project in its own terminal and picks up the most recent conversation in each folder. A project with no stored conversation starts a fresh claude instead of failing, and a project with several windows resumes a different conversation in each, by session ID. [How to resume a Claude Code session after a restart](https://magent.now/blog/resume-claude-code-session-after-restart)

### Is mAgent free and open source?

Yes. mAgent is open source under the AGPL-3.0 license and free to use. Install it with pip install magent-multi-ai-agents-manager or uv tool install magent-multi-ai-agents-manager; the source lives on GitHub under DevinoSolutions/magent-multi-ai-agents-manager.

### Which platforms does it run on?

Windows, macOS, and Linux, with Python 3.10 or newer. A few power features — like psmux persistent sessions and desktop toast notifications — are Windows-only; the capability matrix on this page lists exactly what each platform supports.

### Can I monitor and control my agents remotely?

Yes. On Windows, sessions live in psmux, so they survive you walking away — SSH in over Tailscale from any client and re-attach. On every platform you can pair it with Happy for end-to-end-encrypted control of your Claude and Codex sessions from a browser or phone, and upload screenshots from your phone; on Windows an uploaded screenshot drops straight into the focused session.

### What do I install, and what do I run?

Install it from PyPI with pip install magent-multi-ai-agents-manager (or uv tool install magent-multi-ai-agents-manager). The command is magent — run magent once to scan your history and write a config, then magent --go to launch and tile every project.

### Can an AI agent set mAgent up for me?

Yes. Copy the "Onboard your agent to mAgent" sentence from the pill on the home page or the /agent-setup page and paste it into Claude Code, Codex, Cursor, or any AI coding agent. It fetches /agent-setup/prompt.md and runs the install, config, and (for Claude Code and Codex) lifecycle-hook steps itself — no credentials needed.

### Is mAgent the same as the MAgent reinforcement-learning library?

No. mAgent (magent.now) is an open-source command-line tool for developers that opens, resumes and tiles AI coding agents such as Claude Code and Codex. It has nothing to do with MAgent, the many-agent reinforcement-learning platform; the two only share a name.

### Do I need an API key or account to use mAgent?

No. mAgent has no API key, no OAuth flow, and no MCP server — it is a local CLI that launches terminals and agents you already have installed. It never talks to a mAgent-run service.

---

This is the Markdown version of https://magent.now/ (the HTML page is canonical).
