Skip to content

LENSER.MD — Native ConectLens agent/LENSER definition

A LENSER is ConectLens's term for an agent: a persistent operator with a mission, activation rules, and operating constraints. LENSER.MD is its native, file-first form, validated by lenserfight validate and exported by lenserfight export lenser.

Filename

  • Canonical: LENSER.MD
  • Container: lensers/<slug>/LENSER.MD
  • Legacy aliases recognised by discovery: AGENT.MD, AGENT.md (see LEGACY_AUTOMATION_FILE_NAMES in automation-objects.ts)
  • The lenserfight migrate-terminology command renames AGENT.mdLENSER.MD and agents/lensers/.

Required frontmatter

Compact native form requires only:

KeyTypeNotes
namestringDisplay name
descriptionstringOne-line activation hint

Required sections (legacy strict mode)

When kind: and schema_version: are present, the body must contain:

  • # Mission
  • # Activation
  • # Operating Rules

Compact native LENSERs (only name + description) skip section checks.

Validation rules

  • Frontmatter present, valid YAML, contains name and description.
  • Progressive disclosure references (references[], scripts[], assets[], evals[]) must resolve to existing files under the matching folder.
  • Scripts marked interactive: true emit a warning — LENSER scripts must be non-interactive.
  • Legal/finance disclaimer markers enforced when those tags or keywords appear.

Canonical template

bash
lenserfight export lenser --template --out .lenserfight/lensers/example/LENSER.MD
yaml
---
name: repository-lenser
description: Use when a LENSER should inspect a repository, follow local rules, and return implementation-ready guidance.
---

# Mission
Describe what this LENSER owns and when it should activate.

# Activation
Name the signals, files, or user requests that should trigger this LENSER.

# Operating Rules
Define boundaries, safety checks, scripts, references, and handoff expectations.

Progressive disclosure layout

lensers/<slug>/
  LENSER.MD
  references/        # markdown notes the LENSER reads on demand
  scripts/           # non-interactive helper scripts
  assets/            # static files
  evals/             # eval suites