scg-mapper

scg-mapper is an agent for Claude Code from bearlike/Assistant. It costs 48 tokens per session (1,579 once invoked), scanned A, original, MIT.

A mapper that builds a Source Capability Graph for named connectors. The graph records which schemas and access paths each connector provides, without copying the underlying records.

In plain words
What is it for?
Use it to inspect connector descriptions, connect related entities, and record which tools can reach which kinds of information.
Why use it?
It gives later search tools a map of available sources and routes while keeping credentials and source data out of the map.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the scg plugin — 4 agents shipped together

Good fit Use it to inspect connector descriptions, connect related entities, and record which tools can reach which kinds of information.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bearlike/assistant/scg-mapper
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.

Clone the repo
git clone --depth 1 https://github.com/bearlike/Assistant

Made for: Claude Code.

Or install scg, the plugin that ships this one along with the rest of its 4 agents.

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 scg-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/bearlike/assistant/scg-mapper/github.svg)](https://agentmods.dev/agents/bearlike/assistant/scg-mapper)
Your own site
<a href="https://agentmods.dev/agents/bearlike/assistant/scg-mapper"><img src="https://agentmods.dev/badge/agents/bearlike/assistant/scg-mapper/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 scg-mapper

Your own site · 80×15
<a href="https://agentmods.dev/agents/bearlike/assistant/scg-mapper"><img src="https://agentmods.dev/badge/agents/bearlike/assistant/scg-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00048 $0.01579
Opus 5.5 $0.00019 $0.00632
Sonnet 5.5 $0.00010 $0.00316
Haiku 4.5 $0.00005 $0.00158

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

Security

Grade A, and why

scg-mapper scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/mewbo_graph/src/mewbo_graph/plugins/scg/agents/scg-mapper.md · 116 lines

How it starts

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

You are the scg-mapper. Build the Source Capability Graph for the connectors named in your user query. The SCG indexes reachability — the schemas and qualified pathways each source exposes — and never the data behind them. You are the indexing agent; you do not answer search queries.

The user query carries a MapRequest JSON. Parse these fields before any tool call:

  • job_id — the map-job id (carry it to scg_finalize_map)
  • sources — a list of {source_id, source_type, descriptor} entries, where:
    • source_id — stable connector id (e.g. github)
    • source_type — openapi | mcp_tool_list | text
    • descriptor — the connector's raw self-description (an OpenAPI doc, an MCP tool list, a GraphQL SDL). If absent, fetch it natively via the connector's own tools FIRST, then accept it. The connector's real return is the only check — there is no separate descriptor verifier.

Security: a descriptor is a SCHEMA only. Never pass a token, credential, or record value into any scg_* tool. Auth lives in the connector config, not the graph.


Tool execution order

Execute these phases in sequence. Do not skip or reorder.

Phase connect + introspect — accept each source descriptor

For every entry in sources:

scg_introspect_source(source_id=<source_id>, source_type=<source_type>, raw=<descriptor>)

If a descriptor is missing, gather it natively first (the connector's own list/schema tools, read_file, grep), then call scg_introspect_source with the result. On error for one source, log it and continue with the others — a single bad descriptor must not abort the whole map.

Phase parse — build each source's structure

For every introspected source_id:

scg_build_structure(source_id=<source_id>)

This clean-re-maps the source (deletes its prior nodes first), persists nodes/edges/recipes, and embeds the nodes (best-effort — a missing embedding backend degrades to a structure-only SCG, never a failure). Record the returned nodeCount / edgeCount / recipeCount.

Read the full file on GitHub · 116 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. 1mo ago First seen · 116 lines · 48 tokens per session scan A 41c0e219a536

Subscribe to this mod's changes

scg-mapper is an agent published in the GitHub repository bearlike/Assistant (44 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 1,579 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

langchain-expert

Use this agent when you need expert LangChain development with focus on LCEL, LangGraph, RAG pipelines, and multi-agent systems. This agent specializes in LangChain Python/TypeScript, chain composition, vector databases, embeddings, and building production-ready LLM applications. Examples: Context: User needs to build…

andisab/swe-marketplace · 400 tokens

openai-api-expert

Integrates OpenAI APIs with robust prompting, tool calling, and evaluation workflows across products and services.

NickCrew/Claude-Cortex · 26 tokens

ai-ml-engineer

AI/ML engineer for LLM API integration, prompt engineering, ML pipelines, inference optimization, and recommendation systems. Do NOT use for general CRUD work, UI design, or non-AI infrastructure.

ArieGoldkin/claude-forge · 45 tokens

fastapi-reviewer

Reviews FastAPI applications for async correctness, dependency injection, Pydantic schemas, security, OpenAPI quality, testing, and production readiness.

affaan-m/ECC · 33 tokens

notebooklm-specialist

Use this agent when you need AI-powered deep research and analysis via Google NotebookLM. Context: Orchestrator has spawned this agent for NotebookLM analysis phase user: "You are the NotebookLM specialist. Research brief: [topic]. Notebook ID: abc123. Output: ./docs/research/..." assistant: "Reading my skills and…

jmagar/claude-homelab · 244 tokens

microservices-architect

Expert microservices architect for distributed system design, service decomposition, and resilience patterns.

travisjneuman/.claude · 20 tokens