SLOPSHOPPER

ailang-brand

AILANG look for Claude Code: the AILANG version beside the prompt hint, compiler-flavoured spinner words (Unifying…, Inferring effects…), and /ailang for a…

newpanespinnercommandprocess
★ 34v0.1.0Apache-2.0updated 2026-10-02sunholo-data/ailang/tools/claude-mods/ailang-brand
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · ailang-brand
› fix the failing auth test and add an audit log call ⏺ Read(src/auth.ts) ⎿ Read 6 lines ⏺ Update(src/auth.ts) ⎿ Added 2 lines, removed 1 line ⏺ Bash(bun test) ⎿ 3 pass, 1 fail ● Done. refresh now rejects expired claims and logs an audit event. ✻ Unified for 42s · done 4:20 PM › /ailang ⎿ ailang-brand: AILANG (ailang not on PATH) ✻ Normalizing… ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts
README

<img src="docs/static/img/ailang-logo.svg" alt="AILANG Logo" width="128" height="128">

AILANG: The Deterministic Language for AI Coders

<!-- EXAMPLES_STATUS_START --> Examples License

Example status <!-- EXAMPLES_STATUS_END -->

Reliability Security Maintainability CodeQL OpenSSF Scorecard OpenSSF Best Practices

Third-party verification. AILANG is written autonomously by AI agents via its own coordinator. The badges above are independent static-analysis and supply-chain scores — not self-reported. The benchmark dashboard publishes the live correctness signal across current benchmark and model cohorts.

AILANG is a purely functional, effect-typed language designed as a deterministic execution substrate for AI-generated code. Every construct has deterministic semantics that can be reflected, verified, and serialized.

Documentation | Examples | Live Demos | Vision | Benchmarks


Quick Start

AILANG is designed to be used by AI coding agents. The AILANG Bootstrap packages the current language guidance, reusable skills, and local MCP tools for Claude Code and OpenAI Codex.

Install the AILANG CLI first:

curl -fsSL https://ailang.sunholo.com/install.sh | bash
ailang --version

The agent integrations call the local ailang executable, so it must be available on PATH.

With Claude Code

/plugin marketplace add sunholo-data/ailang_bootstrap
/plugin install ailang@sunholo-data/ailang_bootstrap

With OpenAI Codex

AILANG Bootstrap also ships a Codex plugin manifest. Add its stable marketplace:

# Required by the plugin's local MCP server on first launch
node --version
npm --version

codex plugin marketplace add sunholo-data/ailang_bootstrap --ref stable
codex plugin add ailang@ailang-marketplace
codex plugin list

Start a new Codex session after installation. Alternatively, after adding the marketplace, launch codex, enter /plugins, and install ailang from the AILANG marketplace. The plugin can also be installed from the Plugins directory in the Codex desktop app. Codex plugins are not currently available in the IDE extension.

Codex reads this repository's AGENTS.md automatically, whether or not the plugin is installed. The plugin adds the reusable AILANG skills and MCP tools; AGENTS.md supplies repository-specific workflows and guardrails.

What the Agent Package Provides

  • CLI integration - Skills and tools use the separately installed ailang executable
  • MCP tools - ailang_prompt, ailang_check, ailang_run, ailang_builtins, ailang_eval
  • Agent skills - AILANG authoring, debugging, messaging, design-doc, and sprint workflows
  • Teaching guidance - Current syntax rules via repository guidance, skills, and ailang prompt

The packaging is intentionally native to each host:

CapabilityClaude CodeCodex
Persistent guidanceCLAUDE.mdAGENTS.md
Reusable workflowsPlugin skillsPlugin skills
Local AILANG MCP toolsYesYes
Host-native commandsClaude slash commandsSkills and MCP tools
AILANG Bootstrap hooksClaude hooksNot currently packaged

Once installed, ask the agent to write AILANG code. All agents should run ailang prompt before authoring .ail files; it is the installed CLI's source for current syntax and idioms.

See ailang_bootstrap for details.

The installer detects your OS and architecture automatically. To pin a release:

curl -fsSL https://ailang.sunholo.com/install.sh | VERSION=v0.33.1 bash
# macOS (Apple Silicon)
curl -L https://github.com/sunholo-data/ailang/releases/latest/download/darwin.arm64.ailang.tar.gz | tar -xz
sudo mv ailang /usr/local/bin/

# macOS (Intel)
curl -L https://github.com/sunholo-data/ailang/releases/latest/download/darwin.x64.ailang.tar.gz | tar -xz
sudo mv ailang /usr/local/bin/

# Linux
curl -L https://github.com/sunholo-data/ailang/releases/latest/download/linux.x64.ailang.tar.gz | tar -xz
sudo mv ailang /usr/local/bin/

# From source
git clone https://github.com/sunholo-data/ailang.git
cd ailang && make install

# Verify
ailang --version

For complete setup instructions, see the Getting Started Guide.

Hello World

module examples/hello_world

import std/io (println)

export func main() -> () ! {IO} {
  println("Hello, World!")
}
ailang run --caps IO examples/hello_world.ail
# Output: Hello, World!

Interactive REPL

ailang repl

λ> 1 + 2
3 :: Int

λ> let double = \x. x * 2 in double(21)
42 :: Int

λ> :type \x. x + x
\x. x + x :: ∀α. Num α ⇒ α → α

λ> :quit

Key Features

  • Pure functional - Lambda calculus, closures, pattern matching, ADTs
  • Type inference - Hindley-Milner with row polymorphism
  • Effect system - Capability-based security (IO, FS, Net, Clock, AI)
  • Deterministic - Replayable execution, structured traces
  • AI-first - Designed for machine reasoning, not human convenience
  • LSP - ailang lsp --stdio ships in the binary: diagnostics, hover types, go-to-def, references, document symbols. One-command VS Code install: ailang editor install vscode (guide)

Learn more: Why AILANG? | No Loops Design | Go Interop | Stability Promise (1.x)


Development

make install    # Build and install
make test       # Run all tests
make repl       # Start REPL
make lint       # Run linter

Guides:


Project Structure

ailang/
├── cmd/ailang/     # CLI
├── internal/       # Compiler (lexer, parser, types, eval, effects)
├── std/            # Standard library (std/io, std/fs, std/json, std/zip, std/xml, etc.)
├── examples/       # Example and reference programs
├── docs/           # Documentation website source
└── design_docs/    # Design documents

License

Apache 2.0 - See LICENSE

AILANG draws inspiration from Haskell, OCaml, Rust, and Idris/Agda.


For AI agents: Deterministic functional language with Hindley-Milner type inference, algebraic effects, and explicit effect tracking. Read AGENTS.md, then use ailang prompt for current language guidance.

Source 1 files
hooks/register.tsx 82 lines
1import type { EngineInterface, Register } from 'claude-code'
2
3const PANE = 'ailang-brand'
4
5// Present / past pairs; the engine samples its own word per turn, and we map
6// it onto this list by hash so one turn keeps one word.
7const WORDS: readonly (readonly [string, string])[] = [
8  ['Unifying', 'Unified'],
9  ['Inferring effects', 'Inferred effects'],
10  ['Elaborating', 'Elaborated'],
11  ['Monomorphizing', 'Monomorphized'],
12  ['Pattern-matching', 'Pattern-matched'],
13  ['Checking contracts', 'Checked contracts'],
14  ['Lowering to bytecode', 'Lowered to bytecode'],
15  ['Folding', 'Folded'],
16  ['Normalizing', 'Normalized'],
17  ['Resolving modules', 'Resolved modules'],
18]
19
20/** Pure: a stable index for a word. */
21export function pick(word: string): readonly [string, string] {
22  let h = 0
23  for (const c of word) h = (h * 31 + c.charCodeAt(0)) >>> 0
24  return WORDS[h % WORDS.length]!
25}
26
27let version = ''
28
29async function readVersion($: EngineInterface): Promise<void> {
30  try {
31    const run = await $.process.run(['ailang', '--version'], { timeoutMs: 5_000 })
32    version = run.stdout.match(/AILANG (v[0-9][^\s-]*)/)?.[1] ?? ''
33  } catch {
34    version = ''
35  }
36}
37
38export const register: Register = on => {
39  version = ''
40
41  on('session.start', async ($, e, next) => {
42    await $.command.register({ name: 'ailang', description: 'AILANG: logo, version and the mods you have' })
43    await readVersion($)
44    return next(e)
45  })
46
47  on('command.run', { command: 'ailang' }, async $ => {
48    await $.ui.open({ id: PANE, title: 'AILANG' })
49    return { text: `AILANG ${version || '(ailang not on PATH)'}` }
50  })
51
52  // Beside "? for shortcuts" under the prompt.
53  on('ui.render', { component: 'PromptHint' }, ($, e, next) =>
54    next({ ...e, props: { ...e.props, tail: `${e.props.tail ?? ''}  λ AILANG${version ? ` ${version}` : ''}` } }))
55
56  on('ui.render', { component: 'Spinner' }, ($, e, next) =>
57    e.props.message ? next(e) : next({ ...e, props: { ...e.props, word: pick(e.props.word)[0] } }))
58
59  on('ui.render', { component: 'TurnDuration' }, ($, e, next) =>
60    next({ ...e, props: { ...e.props, word: pick(e.props.word)[1] } }))
61
62  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
63    const elements = $.ui.resolve(e)
64    const { Box, Text } = elements
65    // Image is on the terminal and desktop tables; the terminal shows the
66    // picture where it speaks the kitty graphics protocol, the alt text elsewhere.
67    const logo = 'Image' in elements
68      ? <elements.Image
69          source={{ png: (await $.fs.read(`${$.plugin.root}/assets/ailang-logo.png`, { as: 'bytes' })).base64 }}
70          columns={24} rows={11} alt="λ AILANG" />
71      : <Text bold color="cyan">λ</Text>
72    return (
73      <Box flexDirection="column" alignItems="center">
74        {logo}
75        <Text bold>{`AILANG ${version}`}</Text>
76        <Text dimColor>The AI-first programming language</Text>
77        <Text dimColor>/ail-lens · /ail-inbox · ailang prompt</Text>
78      </Box>
79    )
80  })
81}
82