add-adapter

add-adapter is a command for coding agents from ktoulgaridis/forge. It costs 19 tokens per session (388 once invoked), scanned A, original, MIT.

A command for connecting an existing Forge project to another work-tracking, source-control, chat, or continuous-integration tool. A Forge project is a project whose files and settings were created from a standard template.

In plain words
What is it for?
Use it to add tools such as Slack, Linear, or GitHub Actions, check their required command-line programs, update affected files, and prepare a wiki merge request for review.
Why use it?
It avoids manually updating project instructions and configuration when adding an integration.

Command

Part of the forge plugin — 7 commands shipped together

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 commands/ktoulgaridis/forge/add-adapter
Clone the repo
git clone --depth 1 https://github.com/ktoulgaridis/forge

Or install forge, the plugin that ships this one along with the rest of its 7 commands.

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 add-adapter

README.md
[![agentmods](https://agentmods.dev/badge/commands/ktoulgaridis/forge/add-adapter.svg)](https://agentmods.dev/commands/ktoulgaridis/forge/add-adapter)
Your own site
<a href="https://agentmods.dev/commands/ktoulgaridis/forge/add-adapter"><img src="https://agentmods.dev/badge/commands/ktoulgaridis/forge/add-adapter.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.00388
Opus 5 $0.00010 $0.00194
Sonnet 5 $0.00004 $0.00078
Haiku 4.5 $0.00002 $0.00039

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

Security

Grade A, and why

add-adapter 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 4d 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.

commands/add-adapter.md · 45 lines

What it actually says

/forge:add-adapter — Add a tool adapter

Pull in a new integration: a chat MCP for notifications, a CI status reporter, an additional tracker. Updates the skills + config.

Invocation

/forge:add-adapter <type>/<name>

Examples:

/forge:add-adapter chat/slack
/forge:add-adapter tracker/linear        # add Linear in addition to existing tracker
/forge:add-adapter ci/github-actions

What this command does

  1. Read .forge.config.yaml
  2. Locate the adapter at adapters/<type>/<name>.md in this plugin's repo
  3. Read the adapter's required_clis and optional_mcp_servers; check what's installed locally
  4. Print install hints for missing pieces; pause for user to install (or skip)
  5. Inject the adapter's snippets into:
    • .claude/skills/prime/SKILL.md (tracker/SCM adapters affect how prime pulls live state)
    • .claude/skills/dispatch/SKILL.md (tracker/SCM adapters affect how dispatch creates work items)
    • For chat adapters: add notification hooks in role files where appropriate
  6. Update .forge.config.yaml — append to integrations[]
  7. Open a wiki MR

Multi-tracker case

A project can use more than one tracker (e.g., Jira for product issues + Linear for engineering bugs). When adding a second tracker:

  • Mark which tracker each stream uses in .forge.config.yaml
  • The skill templates branch on stream → tracker

Cleanup

If you added an adapter that turned out to be unused, run /forge:configure to remove it. The plugin doesn't auto-remove integrations.

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. 4d ago First seen · 45 lines · 19 tokens per session scan A f330c50f6229

Subscribe to this mod's changes

add-adapter is a command published in the GitHub repository ktoulgaridis/forge (10 stars, last pushed 7d ago), licensed MIT. It adds 19 tokens to every session and 388 once invoked, about $0.0001 per session on Opus 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-31.