/yellow-devin:devin:devin:setupfrom yellow-devin
Validate Devin V3 credentials and permissions. Use when first installing the plugin, after rotating the service user token, or when other commands return 401 or 403 errors.
Ships in yellow-devin. Installing the plugin adds it to Claude Code.
Validate that DEVIN_SERVICE_USER_TOKEN and DEVIN_ORG_ID are correctly set,
then verify permissions with live API calls (required org-scoped and optional
enterprise-scoped).
Run all prerequisite checks in a single Bash call:
printf '=== Prerequisites ===\n'
command -v curl >/dev/null 2>&1 && printf 'curl: ok\n' || printf 'curl: NOT FOUND\n'
command -v jq >/dev/null 2>&1 && printf 'jq: ok\n' || printf 'jq: NOT FOUND\n'
printf '\n=== Credentials ===\n'
# Duplication note: has_userconfig() is intentionally copy-pasted into
# all.md, devin/setup.md, research/setup.md, and semgrep/setup.md — no
# shared-sourceable lib infrastructure exists for command-embedded bash.
# The function is tiny and identical across copies; divergence cost is low.
# Tracked for future centralization; do not extract to a shared lib in this PR.
#
# 2-arg has_userconfig: identical copies live in the research, devin and
# semgrep setup commands (tests/has-userconfig.bats in yellow-research fails
# on drift) — if you change one, change all copies (search for
# "has_userconfig()" across plugins/). The no-jq fallback matches the plugin id with
# `grep -qF` (fixed-string) and requires a non-empty string value for the option
# (`grep -qE`), like the jq path; the jq path is preferred and path-scoped.
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
if [ -n "${DEVIN_SERVICE_USER_TOKEN:-}" ]; then
TOKEN_SRC=shell
printf '%-28s set (shell env)\n' 'DEVIN_SERVICE_USER_TOKEN:'
elif has_userconfig yellow-devin devin_service_user_token; then
TOKEN_SRC=userconfig
printf '%-28s set (userConfig, keychain)\n' 'DEVIN_SERVICE_USER_TOKEN:'
else
TOKEN_SRC=none
printf '%-28s NOT SET\n' 'DEVIN_SERVICE_USER_TOKEN:'
fi
if [ -n "${DEVIN_ORG_ID:-}" ]; then
ORG_SRC=shell
printf '%-28s set (shell env)\n' 'DEVIN_ORG_ID:'
elif has_userconfig yellow-devin devin_org_id; then
ORG_SRC=userconfig
printf '%-28s set (userConfig)\n' 'DEVIN_ORG_ID:'
else
ORG_SRC=none
printf '%-28s NOT SET\n' 'DEVIN_ORG_ID:'
fi
# Dual-source drift warnings: /devin:* commands invoke curl with shell env.
# If only userConfig is set, Claude Code prompted for the credential at plugin
# enable and stored it in the keychain, but the curl commands will fail
# because they read shell env vars which are empty.
if [ "$TOKEN_SRC" = userconfig ] && [ -z "${DEVIN_SERVICE_USER_TOKEN:-}" ]; then
printf '\nWARNING: userConfig is set but shell DEVIN_SERVICE_USER_TOKEN is unset.\n'
printf ' /devin:* commands use curl directly and will return 401 until\n'
printf ' you also add:\n'
printf ' export DEVIN_SERVICE_USER_TOKEN="<your-cog-token>"\n'
printf ' to ~/.zshrc or ~/.bashrc.\n'
fi
if [ "$ORG_SRC" = userconfig ] && [ -z "${DEVIN_ORG_ID:-}" ]; then
printf '\nWARNING: userConfig is set but shell DEVIN_ORG_ID is unset.\n'
printf ' /devin:* commands use curl directly and will fail until\n'
printf ' you also add:\n'
printf ' export DEVIN_ORG_ID="<your-org-id>"\n'
printf ' to ~/.zshrc or ~/.bashrc.\n'
fi
If any of the following are true, report all that apply and stop (do not continue to Step 2):
curl not found: "curl is required. Install via your system package manager."jq not found: "jq is required. Install from jqlang.github.io"DEVIN_SERVICE_USER_TOKEN:
show the Setup Instructions block below.DEVIN_ORG_ID: show the
Setup Instructions block below.Note: shell env vars take precedence over userConfig for command invocations
(curl calls in Steps 3-4 read $DEVIN_SERVICE_USER_TOKEN and $DEVIN_ORG_ID
directly). Configuring userConfig alone is sufficient for Claude Code to prompt
the user at plugin-enable time and prevents the "missing env var" failure on
fresh installs. When only userConfig is present (no shell env var), Step 2
skips shell-side format validation (format was already validated at plugin
enable) and Steps 3-4 skip the live API curl probes (MCP tool visibility is
the credential validation signal instead). Users who want curl-based probes
must also export the shell env var.
If all pass, continue to Step 2.
TOKEN_SRC and ORG_SRC are shell-local variables set in the Step 1 block.
Each bash block runs in a fresh subprocess, so by default these
variables will be unset here. Run Steps 1 and 2 in the same Bash
invocation so the source classification carries over. If you must split
them (e.g., re-running Step 2 after fixing a credential), re-detect the
source by repeating the Step 1 logic at the top of the Step 2 block.
# Re-define has_userconfig() in case Step 2 runs in a fresh Bash subprocess
# separate from Step 1 — each Bash tool call is a new shell, and the function
# definition from Step 1 does not survive across blocks. Mirror of the
# canonical definition above; if you change one, change all copies.
has_userconfig() {
# Sensitive userConfig values live under .pluginSecrets in the credentials
# store (~/.claude/.credentials.json on Linux; the macOS keychain is not
# readable here). Non-sensitive ones live under .pluginConfigs[].options in
# settings.json. Both are keyed by plugin id ("<name>@yellow-plugins");
# other marketplaces' entries for the same name are ignored.
# Presence only: the value is never printed.
local plugin="$1" option="$2" file jq_exit
local config_dir="${CLAUDE_CONFIG_DIR:-$HOME/.claude}" have_jq=1
if ! command -v jq >/dev/null 2>&1; then
have_jq=0
printf '[has_userconfig] Warning: jq not installed; using grep fallback (may produce false positives)\n' >&2
fi
for file in "$config_dir/.credentials.json" "$config_dir/settings.json"; do
[ -r "$file" ] || continue
if [ "$have_jq" -eq 1 ]; then
jq -e --arg p "$plugin" --arg o "$option" '
[ (.pluginSecrets // {} | to_entries[]),
(.pluginConfigs // {} | to_entries[] | .value |= (.options // {})) ]
| map(select((.key == $p or .key == $p + "@yellow-plugins")
and (.value | type) == "object")
| .value[$o] // empty | select(. != ""))
| length > 0' "$file" >/dev/null 2>&1
jq_exit=$?
# 1 = key absent; 4 = no output (empty file). 2, 3 and 5 are real
# errors: say so instead of reporting a configured key as NOT SET.
case "$jq_exit" in
0) return 0 ;;
1|4) ;;
*) printf '[has_userconfig] Warning: jq could not parse %s (exit %d)\n' \
"$file" "$jq_exit" >&2 ;;
esac
else
# Flatten newlines, then require the option inside the same plugin object.
tr -d '\n\r' < "$file" 2>/dev/null \
| grep -qE "\"($plugin|$plugin@yellow-plugins)\"[[:space:]]*:[[:space:]]*\{[^{}]*(\"options\"[[:space:]]*:[[:space:]]*\{[^{}]*)?\"$option\"[[:space:]]*:[[:space:]]*\"[^\"]" 2>/dev/null && return 0
fi
done
return 1
}
# Re-detect TOKEN_SRC / ORG_SRC if they were not carried from Step 1.
# Sentinel "unknown" disambiguates "missing" from a legitimate "shell"/"userconfig"
# detection result, so the validator can produce a precise diagnostic instead
# of falsely reporting "format invalid" on an empty shell var.
TOKEN_SRC="${TOKEN_SRC:-unknown}"
ORG_SRC="${ORG_SRC:-unknown}"
if [ "$TOKEN_SRC" = unknown ]; then
if [ -n "${DEVIN_SERVICE_USER_TOKEN:-}" ]; then
TOKEN_SRC=shell
elif has_userconfig yellow-devin devin_service_user_token; then
TOKEN_SRC=userconfig
else
printf 'ERROR: TOKEN_SRC could not be re-detected and no credential source found.\n' >&2
printf ' Run Steps 1 and 2 in the same Bash invocation, or set\n' >&2
printf ' DEVIN_SERVICE_USER_TOKEN in your shell first.\n' >&2
exit 1
fi
fi
if [ "$ORG_SRC" = unknown ]; then
if [ -n "${DEVIN_ORG_ID:-}" ]; then
ORG_SRC=shell
elif has_userconfig yellow-devin devin_org_id; then
ORG_SRC=userconfig
else
ORG_SRC=none
fi
fi
if [ "$TOKEN_SRC" = shell ]; then
token="${DEVIN_SERVICE_USER_TOKEN:-}"
if printf '%s' "$token" | grep -qE '^apk_'; then
printf 'ERROR: V1 API key detected (apk_ prefix).\n'
printf 'V3 requires a service user token (cog_ prefix).\n'
printf 'Migration:\n'
printf ' 1. Go to Enterprise Settings > Service Users\n'
printf ' 2. Create a new service user with UseDevinSessions + ViewOrgSessions + ManageOrgSessions\n'
printf ' 3. export DEVIN_SERVICE_USER_TOKEN="cog_your_new_token"\n'
printf ' 4. Remove the old DEVIN_API_TOKEN export\n'
exit 1
fi
if ! printf '%s' "$token" | grep -qE '^cog_[a-zA-Z0-9_-]{20,128}$'; then
printf 'ERROR: DEVIN_SERVICE_USER_TOKEN format invalid.\n'
printf 'Expected: cog_ followed by 20-128 alphanumeric/dash/underscore characters.\n'
printf 'Check Enterprise Settings > Service Users for the correct token.\n'
exit 1
fi
printf '%-18s valid (cog_ prefix confirmed, length ok)\n' 'Token format:'
elif [ "$TOKEN_SRC" = userconfig ]; then
# Format was validated at plugin enable time (keychain).
# Shell var is empty — skip shell-side format check to avoid false "format invalid".
printf '%-18s stored in userConfig (Claude Code keychain) — format already validated\n' \
'DEVIN_SERVICE_USER_TOKEN:'
printf '%-18s at plugin enable. Skipping shell-side format check.\n' ''
else
# TOKEN_SRC=none — credential is missing entirely. Step 1's stop
# condition is a prose instruction; this branch enforces it in Bash so
# an LLM that ran Steps 1+2 in the same invocation can't fall through
# and print a false "stored in userConfig" message.
printf 'ERROR: DEVIN_SERVICE_USER_TOKEN is not set in the shell or in userConfig.\n' >&2
printf ' Configure it via one of:\n' >&2
printf ' - /plugin disable yellow-devin && /plugin enable yellow-devin (answer the userConfig prompt)\n' >&2
printf ' - export DEVIN_SERVICE_USER_TOKEN="cog_..." in ~/.zshrc or ~/.bashrc\n' >&2
printf ' See the Setup Instructions block at the bottom of this command for full details.\n' >&2
exit 1
fi
Never echo the token value in any output. Only describe format mismatches.
If the Bash call exits non-zero (apk_ detected or invalid cog_ format), stop here — display the error message above and do not proceed to Step 3.
Then validate DEVIN_ORG_ID in the same Bash call (so ORG_SRC is in scope):
if [ "$ORG_SRC" = shell ]; then
org="${DEVIN_ORG_ID:-}"
if ! printf '%s' "$org" | grep -qE '^[a-zA-Z0-9_-]{4,64}$'; then
printf 'ERROR: DEVIN_ORG_ID format invalid.\n'
printf 'Expected: 4-64 alphanumeric/dash/underscore characters.\n'
printf 'Find your Org ID at Enterprise Settings > Organizations.\n'
exit 1
fi
printf '%-18s valid (%s)\n' 'Org ID format:' "$org"
elif [ "$ORG_SRC" = userconfig ]; then
# Stored in keychain, shell var is empty — skip format check.
printf '%-18s stored in userConfig (Claude Code keychain) — skipping shell-side format check.\n' \
'DEVIN_ORG_ID:'
else
# ORG_SRC=none — credential is missing entirely. Same enforcement as
# the TOKEN_SRC=none branch above; prevents an LLM that proceeded past
# Step 1's stop condition from printing a false "stored in userConfig"
# message for a credential that does not exist.
printf 'ERROR: DEVIN_ORG_ID is not set in the shell or in userConfig.\n' >&2
printf ' Configure it via one of:\n' >&2
printf ' - /plugin disable yellow-devin && /plugin enable yellow-devin (answer the userConfig prompt)\n' >&2
printf ' - export DEVIN_ORG_ID="..." in ~/.zshrc or ~/.bashrc\n' >&2
printf ' See the Setup Instructions block at the bottom of this command for full details.\n' >&2
exit 1
fi
If the Bash call exits non-zero (invalid org ID format), stop here — display the error message above and do not proceed to Step 3.
Skip guard: If either TOKEN_SRC or ORG_SRC was userconfig in Step 1
(that shell env var is unset), skip Steps 3–4 entirely and proceed to Step 5:
the curl probes need both values in the shell. Print: "Skipping live API
probes — a credential is in userConfig only (no shell env var). MCP tool
visibility is the credential validation signal. To enable curl-based
permission probes, also export DEVIN_SERVICE_USER_TOKEN and
DEVIN_ORG_ID in your shell profile." Record all permissions as UNKNOWN in the
Step 5 table.
Probe the org-scoped API to check ViewOrgSessions (list) and
ManageOrgSessions (message).
# Bash-level enforcement of the userConfig-only skip guard described above.
# Without this, the prose instruction is the only thing keeping the curl
# call from running with an empty credential when either one is
# userConfig-only (empty token → misleading 401, empty org ID → 404).
if [ -z "${DEVIN_SERVICE_USER_TOKEN:-}" ] || [ -z "${DEVIN_ORG_ID:-}" ]; then
printf '\n=== Permission Checks ===\n'
printf 'Skipping live API probes — a credential is in userConfig only (no shell env var).\n'
printf 'MCP tool visibility is the credential validation signal in this mode.\n'
printf 'To enable curl-based permission probes, also add to ~/.zshrc or ~/.bashrc:\n'
printf ' export DEVIN_SERVICE_USER_TOKEN="<your-cog-token>"\n'
printf ' export DEVIN_ORG_ID="<your-org-id>"\n'
PROBE_VIEW_ORG=UNKNOWN
PROBE_MANAGE_ORG=UNKNOWN
PROBE_VIEW_ACCOUNT=UNKNOWN
exit 0
fi
DEVIN_API_BASE="https://api.devin.ai/v3"
ORG_URL="${DEVIN_API_BASE}/organizations/${DEVIN_ORG_ID}"
printf '\n=== Permission Checks ===\n'
printf 'Probing ViewOrgSessions (list)...\n'
response=$(curl -s --connect-timeout 5 --max-time 10 \
-w "\n%{http_code}" \
-X GET "${ORG_URL}/sessions?first=1" \
-H "Authorization: Bearer ${DEVIN_SERVICE_USER_TOKEN}")
curl_exit=$?
http_status=${response##*$'\n'}
body=${response%$'\n'*}
Outcome mapping:
ViewOrgSessions confirmed. Record as PASS. Verify response
uses items array (not sessions).ViewOrgSessions as MISSING. Continue to collect all
permission failures before reporting.printf '%s' "$body" | sed 's/\(cog\|apk\)_[a-zA-Z0-9_-]*/***REDACTED***/g' | head -c 200
Stop.All error output must sanitize tokens:
sed 's/\(cog\|apk\)_[a-zA-Z0-9_-]*/***REDACTED***/g'
Never use curl -v, --trace, or --trace-ascii — they leak auth headers.
If Step 3 returned HTTP 403 (ViewOrgSessions MISSING), skip this step — ManageOrgSessions requires ViewOrgSessions as a prerequisite.
If Step 3 returned HTTP 200 (ViewOrgSessions PASS), probe ManageOrgSessions by POSTing a message to a known-invalid session ID. The API checks permissions before resource existence, so 403 means the permission is missing while 404/422 means it's present (the session doesn't exist but the permission check passed).
DEVIN_API_BASE="https://api.devin.ai/v3"
ORG_URL="${DEVIN_API_BASE}/organizations/${DEVIN_ORG_ID}"
# Probe ManageOrgSessions by sending to a dummy session ID
# Note: Devin API (FastAPI) checks RBAC before resource existence — empirically
# validated as of 2026-03. This is undocumented behavior; if probe returns
# unexpected results, the "Other" outcome treats them as UNKNOWN.
printf 'Probing ManageOrgSessions (message)...\n'
dummy_session="00000000000000000000000000000000"
response=$(jq -n --arg msg "probe" '{message: $msg}' | \
curl -s --connect-timeout 5 --max-time 10 \
-w "\n%{http_code}" \
-X POST "${ORG_URL}/sessions/${dummy_session}/messages" \
-H "Authorization: Bearer ${DEVIN_SERVICE_USER_TOKEN}" \
-H "Content-Type: application/json" \
-d @-)
curl_exit=$?
http_status=${response##*$'\n'}
body=${response%$'\n'*}
Outcome mapping:
ManageOrgSessions confirmed (PASS). The session doesn't
exist but the permission check passed.ManageOrgSessions as MISSING. Continue to collect all
permission failures before reporting.printf '%s' "$body" | sed 's/\(cog\|apk\)_[a-zA-Z0-9_-]*/***REDACTED***/g' | head -c 200
Continue to Step 4.Make a read-only call to the enterprise sessions endpoint. This permission is optional — the plugin works without it (org-scoped messaging is preferred).
DEVIN_API_BASE="https://api.devin.ai/v3"
printf 'Probing ViewAccountSessions (enterprise list)...\n'
org_param=$(jq -rn --arg o "${DEVIN_ORG_ID}" '@uri "\($o)"')
if [ $? -ne 0 ] || [ -z "$org_param" ]; then
printf 'ERROR: jq failed — cannot URL-encode DEVIN_ORG_ID. Ensure jq is installed.\n'
exit 1
fi
response=$(curl -s --connect-timeout 5 --max-time 10 \
-w "\n%{http_code}" \
-X GET "${DEVIN_API_BASE}/enterprise/sessions?org_ids=${org_param}&first=1" \
-H "Authorization: Bearer ${DEVIN_SERVICE_USER_TOKEN}")
curl_exit=$?
http_status=${response##*$'\n'}
body=${response%$'\n'*}
Outcome mapping:
ViewAccountSessions confirmed).
Record as PASS.ViewAccountSessions as MISSING. Continue to Step 5.
This is not a critical failure — org-scoped messaging works without it.Collect results from Steps 3, 3b, and 4 and display a unified status table:
Devin V3 Setup Check
====================
Prerequisites
curl OK
jq OK
Credentials
DEVIN_SERVICE_USER_TOKEN OK (cog_ format confirmed, token not echoed)
DEVIN_ORG_ID OK ([DEVIN_ORG_ID value])
Permissions (required — org-scoped)
ViewOrgSessions (list) [OK | MISSING]
ManageOrgSessions (message) [OK | MISSING | UNKNOWN]
Permissions (optional — enterprise-scoped)
ViewAccountSessions [OK | MISSING]
Overall: [PASS | PARTIAL | FAIL]
Note: UseDevinSessions (create) cannot be probed non-destructively. If
the list endpoint (ViewOrgSessions) passes, create is typically also granted. If
session creation later fails with 403, the user should verify this permission.
If ViewOrgSessions is MISSING, display:
Required permission ViewOrgSessions is missing.
To fix:
1. Go to Enterprise Settings > Service Users in the Devin web app
2. Select your service user
3. Grant these org-scoped permissions:
UseDevinSessions — Create sessions
ViewOrgSessions — List and get sessions
ManageOrgSessions — Send messages, terminate, archive
4. Re-run /devin:setup to verify
If ViewOrgSessions is OK but ManageOrgSessions is MISSING, display:
Overall: PARTIAL PASS
ManageOrgSessions is missing — session messaging, cancellation, and archival
will fail with 403. Session listing and creation work normally.
A PR comment fallback is available: review feedback can be posted as GitHub PR
comments with @devin prefix instead of using the API message endpoint.
To fix:
1. Go to Enterprise Settings > Service Users in the Devin web app
2. Select your service user
3. Grant: ManageOrgSessions — Send messages, terminate, archive
4. Re-run /devin:setup to verify
If ViewOrgSessions is OK but ViewAccountSessions is MISSING, display:
Overall: PARTIAL PASS
ViewAccountSessions is missing — enterprise-scope session listing unavailable.
Org-scoped messaging (the primary path) will still work as normal.
Note: ManageAccountSessions (enterprise-scope messaging) cannot be probed
non-destructively. If enterprise messaging fails with 403 later, grant it at
Enterprise Settings > Service Users.
To enable enterprise-scope features:
1. Go to Enterprise Settings > Service Users
2. Grant: ViewAccountSessions — Enterprise-scope session listing
3. Grant: ManageAccountSessions — Enterprise-scope messaging (optional)
4. Re-run /devin:setup to verify
If all checks pass, display:
All checks passed. The yellow-devin plugin is ready to use.
Next steps:
/devin:delegate — Delegate a task to Devin
/devin:status — List recent sessions
/devin:wiki — Query repository documentation
Then ask via AskUserQuestion: "What would you like to do next?" with options:
/devin:delegate, /devin:status, /devin:wiki, Done.
Show this block when DEVIN_SERVICE_USER_TOKEN or DEVIN_ORG_ID is not set:
DEVIN_SERVICE_USER_TOKEN and/or DEVIN_ORG_ID are not set.
To configure:
1. Create a service user:
Enterprise Settings > Service Users > Create new user
Required permissions:
- UseDevinSessions
- ViewOrgSessions
- ManageOrgSessions
Optional permissions:
- ViewAccountSessions
- ManageAccountSessions
Token format: cog_<...>
2. Find your Org ID:
Enterprise Settings > Organizations
3. Add to your shell profile (~/.zshrc or ~/.bashrc):
export DEVIN_SERVICE_USER_TOKEN="cog_your_token_here"
export DEVIN_ORG_ID="your-org-id"
4. Reload your shell profile:
source ~/.zshrc (or ~/.bashrc)
5. Restart Claude Code and re-run /devin:setup
Never commit tokens to version control.
| Error | Message | Action |
|---|---|---|
curl not found | "curl is required. Install via system package manager." | Stop |
jq not found | "jq is required. Install from jqlang.github.io" | Stop |
| Token not set | Show Setup Instructions block | Stop |
| Org ID not set | Show Setup Instructions block | Stop |
apk_ token detected | Show V1→V3 migration steps | Stop |
| Token format invalid | "Expected: cog_ + 20-128 alphanumeric/dash/underscore chars" | Stop |
| Org ID format invalid | "Expected: 4-64 alphanumeric/dash/underscore chars" | Stop |
| curl exit 6 | "Could not resolve api.devin.ai — check DNS/internet" | Stop |
| curl exit 7 | "Could not connect to Devin API" | Stop |
| curl exit 28 | "Request timed out" | Stop |
| curl exit other | "Network error (curl exit N)" | Stop |
| HTTP 401 | "Token rejected. Rotate at Enterprise Settings > Service Users." | Stop |
| HTTP 403 | Record permission as MISSING, continue to next check | Collect |
| HTTP 404 | "Org not found. Verify DEVIN_ORG_ID." | Stop |
| HTTP 404/422 (Step 3b) | ManageOrgSessions confirmed (permission present) | Record PASS |
| HTTP 5xx | "Devin API server error. Try again later." | Stop |
| Other HTTP status | "Unexpected HTTP status N." + redacted body preview | Stop |
| jq exit non-zero (Step 4) | "jq failed — cannot URL-encode DEVIN_ORG_ID." | Stop |
See devin-workflows skill for token sanitization patterns and curl error
handling conventions.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Other plugins' commands for the same job
9 commands in this plugin
/devin:devin:archivedevin:archiveArchive a Devin session. Use when user wants to clean up old sessions, says "archive session", "hide session", or "clean up Devin sessions"./devin:devin:canceldevin:cancelTerminate a running Devin session. Use when user wants to stop a session, says "cancel Devin", "stop the session", or "kill that task"./devin:devin:delegatedevin:delegatenpx claudepluginhub kinginyellows/yellow-plugins --plugin yellow-devin