agent

agent is a skill for Claude Code from devhimanshulohani/claude-agent-manager. It costs 13 tokens per session (5,546 once invoked), scanned B, original, MIT.

An agent manager for starting and tracking autonomous background agents, with state saved across sessions. It requires the project to be inside a Git repository, which records code history and branches.

In plain words
What is it for?
It helps create, manage, and monitor background agents and maintain their registry, including migrating older registry formats and using a configured base branch.
Why use it?
It keeps agent tasks and their settings in a persistent registry instead of losing them when a session ends.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Part of the agent-manager plugin — 1 skill, 1 agent, 1 hook shipped together

Good fit It helps create, manage, and monitor background agents and maintain their registry, including migrating older registry formats and using a configured base branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/devhimanshulohani/claude-agent-manager/agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add devhimanshulohani/claude-agent-manager --skill agent
Clone the repo
git clone --depth 1 https://github.com/devhimanshulohani/claude-agent-manager

Made for: Claude Code.

Or install agent-manager, the plugin that ships this one along with the rest of its 1 skill, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/devhimanshulohani/claude-agent-manager/agent/github.svg)](https://agentmods.dev/skills/devhimanshulohani/claude-agent-manager/agent)
Your own site
<a href="https://agentmods.dev/skills/devhimanshulohani/claude-agent-manager/agent"><img src="https://agentmods.dev/badge/skills/devhimanshulohani/claude-agent-manager/agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/devhimanshulohani/claude-agent-manager/agent"><img src="https://agentmods.dev/badge/skills/devhimanshulohani/claude-agent-manager/agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.05546
Opus 5.5 $0.00005 $0.02218
Sonnet 5.5 $0.00003 $0.01109
Haiku 4.5 $0.00001 $0.00555

Measured 2mo ago against content hash 1277baa90e3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. If `taskId` is not null, find the agent's subagent transcript: search for files matching `~/.claude/projects/*/subagents/agent-*.jsonl` using Glob. Look for the transcript that corresponds to the agent's `taskId`. If
skills/agent/SKILL.md · 283 lines

How it starts

The opening of the file, as written. The whole thing — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Manager v4

Parse $ARGUMENTS and execute the matching command below. Persistent state lives in .claude/agents/registry.json (source of truth). Task system is for live monitoring only.

Pre-flight: Before executing any command, verify the current directory is inside a git repository (git rev-parse --is-inside-work-tree). If not, reject: "Agent manager requires a git repository. Run git init first." Registry: Read .claude/agents/registry.json — if missing/corrupt, default to { "version": 2, "defaultBranch": null, "agents": [] }. If version is 1 or missing, migrate: add model: null, effort: null, color: null, maxTurns: null to each agent entry, add defaultBranch: null at top level, set version to 2, write immediately. Always mkdir -p .claude/agents before writing. Atomic writes: Always write registry to .claude/agents/registry.json.tmp first, then rename to .claude/agents/registry.json. This prevents corruption from interrupted writes. Default branch: Read from registry.defaultBranch. If null (first time using the plugin in this repo), ask the user using AskUserQuestion: "What is your default/base branch? (e.g., main, master, develop)". Store the answer in registry.defaultBranch and write registry. Once set, never ask again. Use {defaultBranch} everywhere in this document instead of a hardcoded branch name. Agent ID: Generate via echo "$(date +%s)$$.$RANDOM" | shasum | head -c 6 (6-char hex). $$ (PID) + $RANDOM ensures uniqueness even when called multiple times in the same second (e.g., batch). Age format: <N>m ago / <N>h ago / <N>d ago relative to createdAt. Prefix match: All ID-based commands support prefix matching. If the prefix is ambiguous (matches multiple agents), reject and show the matching IDs. If no match, show all available IDs. Templates dir: .claude/agents/templates/ — JSON files with required fields { name, description } and optional { verifyCommand, commitFormat }. verifyCommand overrides Phase 4 auto-detection; commitFormat overrides the default conventional commit format. User defaults: If env var CLAUDE_PLUGIN_OPTION_DEFAULT_MODEL is set, use it as default model when --model is not specified. If CLAUDE_PLUGIN_OPTION_DEFAULT_EFFORT is set, use it as default effort level. These are configured when the user enables the plugin. Auto-registry: A SubagentStop hook automatically updates the registry when a worker agent completes. The list command still verifies status as a fallback. Flag validation: --model must be one of haiku, sonnet, opus. --color must be one of red, blue, green, yellow, purple, orange, pink, cyan. --effort must be one of low, medium, high, max. --max-turns must be a positive integer. Reject invalid values with a clear error message listing valid options.


Read the full file on GitHub · 283 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 283 lines · 13 tokens per session scan B 1277baa90e3b

Subscribe to this mod's changes

agent is a skill published in the GitHub repository devhimanshulohani/claude-agent-manager (6 stars, last pushed 7mo ago), licensed MIT. It adds 13 tokens to every session and 5,546 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agent compared with skills from other repositories

agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentdevhimanshulohani/claude-agent-managerSkill67mo agoMITB13Claude Code
autoloopjun0-ds/sonmatSkill5yesterdayBSD-3-ClauseA44Claude Code
punchjun0-ds/sonmatSkill5yesterdayBSD-3-ClauseA48Claude Code
inspectjun0-ds/sonmatSkill5yesterdayBSD-3-ClauseA50Claude Code
guardjun0-ds/sonmatSkill5yesterdayBSD-3-ClauseA48Claude Code
deviljun0-ds/sonmatSkill5yesterdayBSD-3-ClauseA37Claude Code
evolvemataeil/OODA-loopSkill64mo agoMITA50Claude Code