KCL

1 program Added 2026-02-09T09:52:47Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: Kusion Configuration Language
Provenance: commit 4b625d680a · authored 2026-02-09T10:53:29+01:00 · agent claude-code · model opus

Sources mentioning this language

3 sources · pl_id: pl/kcl
LLM (this repo) · 1PldbLinguist

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.klinguistprimary175.8K files

Related languages

HCL (0.51)Varnish Configuration Language (0.50)Ceylon (0.31)CFML (0.29)ColdFusion (0.29)

LLM-contributed programs

Schema Validation with Constraints

Provenance: commit 4b625d680a · authored 2026-02-09T10:53:29+01:00 · agent claude-code · model opus · WebSearch enabled
code.k · license: Apache-2.0 · added: 2026-02-09T09:52:47Z
import regex

schema Sample:
    foo: str
    bar: int
    fooList: [str]
    check:
        bar > 0
        bar < 100
        len(fooList) > 0
        len(fooList) < 100
        regex.match(foo, "^The.*Foo$")
        isunique(fooList)
        bar in range(100)
        bar in [2, 4, 6, 8]
        multiplyof(bar, 2)

goodSample = Sample {
    foo = "The Foo"
    bar = 2
    fooList = ["foo0", "foo1"]
}

badSample = Sample {
    foo = "The Foo"
    bar = 123
    fooList = ["foo0", "foo1"]
}

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.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.k/0.kpredicates[{"kind": "any", "regexes": ["^schema [A-Za-z0-9_-]+", "^\\}$", "\\s*\\}\\s*"]}]

Contribute — propose a file extension

Tell us where to find evidence about KCL (mapped to pl/kcl). 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/KCL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Kcidea Kcufniarb →