Slang AI Agent

by riktar• 30•• Scanned•Claim this listing•Request removal
Productivity & Workflowagentic aiagentic ai developmentagentic engineeringagentic workflowllm agent

A declarative meta-language for orchestrating multi-agent workflows. Readable by humans. Executable by LLMs. Portable across models.

Slang is an open-source ai agent by riktar, written mainly in TypeScript, with 30 GitHub stars and the MIT license. Its code was last updated Jul 1, 2026. The latest npm release is @riktar/slang 0.8.1, published Jul 1, 2026, with 8 downloads last week.

<h1 align="center">🗣️ SLANG</h1> <p align="center"> <img src="slang.png" alt="SLANG" width="200"/> </p> <p align="center"> <strong>Your AI workflow in a format anyone on the team can read, edit, and validate.</strong><br/> Write the workflow in SLANG, your favorite LLM runs it. No code needed.<br/> </p> <p align="center"> <a href="#two-ways-to-use-slang">How it works</a> • <a href="#quick-start">Quick Start</a> • <a href="#why-slang">Why SLANG</a> • <a href="docs/IDE.md">IDE Support</a> • <a href="docs/PLAYGROUND.md">Playground</a> • <a href="docs/CLI.md">CLI</a> • <a href="docs/API.md">API</a> • <a href="docs/MCP.md">MCP</a> • <a href="SPEC.md">Spec</a> • <a href="GRAMMAR.md">Grammar</a> </p>

The entire language in 30 seconds.

flow "research" {
  agent Researcher {
    tools: [web_search]
    stake gather(topic: "quantum computing") -> @Analyst
  }
  agent Analyst {
    await data <- @Researcher
    stake analyze(data) -> @out
    commit
  }
  converge when: all_committed
}

That's it. Three primitives. Your PM can read it. Your analyst can edit it. Your LLM can run it. No Python, no TypeScript — just intent.

Everything else follows from these:

PrimitiveWhat it does
stakeProduce content and send it to another agent (or execute locally)
awaitBlock until another agent sends you data
commitAccept the result and stop

Plus control flow: when/else conditionals, let/set variables, repeat until loops.


Two ways to use SLANG

Here's the thing: the same .slang file runs two different ways. Paste it into ChatGPT? Works. CLI? Works. API? Works. You pick.

<table> <tr> <td width="50%" valign="top">

🧠 Zero-Setup Mode

No install, no API key, no runtime.

  1. Copy the system prompt
  2. Paste into ChatGPT, Claude, Gemini (pick any LLM)
  3. Paste your .slang flow
  4. Done

The LLM becomes your runtime. Perfect for non-developers, quick prototyping, or when you just want it to work — no install, no code, no friction.

</td> <td width="50%" valign="top">

⚡ CLI / API / MCP Mode

Full runtime. Real tools. 300+ models via OpenRouter. Parallel execution.

npm install -g @riktar/slang
slang init my-project && cd my-project
slang run hello.slang

Checkpoint and resume. Deadlock detection. Structured output. Everything you need for real workflows.

</td> </tr> </table>
FeatureZero-SetupCLI / API / MCP
Parse & execute flows✅✅
All primitives (stake, await, commit, escalate)✅✅
Conditionals (when / if / else)✅✅
Variables (let / set)✅✅
Loops (repeat until)✅✅
deliver: post-convergence hooks❌✅ real handlers
model: multi-provider routing❌ single LLM✅ 300+ models
tools: functional execution❌ simulated✅ real handlers
Parallel agents❌ sequential✅ Promise.all
retry: with exponential backoff❌✅
output: structured contracts✅ best-effort✅ enforced
Checkpoint & resume❌✅
Static analysis & deadlock detection❌✅
IDE support (LSP, syntax highlighting)❌✅
Web playground❌✅

Start with zero-setup to prototype. Move to CLI or API when you're ready to ship. Same file both ways.


Quick Start

1. Install

npm install -g @riktar/slang

2. Scaffold a project

slang init my-project
cd my-project

This creates hello.slang, research.slang, tools.js, and .env.example. Everything you need.

3. Configure your API key

cp .env.example .env    # edit with your API key (SLANG loads it automatically)

4. Run your first flow

slang run hello.slang                        # echo adapter (no API key needed)
slang run hello.slang --adapter openrouter   # uses OPENROUTER_API_KEY from .env

5. Open the playground

slang playground
# Opens http://localhost:5174 - write, inspect, and visualize flows in the browser

Why SLANG?

It's not a framework. It's a shared language for your team.

SLANG is Super Language for Agent Negotiation & Governance

LangChain, CrewAI, AutoGen — they're SDKs. Python/TypeScript libraries. Only developers can use them. Everyone else has to wait, ask, or guess what the workflow actually does.

SLANG is a language anyone can read and write. Your PM defines the workflow. Your analyst tweaks the logic. Your developer hooks it up to real tools. Everyone works on the same .slang file.

SQLSLANG
Doesn't replace C/JavaDoesn't replace Python/TypeScript
Non-devs write queriesNon-devs write workflows
Readable by the whole teamSame — anyone reads and edits it
LLMs generate itLLMs generate it
Not complete. That's the pointNot general-purpose. That's the point

No code needed.

Describe what your agents should do. SLANG reads like plain English:

flow "hybrid-analysis" {
  agent Researcher {
    tools: [web_search]
    stake gather(topic: "quantum computing") -> @Analyst
    commit
  }
  agent Analyst {
    await data <- @Researcher
    stake analyze(data) -> @out
    commit
  }
  converge when: all_committed
}

Paste it into ChatGPT and it runs. Use the CLI for production with 300+ models via OpenRouter. Same file, zero vendor lock-in.

The .slang file is the documentation.

Read this flow out loud:

"The Researcher stakes gather on "quantum computer" topic and sends it to the Analyst. The Analyst awaits the data, analyzes it, and sends the output to the user. The flow stop when the Researcher and the Analyst have committed their job"

No diagrams, no comments, no docs needed. Show the .slang file in a meeting and everyone understands what the AI workflow does.

Who is SLANG for?

AudienceWhy
PMs & business peopleWrite AI workflows without code. Describe what agents should do, paste into ChatGPT, and it runs. Your automation, your way.
Analysts & opsEdit and validate workflows yourself. No waiting for engineering. Review the logic, tweak parameters, run it.
Developers10 lines, 60 seconds, it runs. Skip the boilerplate, hook up real tools when you need them.
TeamsOne .slang file everyone can read. The PM writes it, the dev ships it, the analyst audits it. Same source of truth.

SDK comparison

SDK (LangChain, CrewAI)SLANG
Who can use itDevelopers onlyAnyone on the team
Time to first workflowHours60 seconds
Who reads / reviews itDevelopers onlyPMs, analysts, developers, LLMs
LLMs can generate itNo (boilerplate is messy)Yes (text-to-SLANG like text-to-SQL)
Runtime neededYes, alwaysOptional — paste into ChatGPT and it works
DocsSeparate filesThe .slang file is the documentation

SLANG isn't trying to replace SDKs. Like SQL didn't replace Java. It's a different category: workflows that everyone on the team can own.


IDE Support

See docs/IDE.md for VS Code, Neovim, Vim, Sublime, JetBrains, and other LSP-compatible editors.


Playground

See docs/PLAYGROUND.md for web editor features and usage.


CLI

See docs/CLI.md for all commands, options, and environment variables.


API

See docs/API.md for programmatic usage, adapters, tools, and checkpointing.


MCP Server

See docs/MCP.md for Model Context Protocol integration with Claude Desktop.


How it works

Your .slang file goes through these stages:

Source → Lexer → Parser → AST → Resolver → Graph → Runtime → Result
StageWhat happens
LexerBreaks source into tokens (with line/column info)
ParserRecursive-descent, builds typed AST, recovers from errors
ResolverBuilds dependency graph, checks for deadlocks
RuntimeSchedules agents, mailbox, parallel dispatch, tools
AdaptersConnect to LLMs (OpenAI, Anthropic, OpenRouter, etc)
LSPLanguage Server: diagnostics, completion, go-to-def, hover
PlaygroundWeb editor (React + Vite) with visualization, tests

Examples

Examples are in the examples/ folder. Each demonstrates different patterns and features:

slang run examples/hello.slang                                     # Minimal flow
slang run examples/research.slang --adapter openrouter --tools examples/tools.js
slang check examples/broadcast.slang                               # Dependency analysis

See each .slang file for inline documentation.

Contributing

See CONTRIBUTING.md for guidelines.

Slang alternatives

View more →

Similar ai agents in Productivity & Workflow, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Slang (this page)
riktar
30MITJul 1, 2026Scanned, no flagged issues
Paperclip
paperclipai
110kMITNov 1, 2026Scanned, no flagged issues
Ppt Master
hugohe3
72kMITOct 30, 2026Scanned, no flagged issues
Llama Index
run-llama
53kMITOct 26, 2026Scanned, see report
Nanobot
HKUDS
50kMITOct 31, 2026Scanned, no flagged issues
Sim
simstudioai
30kApache-2.0Nov 1, 2026Scanned, see report