Agent skill

Agent Management

by grandamenium in grandamenium/cortextos

You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn…

MITAuto-check: notesProductivity & Automation

Install Agent Management

skills CLI
$ npx skills add grandamenium/cortextos --skill agent-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install grandamenium/cortextos agent-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/grandamenium/cortextos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/community/skills/agent-management .claude/skills/agent-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-management
GitHub stars
101
Token cost
~4.2k tokens
SKILL.md length
1,083 words
Files
1
Skills in repo
55
Repo updated
First seen
Licence
MIT

At a glance

You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn…

  • Works in 10 steps: Creating a New Agent → Restarting Agents → Changing Agent Model → …
  • Tasks that involve Chatbots and conversational support
  • SKILL.md covers CRITICAL RULES, 1. Creating a New Agent, 2. Restarting Agents and 3. Changing Agent Model, plus 5 more sections
  • Calls node and curl; reaches api.telegram.org; needs BOT_TOKEN and THEIR_BOT_TOKEN

What it does

Agent Management is an agent skill from grandamenium/cortextos. You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn an agent for another user, manage PM2 process management, reset crash limits, or do anything that touches an agent's lifecycle, configuration, or credentials. This is the definitive guide for every agent operation in cortextOS.

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Chatbots and conversational support. It works with Telegram. The licence is MIT.

When your agent uses it

  • Tasks that involve Chatbots and conversational support

Example prompts

  • “/agent-management”

Requirements

  • A credential in BOT_TOKEN
  • A credential in THEIR_BOT_TOKEN

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Creating a New Agent
  2. Restarting Agents
  3. Changing Agent Model
  4. Managing Bot Tokens
  5. Managing .env Files
  6. Managing Crons
  7. Enabling / Disabling Agents
  8. Health Checks
  9. Crash Recovery
  10. Troubleshooting

What it can do on your machine

Read from SKILL.md and the folder at commit 6f93838. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.telegram.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • BOT_TOKEN
    • THEIR_BOT_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Management loads about 4.2k tokens when it runs. Until then it costs about 110 tokens; SKILL.md has 1,083 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:4
    ard", "setup agent", "configure agent", ".env", "config.json", "pm2", "ecosystem.config", "cross-org", "agent for someon
  • NoteMentions a .env fileSKILL.md:16
    LI.** Never manually edit state files or .env without using the proper command.
  • NoteMentions a .env fileSKILL.md:17
    2. **ALWAYS create .env before enabling.** An agent without .env will inherit parent credentials (the Becky bug).
  • NoteMentions a .env fileSKILL.md:81
    # Step 5: Write .env (CRITICAL - do this BEFORE cortextos enable)
  • NoteMentions a .env fileSKILL.md:82
    MEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env" << EOF
  • NoteMentions a .env fileSKILL.md:87
    MEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env"
  • NoteMentions a .env fileSKILL.md:118
    # Step 2: Write THEIR .env (CRITICAL - must be THEIR credentials)
  • NoteMentions a .env fileSKILL.md:119
    MEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env" << EOF
  • NoteMentions a .env fileSKILL.md:124
    MEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env"
  • NoteMentions a .env fileSKILL.md:130
    essages come to you instead of them, the .env has wrong CHAT_ID

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from grandamenium/cortextos at commit 6f93838, republished under its MIT licence (© grandamenium). 1,083 words, ~4,159 tokens.

Download SKILL.mdSave it as .claude/skills/agent-management/SKILL.md (or your agent's skills folder).
name
agent-management
description
You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn an agent for another user, manage PM2 process management, reset crash limits, or do anything that touches an agent's lifecycle, configuration, or credentials. This is the definitive guide for every agent operation in cortextOS.
triggers
new agent, create agent, spawn agent, add agent, restart, soft restart, hard restart, disable agent, enable agent, change model, switch model, bot token…
external_calls
api.telegram.org

Agent Management

The definitive guide for managing cortextOS agent lifecycle. Every operation, every script, every protocol. Follow these EXACTLY - do not improvise.


CRITICAL RULES

  1. ALWAYS use the CLI. Never manually edit state files or .env without using the proper command.
  2. ALWAYS create .env before enabling. An agent without .env will inherit parent credentials (the Becky bug).
  3. ALWAYS write restart markers before /exit. Use cortextos bus self-restart, never raw /exit.
  4. ALWAYS use cortextos enable to start agents. Never manually edit PM2 config.
  5. NEVER share bot tokens between agents. Each agent gets its own bot from @BotFather.
  6. NEVER hardcode chat IDs. Get them from the actual user via Telegram getUpdates.
  7. ALWAYS ask the user which runtime (claude-code, codex-app-server, or opencode) before scaffolding a new agent. Default to claude-code only if the user has no preference. Never silently pick.

1. Creating a New Agent

For Yourself (Same User)
bash
# Option A: CLI (recommended)

# STEP 0 — REQUIRED BEFORE SCAFFOLDING — Ask the user which runtime:
#   "Should this agent run on Claude Code (Anthropic), Codex (OpenAI gpt-5-codex),
#    or OpenCode (provider-agnostic TUI, default model openai/gpt-4.1-nano)?"
# Default to claude-code if the user has no preference. Never silently pick.
# Codex agents MUST use the agent-codex template; OpenCode agents MUST use the
# agent-opencode template. Passing --template agent auto-maps to the runtime's
# native bootstrap (agent-codex for codex, agent-opencode for opencode).
# orchestrator/analyst/m2c1-worker have no codex/opencode variant: codex is
# rejected outright with those templates; opencode is not blocked but would
# scaffold a Claude-oriented bootstrap under an opencode runtime, so avoid it.

# claude-code path (the common one):
cortextos add-agent <name> --template agent --org <org> --runtime claude-code

# codex-app-server path (gpt-5-codex via codex CLI app-server JSONRPC):
cortextos add-agent <name> --template agent-codex --org <org> --runtime codex-app-server

# opencode path (provider-agnostic OpenCode TUI; ships the context-handoff
# lifecycle, default-on at 60% of the context window; model set in config.json,
# default openai/gpt-4.1-nano). --template agent auto-maps to agent-opencode:
cortextos add-agent <name> --template agent-opencode --org <org> --runtime opencode

# Option B: Manual
TEMPLATE="agent"  # or "orchestrator" or "analyst"
AGENT_NAME="myagent"
ORG="myorg"

# Step 1: Copy template
cp -r "$CTX_FRAMEWORK_ROOT/templates/$TEMPLATE" \
      "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME"

# Step 2: Create Telegram bot
# Tell the user:
# 1. Open Telegram, message @BotFather
# 2. Send /newbot
# 3. Choose a name (e.g., "My Agent")
# 4. Choose a username (e.g., myagent_cortextos_bot)
# 5. Copy the bot token

# Step 3: Get chat ID
# Tell the user:
# 1. Send any message to the new bot
# 2. Run: curl -s "https://api.telegram.org/bot<TOKEN>/getUpdates" | jq '.result[0].message.chat.id'
# 3. That number is the chat_id

# Step 4: Get user ID (for ALLOWED_USER security)
# Same getUpdates response: .result[0].message.from.id

# Step 5: Write .env (CRITICAL - do this BEFORE cortextos enable)
cat > "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env" << EOF
BOT_TOKEN=<token from BotFather>
CHAT_ID=<chat_id from getUpdates>
ALLOWED_USER=<user_id from getUpdates>
EOF
chmod 600 "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env"

# Step 6: Update config.json
node -e "
const fs = require('fs');
const path = '$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/config.json';
const c = JSON.parse(fs.readFileSync(path));
c.agent_name = '$AGENT_NAME';
c.enabled = true;
fs.writeFileSync(path, JSON.stringify(c, null, 2));
"

# Step 7: Enable agent (registers with daemon)
cortextos enable "$AGENT_NAME" --org "$ORG"

# Step 8: Verify
cortextos status
For Another Person (Cross-User Agent)
bash
AGENT_NAME="theiragent"
ORG="myorg"
THEIR_BOT_TOKEN="<token from THEIR BotFather bot>"
THEIR_CHAT_ID="<THEIR chat_id, NOT yours>"
THEIR_USER_ID="<THEIR user_id>"

# Step 1: Add agent via CLI
cortextos add-agent "$AGENT_NAME" --template agent --org "$ORG"

# Step 2: Write THEIR .env (CRITICAL - must be THEIR credentials)
cat > "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env" << EOF
BOT_TOKEN=$THEIR_BOT_TOKEN
CHAT_ID=$THEIR_CHAT_ID
ALLOWED_USER=$THEIR_USER_ID
EOF
chmod 600 "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT_NAME/.env"

# Step 3: Enable
cortextos enable "$AGENT_NAME" --org "$ORG"

# VERIFY: The new agent messages THEM, not you
# If messages come to you instead of them, the .env has wrong CHAT_ID

Common Mistake (Becky Bug): If you skip the .env creation, the agent inherits YOUR credentials from the parent environment. Messages meant for the other user go to YOU instead. ALWAYS create .env BEFORE enabling.


2. Restarting Agents

Soft Restart (Preserves Conversation)
bash
# Via bus command (preferred — writes marker file automatically)
cortextos bus self-restart --reason "<reason>"

# Restart a DIFFERENT agent
cortextos bus send-message <agent_name> high "soft-restart" "<reason>"

What it does:

  1. Writes .user-restart marker (prevents false crash alert)
  2. Sends /exit (Claude exits gracefully)
  3. Daemon detects exit, finds marker, categorizes as "user_initiated"
  4. Daemon relaunches with --continue (preserves conversation history)
Hard Restart (Fresh Session, Loses History)
bash
cortextos bus hard-restart --reason "context exhaustion"

When to use: Context window full, conversation corrupted, need clean slate, or wiring a new hook (see Hook Reload Lifecycle below). Hard-restart sends an IPC restart-agent signal to the daemon, which kills the running PID and respawns it fresh. The respawn consumes the .force-fresh marker and skips --continue, so settings.json (including newly-wired hooks) is re-read from scratch.

Hook Reload Lifecycle

.claude/settings.json hooks (PreToolUse, PostToolUse, Stop, SessionStart, etc) are loaded once when the Claude CLI process starts. They are NOT reloaded by cortextos bus self-restart — soft restart relaunches Claude with --continue, which reuses the existing process settings cache. Project-level hooks added or changed in settings.json since the original boot DO NOT take effect under soft restart.

When wiring a new hook to a running agent, use a hard restart, not a soft restart:

bash
# From inside the agent itself, or from another agent/terminal:
cortextos bus hard-restart --reason "loading new hook"

# Equivalent ops-side path:
cortextos stop <agent> && cortextos start <agent>

Both kill the existing PID and respawn a fresh process that re-reads settings.json from scratch. Verify by adding a one-line debug write to your hook script before testing — if the file shows up after a benign tool call, the hook is loaded.

This bit us hard on the coder-telegram-guardrail wire-up before upstream PR #217 fixed bus hard-restart to actually signal the daemon. On any fork that has not pulled in #217 (commit a38ef7a), bus hard-restart writes markers without killing the PID — fall back to external stop && start until the fork is rebased.

Restart from Another Agent
bash
# Soft restart another agent via message bus
cortextos bus send-message assistant high "soft-restart" "goal refresh"

# Check status after restart
cortextos status

3. Changing Agent Model

bash
AGENT="sentinel"
ORG="myorg"
NEW_MODEL="claude-sonnet-4-6"  # or "claude-opus-4-6" or "claude-haiku-4-5-20251001"

# Step 1: Update config.json
node -e "
const fs = require('fs');
const path = '$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/config.json';
const c = JSON.parse(fs.readFileSync(path));
c.model = '$NEW_MODEL';
fs.writeFileSync(path, JSON.stringify(c, null, 2));
"

# Step 2: Soft restart to pick up new model
cortextos bus send-message "$AGENT" high "soft-restart" "model change to $NEW_MODEL"

Available models:

  • claude-opus-4-6 - Most capable, highest cost
  • claude-sonnet-4-6 - Good balance, ~5x cheaper than Opus
  • claude-haiku-4-5-20251001 - Fastest, cheapest, for simple tasks

No model set = default (Opus). Always set explicitly for cost control.


4. Managing Bot Tokens

Creating a New Bot

Guide the user through BotFather:

  1. Open Telegram, message @BotFather
  2. Send /newbot
  3. Enter display name (e.g., "Assistant - MyOrg Bot")
  4. Enter username (must end in bot, e.g., assistant_myorg_bot)
  5. Copy the token (format: 1234567890:AAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Getting Chat ID

After the user messages the bot:

bash
BOT_TOKEN="<the token>"
curl -s "https://api.telegram.org/bot${BOT_TOKEN}/getUpdates" | \
  node -e "const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); console.log(d.result[0].message.chat.id)"

Note: If getUpdates returns empty, the user needs to send /start to the bot first.

Updating a Bot Token
bash
AGENT="assistant"
ORG="myorg"

# Edit .env (replace BOT_TOKEN line)
sed -i '' "s/^BOT_TOKEN=.*/BOT_TOKEN=<new_token>/" \
  "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/.env"

# Restart to pick up new token
cortextos bus send-message "$AGENT" high "soft-restart" "bot token updated"

5. Managing .env Files

Required Fields
BOT_TOKEN=<telegram bot token>
CHAT_ID=<telegram chat id for the user>
ALLOWED_USER=<telegram user id for security filtering>
File Permissions
bash
chmod 600 "$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/.env"
Verifying .env
bash
AGENT_ENV="$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/.env"
if [[ ! -f "$AGENT_ENV" ]]; then
    echo "ERROR: No .env file for $AGENT!"
elif ! grep -q "BOT_TOKEN=" "$AGENT_ENV"; then
    echo "ERROR: Missing BOT_TOKEN in $AGENT .env"
elif ! grep -q "CHAT_ID=" "$AGENT_ENV"; then
    echo "ERROR: Missing CHAT_ID in $AGENT .env"
elif ! grep -q "ALLOWED_USER=" "$AGENT_ENV"; then
    echo "WARNING: Missing ALLOWED_USER - agent will reject all Telegram messages"
fi

6. Managing Crons

Adding a Cron
bash
AGENT="sentinel"
ORG="myorg"

node -e "
const fs = require('fs');
const path = '$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/config.json';
const c = JSON.parse(fs.readFileSync(path));
if (!c.crons) c.crons = [];
c.crons.push({ name: 'new-cron', interval: '2h', prompt: 'Do the thing' });
fs.writeFileSync(path, JSON.stringify(c, null, 2));
"

# Notify agent that crons have been updated
cortextos bus send-message "$AGENT" normal \
  'Crons updated in crons.json. The daemon scheduler will pick up the change automatically. To verify: cortextos bus list-crons '"$AGENT"
Removing a Cron
bash
node -e "
const fs = require('fs');
const path = '$CTX_FRAMEWORK_ROOT/orgs/$ORG/agents/$AGENT/config.json';
const c = JSON.parse(fs.readFileSync(path));
c.crons = (c.crons || []).filter(cr => cr.name !== 'cron-to-remove');
fs.writeFileSync(path, JSON.stringify(c, null, 2));
"
cortextos bus send-message "$AGENT" normal 'Cron removed from config.json. Recreate your crons on next restart.'

7. Enabling / Disabling Agents

Enable
bash
cortextos enable <agent> --org <org>
Disable
bash
cortextos disable <agent> --org <org>

This stops the agent's PM2 process and marks the agent as disabled. Config and .env are preserved.


8. Health Checks

Check All Agents
bash
cortextos status
cortextos bus read-all-heartbeats
Check Specific Agent Heartbeat
bash
cat "$HOME/.cortextos/default/state/$AGENT/heartbeat.json"
List All Agents
bash
cortextos bus list-agents --format json
Check PM2 Process Status
bash
pm2 list
pm2 jlist | node -e "
const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8'));
d.forEach(p => console.log(p.name, p.pm2_env.status));
"

9. Crash Recovery

Reset Crash Counter
bash
rm -f "$HOME/.cortextos/default/state/$AGENT/.crash_count_today"
Force Fresh Start (Lose Conversation)
bash
echo "" > "$HOME/.cortextos/default/state/$AGENT/.force-fresh"
cortextos enable "$AGENT" --org "$ORG" --restart

10. Troubleshooting

Show full SKILL.md (438 more words)Show less
Agent Not Responding to Telegram
  1. Check .env exists and has BOT_TOKEN + CHAT_ID + ALLOWED_USER
  2. Check fast-checker is running: ps aux | grep fast-checker | grep $AGENT
  3. Check fast-checker log: tail -10 $HOME/.cortextos/default/logs/$AGENT/fast-checker.log
  4. Check agent status: cortextos status
Messages Going to Wrong Person
  1. Check .env CHAT_ID - is it the right person's chat ID?
  2. Check .env BOT_TOKEN - is it the right bot?
  3. If agent was spawned by another agent, the parent's env vars may have leaked (Becky bug)
  4. Fix: rewrite .env with correct credentials, soft restart
Agent Keeps Crashing
  1. Check crash count: cat $HOME/.cortextos/default/state/$AGENT/.crash_count_today
  2. Check stderr: tail -20 $HOME/.cortextos/default/logs/$AGENT/stderr.log
  3. Common causes: rate limit, auth expired, context exhaustion
  4. Fix: reset crash count, fix root cause, cortextos enable <agent> --restart
PM2 Not Restarting Agent
  1. Check PM2 status: pm2 list
  2. Check PM2 logs: pm2 logs <agent-process-name>
  3. Regenerate ecosystem config: cortextos ecosystem then pm2 restart ecosystem.config.js
  4. If exit code shows throttling, wait 10s then cortextos enable <agent> --restart
New Hook Not Firing After Wiring It Up
  1. Confirm settings.json is valid JSON and the hook block is in the right shape (matcher, type=command, etc).
  2. Try a benign tool call that should trigger the hook. If nothing happens, the hook is not loaded.
  3. Do NOT soft-restart — --continue does not reload project hooks (see Hook Reload Lifecycle in Section 2).
  4. Hard-restart the agent: cortextos bus hard-restart --reason "load new hook". The daemon kills the PID and respawns a fresh process that re-reads settings.json.
  5. If the hook still does not fire after a fresh PID, instrument the script with an unconditional write to /tmp/<agent>-hook-test.log at the very top of main(), run a benign tool, and check whether the file appears. If yes, the hook is firing but the script is returning early. If no, the hook is wired wrong in settings.json.

Quick Reference

I need to...Command
Create new agentcortextos add-agent <name> --template agent --org <org> --runtime claude-code (or --template agent-codex --runtime codex-app-server, or --template agent-opencode --runtime opencode, after asking the user which runtime)
Enable agentcortextos enable <agent> --org <org>
Disable agentcortextos disable <agent> --org <org>
Soft restart (self)cortextos bus self-restart --reason "<reason>"
Hard restart (self)cortextos bus hard-restart --reason "<reason>"
Restart another agentcortextos bus send-message <agent> high "soft-restart" "<reason>"
Change modelEdit config.json model field + soft restart
Update bot tokenEdit .env BOT_TOKEN + soft restart
Add cronEdit config.json crons + notify agent
Check healthcortextos status or cortextos bus read-all-heartbeats
List agentscortextos bus list-agents --format json
Check PM2pm2 list
Reset crash countrm ~/.cortextos/default/state/<agent>/.crash_count_today
Force fresh startWrite .force-fresh + cortextos enable --restart

© grandamenium, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in community/skills/agent-management of grandamenium/cortextos.

Open the folder on GitHubat commit 6f93838

Compare with similar skills

Agent Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Management this skillgrandamenium/cortextos101—~4.2kAutomated safety check: NotesMIT
Pytdbotpytdbot/client137—~4.3kAutomated safety check: PassMIT
Setupterranc/claude-telegram-bot-bridge134—~1.5kAutomated safety check: NotesNone
MuseKevPH2026/muse-catch128—~865Automated safety check: PassAGPL-3.0
Add Telegram API Testsvendelieu/telegram-bot249—~609Automated safety check: NotesApache-2.0
Add Wizard Handlervendelieu/telegram-bot249—~508Automated safety check: PassApache-2.0

Similar skills

  • Pytdbot

    pytdbot/client

    Write Telegram bots and userbots with Pytdbot (async TDLib wrapper with high-level helpers; not the Telegram Bot API).

    137 GitHub stars~4.3k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Setup

    terranc/claude-telegram-bot-bridge

    Install and configure the Telegram Skill Bot. An agent skill from terranc/claude-telegram-bot-bridge.

    134 GitHub stars~1.5k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check: notes
  • Muse

    KevPH2026/muse-catch

    Muse · Catch — AI灵感捕手。浏览器插件+Telegram Bot一键捕获,AI自动提炼,Dashboard浏览+DNA雷达+OPC Market。当用户说「灵感」「捕获」「Muse」「Catch」「记下来」「收藏」时触发。

    128 GitHub stars~865 tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Add Telegram API Tests

    vendelieu/telegram-bot

    Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~609 tokensUpdated 6 days ago
    Productivity & AutomationAuto-check: notes
  • Add Wizard Handler

    vendelieu/telegram-bot

    Configures @WizardHandler annotation for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~508 tokensUpdated 6 days ago
    Productivity & AutomationAuto-check passed
  • Telegram Bot Manager

    CraftOS-dev/CraftBot

    Manage and configure Telegram bots for OpenClaw. An agent skill from CraftOS-dev/CraftBot.

    392 GitHub stars~836 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed

More from grandamenium/cortextos

All 55 skills in this repo
  • Cortext Self Diagnosis

    grandamenium/cortextos

    Diagnose cortextOS itself when the framework misbehaves — an agent has gone silent or wedged, agents are crash-looping, Telegram or agent-to-agent messages are not arriving, crons did not fire, an…

    101 GitHub stars~3.7k tokensUpdated 18 days ago
    Auto-check passed
  • Activity Channel

    grandamenium/cortextos

    You have completed something significant and want the whole org — all agents and the user — to know about it.

    101 GitHub stars~624 tokensUpdated 18 days ago
    Auto-check passed
  • Agentcard Purchase

    grandamenium/cortextos

    You need to make a purchase on behalf of the user — buy a SaaS subscription, pay for an API, purchase a domain, or any transaction requiring a credit card.

    101 GitHub stars~1.1k tokensUpdated 18 days ago
    Auto-check passed
  • Claude To Codex Migration

    grandamenium/cortextos

    Migrate ANY cortextOS agent from the claude-code runtime to the live codex-app-server runtime.

    101 GitHub stars~12k tokensUpdated 18 days ago
    Auto-check: warnings
  • Bus Reference

    grandamenium/cortextos

    Complete cortextos bus CLI reference - all available commands with examples.

    101 GitHub stars~3.8k tokensUpdated 18 days ago
    Auto-check passed
  • Business News Monitor

    grandamenium/cortextos

    Daily cron-driven scan of news/forums/social in a domain to surface market shifts, new competitors, regulatory changes, and net-new opportunities.

    101 GitHub stars~1.3k tokensUpdated 18 days ago
    Auto-check passed

Works with

Questions about Agent Management

What does Agent Management do?

You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn…. Agent Management is an agent skill from grandamenium/cortextos. You need to create a new agent, restart a crashed agent, change an agent's model or config, fix a Telegram bot token, troubleshoot why an agent is not responding, enable or disable an agent, spawn an agent for another user, manage PM2 process management, reset crash limits, or do anything that touches an agent's lifecycle, configuration, or credentials.

When should I use Agent Management?

Agent Management fits situations like: tasks that involve Chatbots and conversational support.

How do I install Agent Management in Claude Code?

Run `npx skills add grandamenium/cortextos --skill agent-management -a claude-code`. Or copy the skill folder (community/skills/agent-management in grandamenium/cortextos) into .claude/skills/agent-management in your project. Claude Code loads it when a task matches its description.

How do I install Agent Management in Codex?

Run `npx skills add grandamenium/cortextos --skill agent-management -a codex`. Or copy the skill folder (community/skills/agent-management in grandamenium/cortextos) into .agents/skills/agent-management in your project. Codex loads it when a task matches its description.

Can I use Agent Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add grandamenium/cortextos --skill agent-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-management, .gemini/skills/agent-management, .github/skills/agent-management and .opencode/skills/agent-management in your project.

What does Agent Management need to run?

Going by SKILL.md and its folder, Agent Management needs the command-line tools its instructions call (node and curl) and credentials named BOT_TOKEN and THEIR_BOT_TOKEN. Our summary lists: A credential in BOT_TOKEN; A credential in THEIR_BOT_TOKEN.

Does Agent Management access the network?

SKILL.md names 1 domain. In commands or code: api.telegram.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Agent Management safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Agent Management use?

Agent Management is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Management use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Management?

Skills that share tags, products or a category with Agent Management: Pytdbot (pytdbot/client, 137 stars), Setup (terranc/claude-telegram-bot-bridge, 134 stars), Muse (KevPH2026/muse-catch, 128 stars) and Add Telegram API Tests (vendelieu/telegram-bot, 249 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Management?

grandamenium (a GitHub user) maintains it in grandamenium/cortextos, which has 101 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on September 23, 2026.

Source: grandamenium/cortextos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.