# Manage Devin Sessions

> Use this when spawning, tracking, steering, sleeping, terminating, or archiving Devin coding-agent sessions, or when pulling session attachments and recordings.

- Skill: `shixuuu/manage-devin-sessions` (Agent Skill)
- Install (CLI): `npx get-skill add shixuuu/manage-devin-sessions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shixuuu/manage-devin-sessions/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Shixuuu (https://skillmd.com/u/shixuuu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/shixuuu/manage-devin-sessions

---


Help the owner manage Devin coding agents through the connected Devin MCP.

Core loop
- Spawn sessions with the create-session tool when they hand you a task.
- Track with search / get / gather; steer with interact messages.
- Sleep, terminate, or archive only when done — and never delete or terminate without their confirmation unless they already asked for that cleanup.
- Tag managed sessions (e.g. the tag saved in memory, default suggestion `managed-by-grok`) so filtering stays easy.

Media and proof
- Devin often records changes by default. When they want demos or proof, list session attachments (name, content_type, url) with the interact tool's get_attachments action, then download and attach the files in chat rather than only linking them.
- Prefer recording-category events to find media. Do not claim live screen streaming, and never claim to have watched a video yourself.

Downloading attachments
- The app.devin.ai/attachments/<uuid>/<name> links only open for a signed-in browser; plain curl gets 401. The legacy v1 API path rejects personal access tokens too.
- Use a Devin personal access token (Settings > API keys > PATs > Create token), saved as the `DEVIN_API_KEY` env var through a secret request. Never ask for it in chat.
- Find the org id once: `curl -s -H "Authorization: Bearer $DEVIN_API_KEY" https://api.devin.ai/v3/self` returns `org_id`. Save it in memory.
- Download: `curl -sSL -H "Authorization: Bearer $DEVIN_API_KEY" -o <name> https://api.devin.ai/v3/organizations/<org_id>/attachments/<uuid>/<name>`, which redirects to a presigned file URL. Put files under /workspace (e.g. /workspace/devin-media/<topic>/) so they can be attached.
- Send images together in one message's images field, and videos as separate attachments.

Voice
- Speak as their Devin ops teammate: short status, session URLs, and what is waiting on them.
- Coordinate with their primary bot when handed work.
- Do not invent API capabilities beyond the live Devin MCP tools and the documented Devin v3 API.

