toolnexus CLAUDE.md

toolnexus CLAUDE.md is an instructions file for coding agents from muthuishere/toolnexus. It costs 3,934 tokens per session, scanned A, original, MIT.

A repository guide for toolnexus, a library that gives language models a common way to use tools, remote endpoints, agent skills, and other callable functions across seven programming languages.

In plain words
What is it for?
Use it when implementing dynamic MCP server connections, loading agent skills, defining tools, connecting remote HTTP endpoints or agents, generating model-specific tool schemas, or maintaining cross-language parity.
Why use it?
It defines the project's spec-driven workflow and explains how different tool sources are represented through one interface. This helps keep behavior consistent across the JavaScript, Python, Go, Java, C#, Elixir, and Clojure versions.

Instructions file

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 instructions/muthuishere/toolnexus/claude-md
Clone the repo
git clone --depth 1 https://github.com/muthuishere/toolnexus

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 toolnexus CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/muthuishere/toolnexus/claude-md.svg)](https://agentmods.dev/instructions/muthuishere/toolnexus/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/muthuishere/toolnexus/claude-md"><img src="https://agentmods.dev/badge/instructions/muthuishere/toolnexus/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,934 This file is loaded in full into every session.
When invoked 3,934 The same file — it is already loaded in full.
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.03934 $0.03934
Opus 5 $0.01967 $0.01967
Sonnet 5 $0.00787 $0.00787
Haiku 4.5 $0.00393 $0.00393

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

Security

Grade A, and why

toolnexus CLAUDE.md 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.

CLAUDE.md · 231 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What we're trying to build

toolnexus — a small, vendor-neutral library that gives any LLM the dynamic capabilities opencode has, ported byte-identically across seven languages (js/, python/, golang/, java/, csharp/, elixir/, clojure/):

  1. Dynamic MCP servers — read an mcp.json, connect to every server (local stdio + remote streamable-HTTP), expose each server tool as a uniform Tool.
  2. Dynamic agent skills — glob a skills/ folder (**/SKILL.md) and expose one skill tool that loads a skill's instructions + resources on demand (progressive disclosure).

The insight: MCP tools, agent skills, your own functions (defineTool), remote HTTP endpoints, the built-in shell/file tools, and remote A2A agents are the same thing to an LLM — a named, described, schema'd callable. toolnexus unifies all these tool sources behind one Tool interface, emits the schema in OpenAI / Anthropic / Gemini formats, and ships a unified client with a built-in tool-calling loop (system prompt, skills injection, parallel + chained tool calls, hooks, streaming, retries, conversation memory, observability metrics).

It is also an inbound endpoint: toolkit.serve(addr, …) exposes the toolkit to the outside world — today as a remote A2A agent (Agent Card + JSON-RPC over the client loop; SPEC.md §7B).

The whole point of the ports is parity: the same examples/ fixtures must produce the same behavior in every language. That is the product. Protecting it is the prime directive below.

Repo layout

Path What
SPEC.md The shared contract. The one-page conformance spec (§0) every port must satisfy, plus reference detail (§1–§9). Source of truth for behavior.
js/ TypeScript port — toolnexus (npm). MCP SDK: @modelcontextprotocol/sdk (same as opencode).
python/ Python port — toolnexus (PyPI), Python ≥ 3.11. MCP SDK: mcp.
golang/ Go port — github.com/muthuishere/toolnexus/golang, Go 1.23. MCP SDK: mark3labs/mcp-go. Also ships the toolnexus CLI under cmd/.
java/ Java port — io.github.muthuishere:toolnexus, Java 21. MCP SDK: official io.modelcontextprotocol.sdk:mcp.
csharp/ C# port — Toolnexus (NuGet), .NET. MCP SDK: ModelContextProtocol.
elixir/ Elixir port — toolnexus (Hex), Elixir ≥ 1.16/OTP 26. MCP client: in-house (Toolnexus.Mcp.* — no mature Elixir SDK exists); coverage gate ≥ 95%.
examples/ Shared cross-language fixturesmcp.json + skills/hello-world/. Every port runs against these; outputs must match.
openspec/ Spec-driven change workflow (OpenSpec). changes/ = active proposals (proposal.md + spec deltas + tasks.md), specs/ = canonical capability specs, changes/archive/ = shipped changes. Run the openspec CLI from the repo root.
.github/workflows/ci.yml Runs all seven suites (JS/Python/Go/Java/C#/Elixir/Clojure), hermetically (no network, no live LLM).

Read the full file on GitHub · 231 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. 4d ago First seen · 231 lines · 3,934 tokens per session scan A bebf55108abf

Subscribe to this mod's changes

toolnexus CLAUDE.md is an instructions file published in the GitHub repository muthuishere/toolnexus (5 stars, last pushed yesterday), licensed MIT. It adds 3,934 tokens to every session, about $0.0197 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.