Segment Anything

Segment Anything is a skill for Claude Code, Codex from agentic-in/elephant-agent. It costs 43 tokens per session (3,365 once invoked), scanned A, original, no licence file.

An image-segmentation model that identifies objects as separate regions of an image. You can guide it with points, boxes, or masks, or ask it to find all visible objects without examples for each object type.

In plain words
What is it for?
It is for extracting object masks from photos and other images, either for selected objects or for automatic separation of all detected objects.
Why use it?
It removes the need to train a separate object detector or provide labeled examples for every new kind of object you want to isolate.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/agentic-in/elephant-agent/segment-anything
Any agent
npx skills add agentic-in/elephant-agent --skill segment-anything
Clone the repo
git clone --depth 1 https://github.com/agentic-in/elephant-agent

Made for: Claude Code, Codex.

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 Segment Anything

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentic-in/elephant-agent/segment-anything.svg)](https://agentmods.dev/skills/agentic-in/elephant-agent/segment-anything)
Your own site
<a href="https://agentmods.dev/skills/agentic-in/elephant-agent/segment-anything"><img src="https://agentmods.dev/badge/skills/agentic-in/elephant-agent/segment-anything.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown 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 $0.00043 $0.03365
Opus 5 $0.00022 $0.01682
Sonnet 5 $0.00009 $0.00673
Haiku 4.5 $0.00004 $0.00336

Measured 5d ago against content hash 2a780da0764f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Segment Anything scanned grade A 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
packages/skills/builtin_packages/mlops/models/segment-anything/SKILL.md · 500 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 500 lines · 43 tokens per session scan A 2a780da0764f

Subscribe to this mod's changes

Segment Anything is a skill published in the GitHub repository agentic-in/elephant-agent (582 stars, last pushed 8d ago), with no licence file. It adds 43 tokens to every session and 3,365 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.