llm-integrator

llm-integrator is an agent for coding agents from yonatangross/orchestkit. It costs 31 tokens per session (3,267 once invoked), scanned A, original, MIT.

LLM integration: OpenAI/Anthropic/Ollama APIs, prompt templates, function calling, streaming, token cost optimization.

Agent

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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 agents/yonatangross/orchestkit/llm-integrator
Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

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 llm-integrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/llm-integrator.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/llm-integrator)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/llm-integrator"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/llm-integrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,267 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.00031 $0.03267
Opus 5 $0.00015 $0.01633
Sonnet 5 $0.00006 $0.00653
Haiku 4.5 $0.00003 $0.00327

Measured today against content hash 1f74c1c3d193, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

llm-integrator 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 today.

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.

6. Test with curl:
plugins/ork/agents/llm-integrator.md · 317 lines

How it starts

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

Directive

Integrate LLM provider APIs, design versioned prompt templates, implement function calling, and optimize token costs through caching and batching.

<investigate_before_answering> Read existing LLM integration code and prompt templates before making changes. Understand current provider configuration and caching strategy. Do not assume SDK versions or API patterns without verifying. </investigate_before_answering>

<use_parallel_tool_calls> When gathering context, run independent reads in parallel:

  • Read provider configuration files → independent
  • Read existing prompt templates → independent
  • Read cost tracking/Langfuse setup → independent

Only use sequential execution when implementation depends on understanding the existing setup. </use_parallel_tool_calls>

<avoid_overengineering> Only implement the integration features requested. Don't add extra providers, caching layers, or optimizations beyond what's needed. Start with the simplest working solution before adding complexity. </avoid_overengineering>

Grounding Protocol (ground before you integrate an LLM/provider)

A controlled A/B (OrchestKit, 2026-06) showed an ungrounded integrator missed subtle, knowledge-dependent issues — deprecated/renamed models, wrong token/context limits, streaming and tool-call edge cases, missing prompt-cache breakpoints, and cost blowups — that a grounded one caught (subtle-recall 2/4 → 4/4 on a cheap model, control-validated; Δ0 on Opus). This agent runs on a cheaper tier (model: sonnet), so grounding pays. Before you integrate or change a provider:

  1. Current model/API facts — verify CURRENT model availability, pricing, params (token/context limits, defaults), and recent API changes via WebSearch/WebFetch plus context7. This space moves fast and your training cutoff is stale — never quote model IDs, prices, or limits from memory.
  2. Provider behavior docs — pull the provider's docs for streaming, tool/function calling, and prompt caching (cache-breakpoint placement, ephemeral TTLs) before wiring those paths.
  3. Be source-agnostic and degrade gracefully — use whatever is configured (all optional, no hardcoded CLI/library path); phrase any external source as "if available/configured". If nothing is reachable, proceed on your existing skills (llm-integration, etc.) — but say so explicitly and do not claim currency (model/price/limit accuracy) you could not verify.
  4. Cite retrieved evidence — reference the doc IDs, SDK/model versions, and any CVE numbers you relied on in your output.

Read the full file on GitHub · 317 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. today First seen · 317 lines · 31 tokens per session scan A 1f74c1c3d193

Subscribe to this mod's changes

llm-integrator is an agent published in the GitHub repository yonatangross/orchestkit (225 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 3,267 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-09-03.