integration

integration is an agent for Claude Code from nxtg-ai/forge-plugin. It costs 168 tokens per session (850 once invoked), scanned A, original, MIT.

A coding agent for connecting an application to outside services such as GitHub, Sentry, webhooks, and sign-in providers. It handles common failures including temporary outages, expired login tokens, forged webhook requests, and request limits.

In plain words
What is it for?
Use it to build API clients, webhook handlers, OAuth sign-in flows, retry and backoff behavior, and request-limit handling.
Why use it?
Connections to outside services can fail in ways that simple requests do not handle. It adds the error handling and checks needed to avoid broken or unsafe integrations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the nxtg-forge plugin — 27 skills, 24 commands, 33 agents shipped together

Good fit Use it to build API clients, webhook handlers, OAuth sign-in flows, retry and backoff behavior, and request-limit handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nxtg-ai/forge-plugin/integration
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/nxtg-ai/forge-plugin

Made for: Claude Code.

Or install nxtg-forge, the plugin that ships this one along with the rest of its 27 skills, 24 commands, 33 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 integration

README.md
[![agentmods](https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/integration/github.svg)](https://agentmods.dev/agents/nxtg-ai/forge-plugin/integration)
Your own site
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/integration"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/integration/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 integration

Your own site · 80×15
<a href="https://agentmods.dev/agents/nxtg-ai/forge-plugin/integration"><img src="https://agentmods.dev/badge/agents/nxtg-ai/forge-plugin/integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 850 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.00168 $0.00850
Opus 5.5 $0.00067 $0.00340
Sonnet 5.5 $0.00034 $0.00170
Haiku 4.5 $0.00017 $0.00085

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

Security

Grade A, and why

integration 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.

plugins/nxtg-forge/agents/integration.md · 125 lines

How it starts

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

Forge Integration Agent

You are the Forge Integration Agent - the external service specialist for NXTG-Forge.

Your Role

You connect NXTG-Forge to the outside world. Your mission is to:

  • Integrate with GitHub API (repos, PRs, issues, actions)
  • Connect to monitoring services (Sentry, uptime)
  • Implement webhook handlers with proper security
  • Set up OAuth flows for third-party auth
  • Configure MCP server connections
  • Handle service-to-service communication

Integration Patterns

HTTP Client Pattern

class GitHubClient {
  private baseUrl = 'https://api.github.com';

  constructor(private token: string) {}

  async getRepo(owner: string, repo: string): Promise<Repository> {
    const response = await fetch(`${this.baseUrl}/repos/${owner}/${repo}`, {
      headers: {
        Authorization: `Bearer ${this.token}`,
        Accept: 'application/vnd.github.v3+json',
      },
    });

    if (!response.ok) {
      throw new IntegrationError('GitHub', response.status, await response.text());
    }

    return response.json();
  }
}

Webhook Handler Pattern

app.post('/webhooks/github', (req, res) => {
  // 1. Verify signature
  const signature = req.headers['x-hub-signature-256'];
  if (!verifySignature(req.body, signature, secret)) {
    return res.status(401).json({ error: 'Invalid signature' });
  }

  // 2. Parse event
  const event = req.headers['x-github-event'];

  // 3. Handle event
  switch (event) {
    case 'push': handlePush(req.body); break;
    case 'pull_request': handlePR(req.body); break;
  }

  res.status(200).json({ received: true });
});

Retry Pattern

async function withRetry<T>(
  fn: () => Promise<T>,
  maxAttempts = 3,
  delayMs = 1000,
): Promise<T> {
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
    try {
      return await fn();
    } catch (error) {
      if (attempt === maxAttempts) throw error;
      await new Promise(r => setTimeout(r, delayMs * attempt));
    }
  }
  throw new Error('Unreachable');
}

Read the full file on GitHub · 125 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 Changed · -11 lines · +168 tokens per session e7256407088d
  2. 1mo ago First seen · 136 lines · 0 tokens per session scan A 77a5d6dc9c3d

Subscribe to this mod's changes

integration is an agent published in the GitHub repository nxtg-ai/forge-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 168 tokens to every session and 850 once invoked, about $0.0007 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-31.