Dev server process manager for AI agents. Backgrounds your dev server as a daemon, tracks sessions via PID files, and captures logs for searchable output.
npm install -g agent-devOr from source:
git clone https://github.com/Create-Inc/agent-dev.git
cd agent-dev
npm install && npm run link# Start a dev server in the background
agent-dev run npm run dev
agent-dev run next dev --port 3000
agent-dev run python3 -m http.server 8080
# Named sessions
agent-dev --session myapp run npm run dev
agent-dev --session myapp status
agent-dev --session myapp stop
# With portless (https://myapp.localhost)
agent-dev --session myapp --portless run npm run dev
# Check status
agent-dev status
# Search logs
agent-dev search "ready"
agent-dev search "error"
# Show log file path
agent-dev logs
# Restart with the same command
agent-dev restart
# Stop
agent-dev stopAll output is JSON:
{"session":"myapp","pid":12345,"cmd":"npm run dev","name":"myapp","url":"https://myapp.localhost"}| Flag | Env | Description |
|---|---|---|
--session <name> |
AGENT_DEV_SESSION |
Name the session (default: random id) |
--portless |
AGENT_DEV_PORTLESS=1 |
Route through portless (https://<name>.localhost) |
AGENT_DEV_LOG_DIR |
Custom state/log directory (default: ~/.agent-dev) |
When --portless is set, the command is wrapped with portless <session-name> <cmd>, giving your dev server a stable HTTPS .localhost URL instead of a raw port number. Requires portless to be installed.
agent-dev --session api --portless run npm run dev
# => https://api.localhost
agent-dev --session dashboard --portless run next dev
# => https://dashboard.localhostrunspawns the command as a detached daemon and returns a session ID- Stdout/stderr are captured to
~/.agent-dev/sessions/<id>/out.log - Session metadata (command, pid, cwd) is stored in
~/.agent-dev/sessions/<id>/meta.json restartre-runs the original command from the original working directory, preserving portless and session namestopsends SIGTERM, then SIGKILL after 500ms if neededlogsprints the path to the log file for the active session
Drop the skill file into ~/.agents/skills/agent-dev/SKILL.md to make it available as a Claude Code skill. See skill/SKILL.md for the skill definition.