agentleFS
hoansdzhoansdz/Autolang/llms.txt

Autolang

llms.txt9 starsChanged 59 days agoMITView on GitHub

An orchestration language designed from the ground up for AI to write correctly the first time - with strict host-governed capabilities. Autolang is an AI-native orchestration language and deterministic virtual machine. It solves the critical bottleneck of executing untrusted AI-generated code in production. Executing AI-generated Python or JavaScript exposes dynamic runtimes with ambient authority, arbitrary imports, and unpredictable memory consumption. Conversely, forcing models into unfamiliar domain-specific languages causes syntax failures and hallucinated keywords. Autolang bridges this gap through two architectural…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

We split this llms.txt into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not a replacement for Python, TypeScript, or Go (host applications retain business logic and register capabilities).

    line 41
  2. Very specific:

    Not a replacement for Docker, KVM, or Firecracker (Autolang operates at the language runtime layer, complementing containerization for …

    line 42
  3. Distinctive:

    Not a general-purpose programming language for building monolithic systems.

    line 43
  4. Distinctive:

    Does not have a public package registry (orchestration scripts interact directly with host backend services rather than pulling third-party …

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# Autolang

> An orchestration language designed from the ground up for AI to write correctly the first time - with strict host-governed capabilities.

## Purpose & Positioning

Autolang is an AI-native orchestration language and deterministic virtual machine. It solves the critical bottleneck of executing untrusted AI-generated code in production.

Executing AI-generated Python or JavaScript exposes dynamic runtimes with ambient authority, arbitrary imports, and unpredictable memory consumption. Conversely, forcing models into unfamiliar domain-specific languages causes syntax failures and hallucinated keywords.

Autolang bridges this gap through two architectural pillars:

- **Surface Match with Kotlin:** Adopts syntax patterns language models are already familiar with (`val`, `var`, `if/else`, `when`, `?.`, `arrayOf()`). LLMs generate valid orchestration code on the first attempt (maximizing Pass@1) without requiring specialized prompting or fine-tuning.
- **Intentional Scope:** Deliberately omits human-scale architectural constructs (interfaces, reflection, deep inheritance, coroutines). Restricting the grammar strictly to workflow control flow eliminates failure surfaces, prevents over-engineering, and minimizes syntax drift.

---

## 3-Layer Defense Model

Autolang enforces structural safety between untrusted AI code and your host backend:

1. **Compiler Layer (Static Validation & Diagnostics):** Enforces strict static type checking and symbol resolution before execution. Generates structured diagnostics with available capabilities to assist autonomous model convergence, while absorbing common syntax drift at the compiler boundary.
2. **Capability Layer (Host Authority & Default Deny):** The AI never receives database credentials, raw network sockets, or operating system primitives. The host application explicitly exposes discrete capabilities. The AI script acts solely as an orchestrator across registered functions.
3. **VM Layer (Deterministic Resource Bounding):** Executes bytecode inside a custom virtual machine bounded by opcode instruction limits and managed memory quotas. Runaway compute or excessive allocations terminate automatically, protecting host stability.

---

## Why Autolang Over Sequential Tool Calling

Tool calling is suitable for single, isolated external queries. When an agent must evaluate collections, process batch records, or execute multi-step business logic, sequential tool calling incurs compounding network latency, escalating token costs, and fragile retry chains.

With Autolang:
- The model generates the entire orchestration workflow once.
- The script compiles and executes locally inside the VM against host capabilities in ~1 ms.
- Intermediate variables, loops, and conditional branching resolve deterministically without repeated LLM deliberation.

---

## What Autolang is NOT

- Not a replacement for Python, TypeScript, or Go (host applications retain business logic and register capabilities).
- Not a replacement for Docker, KVM, or Firecracker (Autolang operates at the language runtime layer, complementing containerization for defense-in-depth).
- Not a general-purpose programming language for building monolithic systems.
- Does not have a public package registry (orchestration scripts interact directly with host backend services rather than pulling third-party packages).

---

## Key Technical Specifications

- Cold start: < 10 ms (native C++), ~20 ms (Node.js / WASM)
- Warm execution: ~1-2 ms
- Memory footprint: ~0.5 MB base runtime, ~3.8 MB peak for 1,800-line test suites
- Memory management: Deterministic reference counting with hot-restart arenas (< 1 ms cleanup)
- Opcode execution limits to prevent infinite loops
- First-class null safety (`?.`, `??`, `!`)
- Declarative host bindings via `@native` and `@js_object` annotations

---

## Repository Layout

- `src/frontend/` - Lexer, parser, AST builder, and type checker (`ACompiler.hpp`, `ACompiler.cpp`, `Debugger.cpp`)
- `src/backend/vm/` - Bytecode virtual machine, memory arena, and notifier (`AVirtualMachine.hpp`, `ANotifier.hpp`)
- `src/shared/` - Core object models and tagged union representations (`AObject.hpp`, `Type.hpp`)
- `src/backend/libs/` - Standard built-in capabilities
- `tests/` - Test harness and language correctness test suites
- `examples/` - Host embedding examples for Node.js/TypeScript and C++

---

## TypeScript / Node.js Host Integration

```typescript
import { ACompiler } from "autolang-compiler";

const compiler = new ACompiler();

// Host registers explicit capabilities under default-deny
compiler.registerBuiltInLibrary(
    "inventory/catalog",
    `
        class Product(
            inStock: Bool,
            price: Int
        )

        @js_object
        class InventoryService {
            @native("getItems")
            fun getItems(): Array<Product>
        }
    `,
    { autoImport: true },
    {
        getItems: () => backendInventoryService.listCurrentStock()
    }
);

// AI generates multi-step orchestration script
await compiler.compileAndRun("classify.atl", `
    var premiumAvailable = 0
    var standardAvailable = 0

    InventoryService.getItems()
        .filter {|item| item.inStock}
        .forEach {|item|
            when (item.price) {
                > 100 -> premiumAvailable += 1
                else  -> standardAvailable += 1
            }
        }

    println("Premium available: " + premiumAvailable)
    println("Standard available: " + standardAvailable)
`);
```

---

## Build Instructions

### C++ Native

Requires CMake 3.20+ and a C++17 compliant compiler:

```bash
cmake -B build -S . && cmake --build build --config Release
```

Run test suite:

```bash
./build/autolang
```

### npm Package

```bash
npm install autolang-compiler
```

---

## Documentation

Comprehensive documentation, architectural specifications, and interactive playground:
https://autolang.vercel.app/docs

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.