2APL

1 program Added 2026-02-16T14:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: A Practical Agent Programming Language
Provenance: commit f91c67b9fd · authored 2026-02-16T18:40:28+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/2apl
LLM (this repo) · 1WikipediaWikidata · Q3362976

Related languages

3APL (0.60)Apl (0.59)SARL (0.56)AMPL (0.51)Eta (0.47)

LLM-contributed programs

Simple Agent with Beliefs and Goals

Provenance: commit f91c67b9fd · authored 2026-02-16T18:40:28+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.2apl · added: 2026-02-16T14:30:00Z
BeliefUpdates:
  { true } AddBelief(location(home)) { }
  { true } AddBelief(battery(100)) { }

Goals:
  explore

PG-rules:
  explore <- location(home) and battery(B) and B > 20 |
  {
    B(location(home));
    Adopt(goto(kitchen));
    Send(robot2, inform, status(exploring))
  }

PC-rules:
  goto(X) <- location(Y) and not location(X) |
  {
    move(Y, X);
    B(location(X))
  }

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about 2APL (mapped to pl/2apl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/2APL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← 29 2B →