[+] open source · AGPL-3.0 · Windows · macOS · Linux

Every project. Every agent. Every monitor.

mAgent is a Claude Code & Codex agent manager: it opens each of your projects in its own terminal, launches your AI coding agent inside it, resumes the last session, and auto-tiles every window into a grid across all your screens. One command does it all.

Not the MAgent multi-agent reinforcement-learning library: mAgent is a developer CLI for running AI coding agents.

$pip install magent-multi-ai-agents-manager
full install guide
you type exactly one command
$magent --go▍
✓ 2 monitors detected · grid 2×2 per screen
⏵ launching 8 windows · resuming sessions · tiling in physical pixels…
md: api✻ claude[+]
✻ Claude Code
~/projects/api · --continue
⏺ Refactoring routes/user.py…
> ▍
md: web✻ claude[!]
✻ Claude Code
Edit src/nav.tsx?
❯ 1. Yes  2. Yes, allow all
  3. No, tell Claude what to do
md: worker▌ codex[+]
▌ OpenAI Codex
model gpt-5-codex · sandbox
• Ran pytest — 42 passed
• Writing queue/consumer.py…
md: docs⧉ vs code[·]
⎇ mainVS Code
Monitor 1 · 4K @ 250% · 2×2
md: ops▮ cursor[+]
▮ cursor-agent
~/projects/ops
→ Applying terraform plan…
✓ 3 resources updated
md: infra▌ codex[x]
▌ OpenAI Codex
• docker build .
✗ exit 1 — missing base image
taskbar flashing · ntfy sent
md: auth✻ claude[+]
✻ Claude Code
~/projects/auth · --continue
⏺ Session resumed (2h ago)
✻ Thinking…
md: mobile▮ cursor[·]
⌘K agentCursor
Monitor 2 · 4K @ 250% · 2×2
[+] working / done[!] needs input[x] error[·] idle
// the real feature: momentum

Procrastination dies when your desk sets itself back up.

The hardest part of deep work is re-entry — reopening projects, hunting for windows, remembering where every conversation left off. mAgent restores the whole workspace exactly as it was, and resumes your latest Claude and Codex conversations mid-thought. You don’t start over. You just keep going.

[+] claude --continue · codex resume — per window, automatically
[+] same grid every time — muscle memory just works
[+] zero clicks between sitting down and shipping
how to resume a Claude Code session after a restart →
friday · 18:42 — closed everything mid-task⏻
↓  monday · 09:01  ·  $ magent --go
restoring workspace…
✓ layout restored — 2 monitors · 2×2
✻ claude  md:api    resumed “refactor routes” (14h ago)
✻ claude  md:web    resumed “fix nav overflow” (14h ago)
▌ codex   md:worker resumed “queue consumer” (15h ago)
▮ cursor  md:ops    launched — fresh session (no resume)
⧉ vscode  md:docs   reopened last workspace
same grid · same conversations · you, already working
// what it does

A whole fleet of agents, run like one workspace.

[+]

Auto-tile across every monitor

DPI-aware grid math places every window in true physical pixels — 4K at 250%, 1080p at 175%, all at once. Columns × rows per screen, no window left overlapping.

[!]

Know which agent needs you

On Windows the attention daemon badges window titles with live state, flashes the taskbar on needs-input, and raises a desktop toast; everywhere, it can push to your phone. A quiet title means nothing needs you.

[↑]

Control it from your phone

Over Tailscale, upload a screenshot from your phone and monitor every agent from your browser — bound to loopback + your tailnet only, never the open LAN. On Windows it drops straight into the project's session.

[*]

Brings your own tools

Claude Code, Codex, Cursor Agent, Antigravity, VS Code, Cursor — or map any name to any shell command. Claude Code and Codex resume their last conversation automatically.

[⇄]

Persistent sessions over SSH

On Windows, psmux keeps each project in a named session that survives disconnects. Attach from another PC, a second terminal, or SSH in from your phone and pick up exactly where you left off.

[=]

One config, generated for you

First run scans your Claude, Codex, and VS Code history, finds your recent projects, and writes a config. Group projects, override per-window tools, add remote hosts — then just run it.

// magent watch

Your fleet, most-urgent first.

One live table of every agent session. States come from your agents’ own lifecycle hooks — working, needs-input, done, error. Press a row number to jump straight to that window (Windows).

[+] exit 0 · healthy
[!] exit 3 · degraded, surfaced loudly
[i] status --json for scripts & CI
$ magent watch↻ live
#projecttoolstate
1webclaudeneeds-input
2infracodexerror
3apiclaudeworking
4workercodexdone
5opscursoridle
press [1–5] to focus · [q] quit
// magent attach · happy

Your whole deck, from anywhere.

On Windows, sessions live in psmux, so they survive you walking away. SSH in from any client and pick a project off the session list — or pair Happy for end-to-end-encrypted control of your Claude and Codex sessions from a browser or phone. All of it over Tailscale, never the open LAN.

[⇄] psmux attach -t <project> — from any SSH client
[+] Happy — steer agents from your phone, e2e encrypted
[↑] screenshots upload from your phone — into the focused session on Windows
md: api [+]
md: web [!]
md: infra [x]
md: ops [+]
your desk — sessions stay alive
ssh · tailscale
tailnet-only bind · e2e
21:47tailnet ●
$ magent sessions
md:apiworking
md:webneeds-input
md:infraerror
⏎ attach — switching between projects…
✻ claude · md:api
⏺ Refactoring routes/user.py…
> ▍
✻ claude · md:web
❯ Edit src/nav.tsx? 1. Yes
answered from the train ✓
▌ codex · md:infra
✗ exit 1 — missing base image
> fix the Dockerfile base tag
any phone — any SSH client, or Happy
// the honest contract

Runs everywhere. Fullest on Windows.

Launching, tiling, and the mobile/notification plumbing run on all three OSes. A few power-user features lean on Win32 primitives with no cross-platform equivalent yet — every cell here is derived from the real capability probes, not aspiration.

FeatureWindowsmacOSLinux
Launch + auto-tile across monitorsyesyesyes
watch live fleet tableyesyesyes
Title badges + taskbar flashyes——
Desktop toastyes——
ntfy phone pushyesyesyes
Persistent psmux sessionsyes——
Global Alt+V clipboard hotkeyyes——
Mobile upload serveryesyesyes
Monitors
ctypes · Swift/AppKit · xrandr
Windows
EnumWindows · AppleScript · xdotool
Terminal
WT · kitty/iTerm · gnome-terminal
DPI
Per-Monitor V2 · Retina · xrandr
// faq

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

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.

still have questions? ask in our Discord →

// get started

Two minutes to a tiled workspace.

Install, then run magent once to scan and configure. Run it again to launch everything.

pip install magent-multi-ai-agents-manager
$ magent
                         _
 _ __  __ _ __ _ ___ _ _| |_
| '  \/ _` / _` / -_) ' \  _|
|_|_|_\__,_\__, \___|_||_\__|
           |___/
  v3.20.0  auto-tile your AI workspace

  ----------------------------------------

   1   Launch & tile new windows  (default)
   2   Re-tile all open windows
   3   Launch a group  AUTOMATIONS | INTERNAL | LEAD-GEN
   e   Edit config
   q   Quit

Or skip the menu: magent --go launches and tiles, -g <group> launches one group, doctor diagnoses your environment.

step-by-step install guide