The Lintel standard
Status: draft. Windows Terminal and Torbie are documented consumers. The conformance suite checks manifest copies when their directories are available; it does not prove runtime behavior. Shefrd produces addresses described by a Lintel manifest, but is not checked as a host by the suite.
A manifest is a JSON document that teaches a terminal to recognise a reference in its output, look it up, and show what it found. The terminal executes; the manifest only describes.
#1. Conformance language
MUST, MUST NOT, SHOULD and MAY are used as in RFC 2119.
A host is a program that reads manifests — a terminal, a multiplexer, an editor. An author is whoever writes one.
#2. Versioning
- A manifest carries
"version", an integer. Version 1 is this document. - A host MUST ignore keys it does not recognise, at every level.
- A host MUST refuse a manifest whose
versionnames a major it does not implement, and MUST say so rather than partially loading it. - A key added within a major version MUST be optional, and its absence MUST mean what the behaviour was before it existed.
The rule exists so a manifest can be shared before every host has caught up. normalize on a
setting field and html at the top level are both live examples: hosts that have never heard of
them behave exactly as they did.
#3. Discovery
A host MUST load manifests from a directory, one manifest per folder as integration.json, or
as a bare <id>.json directly in that directory. Where that directory is, is the host's business.
- A host MAY ship built-in manifests.
- A user manifest whose
idequals a built-in's MUST replace it outright. This is how a shipped manifest is forked, or handed to the project it describes. - A manifest that fails to parse MUST be skipped and logged. It MUST NOT be fatal.
A registry is the obvious next question and the obvious next mistake. A folder is specified; a registry can be a layer above one later.
#4. The manifest
| Key | Type | Meaning |
|---|---|---|
id |
string, required | Unique. A manifest with no id is invalid. |
name |
string | Display name. Defaults to id. |
icon |
string | A URI. Hosts resolve their own built-in names; a third-party manifest SHOULD use https:, data: or file:. |
version |
integer | See §2. |
cacheSeconds |
number | How long a fetched result is cached per match. Negative clamps to 0. |
settings |
array | Non-secret configuration. Stored wherever the host stores settings. |
credentials |
array | Secret configuration. MUST NOT be stored with settings. |
matchers |
array | How this manifest claims a reference. See §5. |
fetch |
array | The request pipeline. See §6. |
fields |
array | How a result renders. |
fieldGroups |
array | Named sets of fields. |
tabs |
array | Secondary content behind a tab strip. |
actions |
array | Things the card can do to the thing. See §7. |
detectPatterns |
array of regex | Patterns the host scans plain output for while this manifest is enabled. |
html |
string | A full HTML document rendered in place of fields. Optional; a host that does not render it MUST fall back to fields. |
#5. Matchers
| Key | Type | Meaning |
|---|---|---|
kind |
"link" or "text" |
Against a hovered URI, or scanned over terminal text. |
pattern |
regex | Named groups become template variables. |
hostSetting |
string | Link matchers only. See §9. |
link |
template | The URL this match stands for — Open, Copy link, and the click. |
open |
string | What the click should do instead of following link. See below. |
suggested |
boolean | Text matchers only. Offered to the user as a ready-made rule. |
description |
string | Shown beside a suggested matcher. |
Matching semantics. A host MUST apply a text matcher to the matched run as a whole — the
run either is the reference or it is not. A host MUST search a link matcher within the URI. An
author anchoring a text pattern is therefore writing something already implied.
open. Some references are not usefully opened. A multiplexer pane id names a pane to bring
to the front; a page describing that pane is a consolation prize. open names an actions entry of
the same manifest, or a built-in button id, and the host runs it instead of following link.
- Copy link MUST still copy what
linkresolves to.opengoverns the click alone. - If the action fails, the host SHOULD fall back to opening
link. A click that reports nothing and does nothing is worse than one that lands somewhere less useful. opennaming neither an action nor a built-in is invalid, and the conformance suite rejects it. It would otherwise be a click that silently does nothing, which is the exact failure the key was added to remove.
#6. Fetch steps
| Key | Type | Meaning |
|---|---|---|
id |
string | Referenced by later steps, and by field paths as stepId:pointer. |
type |
"http" (default) or "command" |
A request, or a local process whose stdout is JSON. |
url, method, headers, body, auth |
http only. auth is basic, bearer or header. |
|
commandLine, stdin |
template | command only. |
timeoutMs |
number | Defaults to 8000. |
when / unless |
template | Run, or skip, when the template expands to something non-empty. |
optional |
boolean | A failure is recorded and stepped over rather than ending the pipeline. |
allowUntrustedCertificate |
boolean | http only. |
Two steps MAY share an id; the later one that actually runs replaces the earlier result. That
is how when/unless express a branch without the field paths having to know which arm fired.
#7. Actions
"kind": "button" fires one request. "kind": "choice" offers options an earlier step produced and
fires a request for the one picked, available to the template as {{choice}}.
Actions are HTTP. A command action is deliberately absent: a fetch step runs a local process to
read, under a pipeline the user triggered by hovering, and letting a manifest run one to write
is a different risk that §10 has not yet answered.
#8. Templates and paths
Every templated string is expanded with mustache-style {{…}} substitutions:
| Template | Expands to |
|---|---|
{{match}} |
The whole matched text. |
{{name}} |
A named capture group. |
{{uri}} |
The hovered URI (link matchers). |
{{settings.key}} / {{credentials.key}} |
A configured value. |
{{stepId:/json/pointer}} |
A value from an earlier step's result. |
{{choice}}, {{field.key}} |
Actions only. |
- An unknown name MUST expand to the empty string. Not to an error, and not to the literal. That
is what makes
when/unlesswork as presence tests. - Only data values — capture groups and step results — are percent-encoded, and only inside a
step's
url. A setting that is a whole scheme and host MUST survive unescaped. - Paths are RFC 6901 JSON pointers with one extension: a negative index counts from the end, so
/messages/-1/textis the last message. - With more than one fetch step, an unqualified pointer resolves against whichever step ran last and produced something — which is rarely the one meant. Authors SHOULD qualify, and the conformance suite requires it.
#9. Host guarding
A link matcher MAY name one of its own settings as hostSetting. The hovered URI's host MUST
equal that setting's current value or the matcher does not fire — no fetch, and no credential
touched. This is the whole reason a look-alike link can never see a token: the fetch never starts,
because the match never happened.
hostSetting is for a host the user supplies. Where the host is fixed, pin it in the pattern
instead. It has no meaning on a text matcher — a ticket key has no host to check against — and
carrying one there is invalid.
Further, a host MUST NOT fetch unless every required setting and every credential has a value
and the manifest is enabled; MUST NOT write credentials to the settings file; and MUST NOT
let a credential value appear in an error message, a log, or a cached failure.
#10. Capabilities and consent
Unresolved, and the largest open question in version 1. A manifest can issue arbitrary HTTP and run arbitrary local commands. That is fine for a file you wrote and not fine for one you installed.
Until this section says otherwise, a host SHOULD treat a user-installed manifest's command
steps as opt-in, and SHOULD show the user what a manifest will reach before enabling it.
#11. Conformance
conformance/run.mjs --terminal <manifest-directory> or --torbie <manifest-directory> checks a
specific host's manifest copies. The suite checks basic manifest structure, preset examples and
top-level key parity with allowed differences. It does not test host runtime behavior. A default
run with no available host directory validates only the canonical data.
Where a host cannot ship the canonical copy, the divergence goes in conformance/allowances.json
with a reason about the host. "Not synced yet" is not a reason; it is the finding.
#12. Still open
Named so they are not mistaken for settled: §10 capabilities and
consent; a redaction guarantee stronger than §9's prose; whether html earns a sandbox story or
should be dropped in favour of richer field kinds; i18n, since label and description are single
strings; and a rendering contract saying which kind values must render distinctly — currently
agreed by imitation, which is exactly how two implementations drift.
#Host file-preview capability
preview: true permits a host to render a resolved local file without an integration.
This is a host capability, not a remote integration fetch or a matching tooltip rule.
A rule disabling preview or explicitly selecting an integration retains precedence.
Hosts preserve original link identity separately from a filesystem target resolved in the
originating terminal context (including its WSL distro). Unsupported content must retain
ordinary link actions and report an unavailable preview without another integration's icon.
A file on another machine is never resolved to a local or UNC path (paths/README.md, rule 7).
A host that knows a pane is on another machine (its OSC 7 names a host that is not this one)
may preview that machine's files through a remote reader. Mullion's is
shefrd machine read <machine> <path> --max-bytes <n>, run in WSL:
<machine>is the OSC 7 host, verbatim.<path>is absolute POSIX, or~/...for the remote user's home. Both travel as arguments, never as shell text.- stdout is one JSON line. On success it is
{"ok":true,"kind":"file","size":N,"mtime":"<RFC 3339>","truncated":bool,"bytes":M}, followed by exactly M raw bytes, with M at most--max-bytes. On failure it is{"ok":false,"error":"not_found|not_regular|too_large|denied|not_connected|unsupported"}. The exit code is not read. - The reader accepts regular files only (after symlinks), rides only an existing connection, and never opens one for a hover.
- The host bounds the call: Mullion uses 5 s and 1 MiB.
not_found,not_regularandtoo_largeare said plainly. Anything else, including a missing reader, a timeout or a malformed reply, is a quiet "Preview unavailable", never an error. The preview has no filesystem path, so a remote Markdown file's relative images resolve to nothing.
Windows Terminal supports text, raster images, rendered PDF pages and extracted DOCX/XLSX/PPTX content. Torbie shares the preset catalog; this does not assert equivalent document rendering. Office macros, recalculation and external relationships are not part of a content preview.
Preset extension criteria use extensions, without leading dots. They participate in rule
identity alongside match kind, schemes and file-type group. The catalog is validated by
schema/presets-1.json; integration criteria remain selected by exactly one example match.
#Header fields and field links
A display field may declare placement: "header" or placement: "status".
Hosts keep these fields visible above the tabs, following the title. Status
appears beside the integration's state-changing action controls. The default
placement is details. Title fields belong below the source link above tabs.
The optional link is a URL template using the same substitutions as fetch
URLs, including percent-encoding JSON pointer values. It makes the displayed
value clickable without exposing the raw URL as the label. Jira uses this for
parent issues and searches by issue type or priority. Empty field values are
omitted, including parent links for issues with no parent.
#Account checks and preferred GitHub organizations
An optional account: { "provider": "github" | "jira" | "slack" } declares
which read-only account adapter a host can offer in integration settings. An
unsupported provider must be reported as unavailable, never as connected.
Disabled integrations must not be contacted. A host displays verified account
name, login and avatar when available, plus a refresh control and explicit
connection failures. Credentials and raw failure response bodies never enter
that view.
GitHub uses gh auth token --hostname github.com first, then the saved PAT,
for both identity checks and reference resolution. The CLI is launched without
a console window. /user verifies identity. Organization discovery uses
/user/orgs and organization owners from /user/repos, because fine-grained
PATs may return no memberships. Both lists are paginated, with a current host
limit of three pages of 100 entries per list. Partial discovery is labelled;
manual additions remain available.
The github-owners setting editor presents candidateOwners as editable rows
that reorder by drag and drop, with add/remove controls and a menu of discovered
organizations. The stored representation remains a comma-separated string for
compatibility. Names are validated as GitHub account identifiers and
deduplicated without case sensitivity.
#Resolving repo#number
A bare repo#number names no owner, so the host supplies one. It tries owners in
this order, and the first owner under which GET /repos/{owner}/{repo}/issues/{number}
succeeds wins:
- Remembered picks.
repoOwnersmaps a repository name to the owner the user chose for it (terminal=microsoft,lintel=aylith-labs). An entry is consulted first and, when it resolves, alone. - Pinned organizations.
candidateOwners, in the user's order. Pinning is how a tie between two accessible organizations that share a repository name is broken. - Discovered owners. The verified login, then the organizations and repository owners found by account discovery, minus any already tried. Owners whose discovered repositories include the name are tried before the rest. The user does not have to list an organization they can already reach. A host SHOULD cache discovery for the session and refresh it in the background.
- Repository search.
GET /search/repositories?q={repo} in:name&sort=stars, keeping only repositories whose name equalsrepowithout case sensitivity, most-starred first. Search is rate-limited separately (30 requests a minute authenticated), so a host MUST cache the result per repository name.- With
autoPickOwneron (the default) the host tries those owners in order and the card MUST say the owner was assumed, offering to change it. - With it off, or when the user asks to change an assumed owner, the card shows
the owners as a filterable list. Choosing one writes
repo=ownertorepoOwnersand resolves again.
- With
Steps 1–3 and the automatic part of step 4 share an eight-second budget. Only an
explicit pick is remembered: an inferred owner is cached no longer than the
preview itself, so pinning an organization or removing a pick takes effect on the
next lookup. The github-repo-owners editor lists repoOwners as rows the user
can remove. The toggle editor stores "true" or "false".
The shipped repo#number expression matches within prose. Hosts migrate only its exact old expression with a known shipped name, preserving custom rules.
Account API references: GitHub organizations, Jira current user, Slack auth.test and Slack users.info.
#Host interactions
Everything above is about the manifest, the part hosts share as data. This section is about what a reader does with a match, which each host builds itself. It is written down so the hosts converge on one set of gestures instead of three.
A host MUST show a match's card on hover and open its link on click, which is what the rest of this document assumes. Beyond that, a host SHOULD offer:
- A preview pane. A pinned side surface that follows whatever match the pointer rests on, so a reader can scan a buffer without the card closing each time the pointer moves on.
- Look up a selection. A selection gesture distinct from copy,
Alt+Shiftplus drag by default, that runs the selected text through the matchers as if it had been hovered and shows the card for it. PlainShift+dragstays the host's ordinary copy. - A list of the buffer's matches. Every match in the scrollback, newest first, as a scrollable vertical list. Choosing an entry shows the same card a hover would and scrolls the buffer to it.
A host MAY offer:
- Modal-aware box selection. When an application running in the terminal draws a bordered region (a dialog, a panel), a selection started inside it stays inside it, the way selecting text in one web page element does not run into its neighbours. This needs the application to say where its regions are, and no escape sequence for that exists yet. Until one is proposed here, a host MUST NOT guess region bounds from box-drawing characters.
Where the hosts stand, measured by reading their histories on Mon 2026-09-28:
| Interaction | Windows Terminal fork | Torbie | shefrd |
|---|---|---|---|
| Hover card and click | yes | yes | yes |
| Preview pane | yes (3f221ee31) |
side-panel extension point only | no |
| Look up a selection | no | no | no |
| List of the buffer's matches | no | no | no |
| Modal-aware box selection | no (no protocol) | no (no protocol) | no (no protocol) |