Extend Argy Code: skills, modules, MCP, LSP
Add skills, deterministic modules (bundles), MCP servers, LSP servers, plugins and specialized roles to Argy Code.
Argy Code is extended through several complementary mechanisms: skills to hand over your procedures, deterministic modules to publish automations to the catalog, MCP servers to plug in external tools, language servers (LSP), plugins and specialized roles. This page is for developers and platform teams who want to adapt the tool to their practices.
Skills
A skill is a SKILL.md file with a frontmatter that describes a reusable procedure (how to review code against your conventions, how to prepare a release…). The agent loads it when the task fits.
Where to put a skill
| Location | Notes |
|---|---|
.argy/skill/ or .argy/skills/ (**/SKILL.md) | Project skills. |
.claude/skills and .agents/skills | External skills, global then project; the project wins. |
Paths listed in skills.paths | Extra folders declared in argy.json. |
Use a skill
- As a slash command in the session;
/skillslists available skills (Slash commands and interface). - Through the
skilltool, called by the agent. - At launch:
argy run --skill <name>(Automation). - To check what is discovered:
argy debug skill.
The ARGY_DISABLE_EXTERNAL_SKILLS and ARGY_DISABLE_CLAUDE_CODE_SKILLS variables disable discovery of external skills. The native crafter agent can write a skill for you (see Agents and modes).
Deterministic modules (bundles)
A deterministic module is a code package (node, bun or python runtime) with a module.json manifest, which the platform runs identically every time. The CLI covers the whole cycle, from a local scaffold to publication in the catalog. Published modules appear in the portal catalog (Projects and modules), and the platform API exposes the same operations (Platform API).
Lifecycle
init → run (local dry-run) → validate → package → create → upload → publish → deploy
| Command | Effect | Network |
|---|---|---|
argy modules init <dir> | Creates a scaffold with mocked tests and the host ABI. | No |
argy modules run <dir> | Local dry-run with simulated dependencies. Never publishes. | No |
argy modules validate <dir> | Validates the module and its bundled entrypoint. | No |
argy modules package <dir> | Builds a deterministic ZIP and its SHA-256. | No |
argy modules create <dir> | Creates a private draft and uploads the bundle to it. | Yes |
argy modules upload <dir> | Uploads an immutable version to an existing module (--module-id). | Yes |
argy modules publish <dir> | Creates, uploads and publishes a version. | Yes |
To browse the catalog: argy modules list (alias ls), argy modules search <query> and argy modules info <id>.
Create a module
argy modules init ./my-module --name my-module
argy modules run ./my-module --input '{"name":"test"}' --json
argy modules validate ./my-module
argy modules package ./my-module --output ./my-module/dist/module.zip --json
package requires --output (or --dry-run): without either, the command fails with the OUTPUT_REQUIRED code. The destination must be inside the module's dist/ folder. The JSON output contains digestSha256, the SHA-256 digest of the archive, along with sizeBytes and output. Review the archive, then keep this digest: it ties publication to what you examined.
init option | Description |
|---|---|
--name | Module name (defaults to the folder name). |
--runtime | node (default), bun (opt-in; Bun local dry-run is macOS only) or python (Python 3.11, standard library and vendored pure dependencies). |
--force | Replaces only generated files and preserves the others. |
--json | Machine-readable result. |
Test locally with argy modules run
run executes the module with simulated dependencies. It never reaches the real network.
| Option | Description |
|---|---|
--config | moduleConfig JSON object (not a path), validated against configSchema. |
--input | JSON input object (not a path). Defaults to {}. |
--fixtures | JSON lists of simulated requests/responses: http, tools, inference, notifier; optional fixed time; unboundSecrets to simulate unbound optional secrets. |
--timeout | Local process timeout in milliseconds (maximum 120,000, 10,000 by default). |
--json | Machine-readable result or diagnostics. |
Publish
The create, upload and publish commands change the platform and accept the same options.
| Option | Description |
|---|---|
--module-id | ID of the existing module (required for upload). |
--sha256 | Expected lowercase SHA-256 of the bundle; on a mismatch the command fails (DIGEST_MISMATCH). |
--visibility | PRIVATE, ORGANIZATION or PUBLIC; rejected by upload. |
--output | ZIP inside the module's dist/ folder; an identical archive is reused, never overwritten. |
--dry-run | Validates and builds without writing or calling the network. |
--yes | Confirms creation, upload or publication. |
--non-interactive | Never prompts; any remote mutation then requires --yes. |
--publish-only | (publish) Verifies and publishes an already uploaded bundle without re-uploading it. |
--json | Machine-readable output. |
The recommended flow ties every remote mutation to the archive you reviewed. Replace <digest> with the digestSha256 value noted at the package step (64 lowercase hexadecimal characters):
Every version is immutable: create already uploads the archive, and a second upload of the same version is rejected by the catalog. So follow one of the two paths below, never both in a row on the same version.
First version of a module. create makes the draft and uploads the archive; publish --publish-only then publishes that version without uploading it again.
# 1. Simulation: no writes, no network calls. Prints the same digestSha256.
argy modules publish ./my-module --dry-run --json
# 2. Create the private draft and upload the archive, bound to the reviewed digest.
# Note the module ID (moduleId) returned.
argy modules create ./my-module --sha256 <digest> --yes --non-interactive
# 3. Publish the already uploaded version, without re-uploading the archive.
argy modules publish ./my-module --module-id <uuid> --publish-only --sha256 <digest> --yes --non-interactive
New version of an existing module. First bump the version in module.json, then package again: the new archive has a new digest, which you review before using it. upload --module-id uploads that version, then publish --publish-only publishes it.
# 1. After changing the version: new packaging and new digest.
argy modules package ./my-module --output ./my-module/dist/module.zip --json
# 2. Upload the new version to the existing module, bound to the new digest.
argy modules upload ./my-module --module-id <uuid> --sha256 <new-digest> --yes --non-interactive
# 3. Publish that version, without re-uploading the archive.
argy modules publish ./my-module --module-id <uuid> --publish-only --sha256 <new-digest> --yes --non-interactive
If the folder changed since the review, the recomputed digest no longer matches and the command stops with DIGEST_MISMATCH, before any remote write. Without --sha256, nothing compares the folder with what you reviewed. To change visibility, use publish with --visibility, never upload. Always run a --dry-run before publishing. Once published, deploy with argy deploy and follow the run with argy runs (Automation). In a session, the agent's Studio tools (bundle creation and publication) ask for confirmation by default (Permissions and security).
The
argy modules initandargy modules runcommands are recent; check their availability withargy modules --helpon your version.
MCP servers
MCP (Model Context Protocol) plugs external tools and prompts into Argy Code. Servers are declared under the mcp configuration key.
| Type | Fields |
|---|---|
local | command (command and arguments), environment, enabled, timeout in milliseconds (5,000 by default). |
remote | url, headers, enabled, oauth (clientId, clientSecret, scope, callbackPort, expectedIssuer, or false to disable). |
{
"mcp": {
"documentation": {
"type": "remote",
"url": "https://mcp.example.com",
"oauth": { "callbackPort": 19876 },
},
"local-tool": {
"type": "local",
"command": ["node", "./mcp/server.js"],
"environment": { "API_KEY": "{env:MY_API_KEY}" },
},
},
}
argy mcp add,argy mcp list(aliasls),argy mcp auth [name]for OAuth authentication,argy mcp logout [name]andargy mcp debug <name>manage servers./mcpsshows them in the interface.- For a remote server that requires OAuth,
callbackPortpins the local port of the authorization callback (19876 by default) and avoids conflicts in CI or with several instances;expectedIssuervalidates the authorization issuer. - MCP prompts are exposed as slash commands. To turn a server off without removing it, set
"enabled": falsein itsmcpentry. - Use
{env:NAME}to keep secrets out of the file.
Machine mode (argy run --machine) disables MCP (Permissions and security).
LSP servers
Argy Code relies on language servers for code analysis. Built-in servers cover TypeScript, Python, Go, Rust, Java, C and C++, C#, Ruby, PHP, Kotlin, Swift, Terraform, YAML, Bash and Dockerfile, among others. Depending on the language, some servers are downloaded automatically; ARGY_DISABLE_LSP_DOWNLOAD disables that download. The lsp key lets you declare a custom server (with the file extensions it handles). Diagnostics: argy debug lsp.
Formatters
Argy Code can format the files it modifies with common formatters (prettier, gofmt, ruff…). Declare your formatting commands under the formatter key, or disable everything with "formatter": false.
Plugins and custom tools
| Mechanism | Location | Notes |
|---|---|---|
| Plugins (event hooks) | .argy/plugin/ (.ts or .js) or the plugin key | argy plug install <local path>, argy plug list, argy plug remove <name>. |
| Custom tools | .argy/tool/ or .argy/tools/ (.js, .ts) | Can call scripts in other languages. Disabled in machine mode. |
A plugin or tool runs code: review it like any dependency before installing it. ARGY_DISABLE_DEFAULT_PLUGINS disables default plugins.
Custom agents
A custom agent defines a role, a model, tools and permissions. There are three ways to create one:
argy agent create: guided creation (--path,--description,--mode all|primary|subagent,--tools,-m).- A
.mdfile in.argy/agent/. - The
agentconfiguration key.
agent key field | Description |
|---|---|
description, prompt | Role and instructions of the agent. |
mode | subagent, primary or all. |
model, variant, temperature, top_p | Model settings. |
permission | Authorization rules of the agent. tools (enable or disable a tool) still exists but is deprecated in favor of permission. |
steps | Maximum iterations per request. |
hidden, color, disable | hidden hides a sub-agent from @ autocomplete; color accepts a hex code or a theme color; disable: true turns off a native agent. |
{
"agent": {
"security-reviewer": {
"description": "Reviews changes from a security angle",
"mode": "subagent",
"permission": { "edit": "deny", "bash": "ask" },
},
},
}
Then call the agent with @security-reviewer in a message, or pick it with --agent. See Agents and modes. Delegation depth (2 by default) is tuned with ARGY_MAX_DELEGATION_DEPTH.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
A skill does not appear in /skills | Wrong location or invalid frontmatter | Check with argy debug skill and the SKILL.md path. |
argy modules publish refuses to write | --yes missing in non-interactive mode | Add --yes, after a --dry-run. |
argy modules upload rejects --visibility | upload does not accept this option | Use create or publish to change visibility. |
| A remote MCP server fails to authenticate | OAuth not completed or callback port busy | Run argy mcp auth <name>; pin callbackPort if needed. |
| A slash command from an MCP server or skill is ignored | Collision with a built-in or user command | Rename it: a third-party source never replaces an existing command. |