Borrowing it
Nothing to install: this file belongs to WolframResearch/AgentTools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/WolframResearch/AgentTools/main/AGENTS.mdgit clone --depth 1 https://github.com/WolframResearch/AgentToolsWrote 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.
[](https://agentmods.dev/instructions/wolframresearch/agenttools/agents-md)<a href="https://agentmods.dev/instructions/wolframresearch/agenttools/agents-md"><img src="https://agentmods.dev/badge/instructions/wolframresearch/agenttools/agents-md/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.
<a href="https://agentmods.dev/instructions/wolframresearch/agenttools/agents-md"><img src="https://agentmods.dev/badge/instructions/wolframresearch/agenttools/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04129 | $0.04129 |
| Opus 5.5 | $0.01652 | $0.01652 |
| Sonnet 5.5 | $0.00826 | $0.00826 |
| Haiku 4.5 | $0.00413 | $0.00413 |
Grade A, and why
AgentTools AGENTS.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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to AI agents (Claude Code, GitHub Copilot, etc.) when working with code in this repository.
Overview
AgentTools is a Wolfram Language package for integrating with AI agents and large language models. It provides MCP servers, agent skills, and other standard interfaces that enable AI systems to leverage Wolfram Language computation, Wolfram|Alpha knowledge, and related resources. The package supports a wide range of AI clients and protocols, with an extensible architecture for adding new tools, prompts, servers, and integration points.
Development
Always use the WolframLanguageContext tool when working with Wolfram Language code to ensure that you are aware of the latest documentation and other Wolfram resources.
When you make changes to paclet source code, you should also write and run tests for the changes you made using the TestReport tool and check the updated files (including test files) with the CodeInspector tool.
If you need to debug code in the WolframLanguageEvaluator tool, you'll first need to evaluate:
PacletDirectoryLoad[ "path/to/AgentTools" ];
Get[ "Wolfram`AgentTools`" ]
Note: This is not necessary for the TestReport tool, since the tests load the paclet automatically.
You should use the SymbolDefinition tool to investigate symbols rather than use things like DownValues, Definition, etc. It runs in the same kernel as the WolframLanguageEvaluator tool, so it will have access to the same definitions.
Writing and Running Tests
Use the TestReport MCP tool to run tests.
Always review testing.md for detailed instructions before modifying or adding tests.
Building the Paclet
See building.md for detailed instructions.
Code Architecture
Project Structure
Kernel/: Contains the core implementation filesAgentTools.wl: Main entry point which loads an MX file if available, otherwise proceeds toMain.wlMain.wl: Entry point for loading other package files; exported symbols must be declared hereAgentSkills.wl: Agent skills — normalizing skill specifications (LLMSkill, skill directories, paclet skills) into sources, deterministicSKILL.mdgeneration, the built-in skill registry ($defaultAgentSkills: the skills shipped inAssets/AgentSkills/, resolved through the paclet's"AgentSkills"asset), hashing (line-ending-normalized manifests), the exported low-levelInstallAgentSkills/UninstallAgentSkills, and the skill registry ($deploymentsPath/.SkillRegistry) that reference-counts skill directories shared by several deploymentsAgentToolsObject.wl:AgentToolsObject(bundles of MCP servers and agent skills: built-in, paclet-defined, or ad hoc),AgentToolsObjects, and$DefaultAgentTools(the built-in bundles: each default MCP server plus its built-in agent skills)Common.wl: Common utilities and error handlingCommonSymbols.wl: Any symbols shared between paclet files must be declared hereCreateMCPServer.wl: Implementation for creating MCP serversDefaultServers.wl: Defines several predefined named MCP serversDeployAgentTools.wl: Implementation for deploying and managing agent tool deployments: resolves the toolset to anAgentToolsObject, deploys its MCP servers and agent skills under a file lock with rollback, and records deployments (schema v2, a superset of v1) so thatDeleteObjectworks from recorded data onlyFiles.wl: Helper functions for file operations (local WXF/JSON I/O —writeRawJSONFile/writeRawJSONStringuse thejsonConvertconversion function, which writes values that JSON cannot represent (None,Infinity, dates, …) as strings — plusreadCloudWXF/writeCloudWXFfor cloud-object WXF, used by the cloud admin API's key-label store) and the machine-wide settings store$rootPath/GlobalSettings.wxf(readGlobalSettings/getGlobalSetting/setGlobalSetting), which currently holds the usage-data opt-outFormatting.wl: Definitions for formatting in notebooksInstallMCPServer.wl: Implementation for installing MCP servers for use in some common MCP client applicationsMCPClientRequests.wl: Server-to-client request infrastructure (request registry, response correlation, notification dispatch) used by MCP roots and other server-initiated requestsMCPRoots.wl: MCP roots handshake — issuesroots/list, normalizesfile://URIs (including malformed Windows variants), and applies the selected directory to the kernel, evaluator, andRunProcesscallsMCPServerObject.wl: Defines the MCP server object format, including itsMCPServerObjectupvalues (DeleteObject,LLMConfiguration, andCloudDeploy)Messages.wl: Definitions for error messagesPacletExtension.wl: Paclet discovery, name resolution, and definition loading for the paclet extension system, including multiple"AgentTools"entries per paclet, implicit bundles, and"AgentSkills"PreferencesContent.wl: Implementation ofCreatePreferencesContent, which builds the toolset configuration UI for the system preferences dialog (see preferences-content.md)Server/: MCP server implementation, split by transport so the local (stdio) and cloud (HTTP) servers share a common coreServer.wl: Aggregator that declares the server-session state shared across the subcontexts, defines the exported$MCPEvaluationEnvironment/$MCPTransporthost descriptors (bound per session/request by each transport) and the exported$StandaloneMCPServer/$StandaloneMCPServerInformationdescriptors of the standalone MCP server product (a kernel that only runs the MCP server; set only by the standalone application,False/<| |>everywhere else), and loads the children belowShared.wl: Transport-agnostic core — method dispatch (handleMethod), tool/prompt resolution, tool evaluation and result formatting, capability negotiation (initResponse), server-state build (initializeServerState), environment-specific tool overrides (applyToolOverrides, driven by the"Overrides"tool property), and logging helpersLocal.wl: Local stdio transport —StartMCPServer, the read loop (processRequest), tool warmup, and stdout-protecting output suppression (superQuiet); calls the usage-data hooks (initializeUsageData,recordUsageData)UsageData.wl: Usage data for local servers — per-session state ($mcpSessionID,$mcpClientInformation,$usageEvents), the product identity information included in every payload ($productIdentityInfo: the same license/machine/product data the paclet manager sends to the paclet server, which is why the data is not anonymous), the standalone MCP server descriptors included alongside it, the enabling logic (SUBMIT_USAGE_DATAenvironment variable, otherwise the servers'"EnableUsageData"property combined with the global opt-out fromGlobalSettings.wxfviagetGlobalUsageDataSetting/setGlobalUsageDataSetting, which the preferences checkbox reads and writes), the session file under$rootPath/UsageData, the hourly keep-alive task, and the locked submission of finished sessions to the usage endpointCloud.wl: Cloud HTTP transport —RunCloudMCPServer(stateless Streamable HTTP handler),CloudDeployMCPServer, the full-directory-bundle deploy implementation (cloudDeployDirectory) behind both theCloudDeployUpValue onMCPServerObject(the UpValue itself is defined inMCPServerObject.wl) and the exportedCloudDeployMCPServerBundlethat deploys/mcp, the landing page,/api/info, and the forced-Privateadmin page/API, the self-describing session-ID capability codec, server-embedding deploy helpers (including the cloud-paclet detection —$cloudSupportPacletVersion/cloudAgentToolsAvailableQ— that swaps the heavy definition-bundling payloads for light paclet-loading ones when the connected cloud account has a new-enough Wolfram/AgentTools installed), the landing-page/api/infometadata generator, and the owner-only/api/adminkey-management handler (runCloudAdminAPI: list/create/revokePermissionsKeys) (see Cloud Deployment spec)
SupportedClients.wl: Registry of supported clients ($SupportedClients;$SupportedMCPClientsis the subset with an MCP install location), including each client's MCP configuration location and agent skills locations ("SkillsLocation","SkillsProjectPath"), and relevant utility functionsValidateAgentToolsPacletExtension.wl: Validation of"AgentTools"paclet extensionsUIResources.wl: MCP Apps UI resource registry, client capability detection, and shared notebook delivery helpers (CloudDeploywhen cloud connected, the public notebook hosting API otherwise or as a fallback, and experimental inline embedding)Utilities.wl: General-purpose helpers — LLMKit subscription checks, Chatbook version verification, andtoJSRegexfor converting ICU/PCRE patterns to ECMA 262 (used when sanitizing tool schema"pattern"fields)YAML.wl: YAML import/export helpers (importYAML,importYAMLString,exportYAML,exportYAMLString) used by YAML-based MCP clients (e.g. Goose)Tools/: Contains several files defining predefined MCP tools used by default servers. If tool schemas are modified, rebuild the agent skills (wolframscript -f Scripts/BuildAgentSkills.wls) and commit the updatedAssets/AgentSkills/; a test inTests/AgentSkillsBuild.wltfails when the built skills are stale.Prompts/: Contains files defining predefined MCP prompts used by default servers
Assets/: Static assets bundled with the pacletAgentSkills/: The built agent skills (complete skill directories generated byScripts/BuildAgentSkills.wls; do not edit manually), shipped as the paclet's"AgentSkills"asset and deployed by the built-in$DefaultAgentToolsbundlesApps/: HTML and JSON files for MCP Apps UI resourcesCloud/: Landing- and admin-page HTML/CSS/JS for cloud-deployed MCP servers — the dynamicindex.html+assets/(fetches/api/info) and the self-contained owner-onlyadmin.html(calls/api/admin), read viaPacletObject[…]["AssetLocation","Cloud"]
FrontEnd/: FrontEnd extension resources loaded by the notebook front endAssets/AgentTools.wl: Localized strings (AgentToolsStrings) and graphics (AgentToolsExpressions) used byCreatePreferencesContent(see preferences-content.md)
Scripts/: Contains utility scripts for building, testing, and running the pacletBuildAgentSkills.wls: Builds the agent skills fromAgentSkills/intoAssets/AgentSkills/, or checks that they are up to date with--check(see agent-skills.md)Resources/AgentSkillsBuilder.wl: The loadable skill builder (contextWolfram`AgentSkillsBuilder`) used byBuildAgentSkills.wlsandTests/AgentSkillsBuild.wlt: generates the.wlsscripts from MCP tool definitions, copies the references, and stamps the version intoSKILL.mdResources/SkillScriptTemplate.wls: Template used to generate.wlsscripts for agent skills
AgentSkills/: Agent skill sources (see agent-skills.md); the built skills are inAssets/AgentSkills/Manifest.wl: Maps skill names to their MCP tools and shared referencesReferences/: Single-source shared reference files copied into every built skill at build timeSkills/: The hand-authoredSKILL.mdof each skill (Skills/<name>/SKILL.md, without aversionline), plus any hand-authored files of that skill directly inSkills/<name>/references/andSkills/<name>/scripts/, which the build copies into the built skill. The built skills inAssets/AgentSkills/<name>/(SKILL.mdwithmetadata.versionstamped,scripts/,references/) are generated byScripts/BuildAgentSkills.wlsand must not be edited manually — modify the source files (AgentSkills/,Scripts/Resources/SkillScriptTemplate.wls, and the corresponding tool definitions inKernel/Tools/) and rebuild instead.
.claude-plugin/: Claude Code plugin packagingmarketplace.json: Plugin marketplace definition for distributing agent skills via Claude Code (the plugins'sourceis./Assets/AgentSkills)
Notes/: Development notes and design explorationsDocumentation/: Contains documentation notebooksEnglish/: English documentationReferencePages/Symbols/: Reference pages for exported symbols- Use the ReadNotebook tool to read documentation notebooks as markdown text
TestResources/: Mock paclets and other test fixturesTests/: Contains test files (.wlt)Specs/: Design specifications for featuresdocs/: Developer documentationtesting.md: Writing and running testsbuilding.md: Building the paclet for distributionerror-handling.md: Error handling architecture and patternsservers.md: Predefined MCP servers and choosing the right onetools.md: MCP tools system, tool options, and how to add new toolsmcp-prompts.md: MCP prompts system and how to add new promptsmcp-clients.md: MCP client support and installationmcp-apps.md: MCP Apps system for interactive UI resourcescode-inspector-rules.md: Adding custom CodeInspector rulesagent-skills.md: Agent skills system, build process, and how to add new skillsdeploy-agent-tools.md: Deployment management for agent toolsagent-tools-objects.md:AgentToolsObjectbundles, agent skills,InstallAgentSkills/UninstallAgentSkills, and how deployments share skill directoriescloud-deployment.md: Deploying anMCPServerObjectas a remote HTTP MCP server in the Wolfram Cloud (CloudDeploy/CloudDeployMCPServer, directory layout, authentication, statelessness, admin key management)mcp-roots.md: MCP roots handshake, working-directory propagation, and guidance for tools that resolve relative pathspaclet-extensions.md: Third-party paclet extension system for contributing tools, prompts, and serverspreferences-content.md: System preferences UI for managing deployed Wolfram toolsetsusage-data.md: Usage data collected by the built-in local servers (what is recorded, including the product identity information that identifies the installation; the"SubmitUsageData"option,SUBMIT_USAGE_DATA, the global opt-out inGlobalSettings.wxf, storage and submission)
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.
- yesterday Changed · +16 tokens per session ae66b7d2beaa
- 15d ago Changed · +37 tokens per session 87e2b7fec626
- 18d ago Changed · +5 lines · +575 tokens per session f2889c902e2f
- 1mo ago Changed · +105 tokens per session f857151e0b6d
- 1mo ago Changed · +54 tokens per session c54b34621612
- 1mo ago First seen · 183 lines · 3,342 tokens per session scan A 16579a27904a
AgentTools AGENTS.md is an instructions file published in the GitHub repository WolframResearch/AgentTools (96 stars, last pushed yesterday), licensed MIT. It adds 4,129 tokens to every session, about $0.0165 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.