AINL

AINL is a skill for Claude Code, Codex from sbhooley/ainativelang. It costs 24 tokens per session (827 once invoked), scanned A, original, Apache-2.0.

A system for turning workflows into compiled, repeatable graphs for Hermes Agent. Hermes Agent is an AI assistant, while MCP is a standard way for an assistant to use tools.

In plain words
What is it for?
It helps import, compile, and run `.ainl` workflow files in Hermes Agent and expose them as MCP tools.
Why use it?
It provides a checkable workflow source instead of relying on improvised prompt sequences. This can make repeated tasks more predictable and support a feedback loop for improving them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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 skills/sbhooley/ainativelang/hermes
Any agent
npx skills add sbhooley/ainativelang --skill hermes
Clone the repo
git clone --depth 1 https://github.com/sbhooley/ainativelang

Made for: Claude Code, Codex.

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 AINL

README.md
[![agentmods](https://agentmods.dev/badge/skills/sbhooley/ainativelang/hermes.svg)](https://agentmods.dev/skills/sbhooley/ainativelang/hermes)
Your own site
<a href="https://agentmods.dev/skills/sbhooley/ainativelang/hermes"><img src="https://agentmods.dev/badge/skills/sbhooley/ainativelang/hermes.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 827 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00024 $0.00827
Opus 5 $0.00012 $0.00413
Sonnet 5 $0.00005 $0.00165
Haiku 4.5 $0.00002 $0.00083

Measured 6d ago against content hash 355443111336, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

AINL 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 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (ainl_hermes_bridge.py, armaraos-a2a-bridge/armaraos_a2a_bridge.py, armaraos-a2a-bridge/hermes_chat_delegate.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/hermes/SKILL.md · 74 lines

What it actually says

AINL for Hermes Agent

AINL is an AI-native language that compiles deterministic graphs. In Hermes Agent, use it to import workflows, compile them, run them, and expose ainl-mcp tools to the agent for safe, repeatable execution.

Package: ainativelang v1.8.0 (this tree; PyPI after publish — docs/RELEASING.md). Optional extras: [mcp], [solana].

Agent instructions

Follow this skill when the user is on Hermes Agent (or wants a closed learning loop on top of deterministic .ainl graphs). Prefer ./install.sh from a checked-out skill folder, or the manual path:

pip install 'ainativelang[mcp]' && ainl install-mcp --host hermes

After bootstrap, suggest the prompt below when it fits.

When to use this skill

  • The user wants portable, compiled workflows (.ainl) instead of ad-hoc prompt loops.
  • They mention import, compile, skills, learning loop, or MCP.
  • They want Hermes to evolve behavior while keeping a strict, checkable graph source of truth.

Install (pick one)

  1. From this skill directory: run ./install.sh
    That upgrades ainl[mcp] (if needed), installs a skill folder to ~/.hermes/skills/ainl/, and wires MCP via ainl install-mcp --host hermes.

  2. Manual:
    pip install 'ainativelang[mcp]' && ainl install-mcp --host hermes

After install — prompt suggestion

Tell the user they can say in Hermes:

Import the morning briefing using AINL.

MCP

Hermes reads MCP config from ~/.hermes/config.yaml under mcp_servers. The host should run ainl-mcp as a stdio MCP server. ainl install-mcp --host hermes merges that entry when missing.

Bridge (optional)

This pack includes ainl_hermes_bridge.py as a lightweight utility for:

  • writing AINL trajectory/audit tapes into Hermes-friendly local memory files
  • exporting Hermes-evolved behaviors back into .ainl (so you can re-run ainl check --strict)
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. 6d ago First seen · 74 lines · 24 tokens per session scan A 355443111336

Subscribe to this mod's changes

AINL is a skill published in the GitHub repository sbhooley/ainativelang (671 stars, last pushed 2d ago), licensed Apache-2.0. It adds 24 tokens to every session and 827 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories