Universal Entry Points
Every project includes plain markdown files that work with ANY AI: - AGENTS.md — Universal
agent instructions - LUMENFLOW.md — Workflow fundamentals - .lumenflow/constraints.md —
Non-negotiable rules
LumenFlow is friction-free for any AI coding assistant. If your AI can read project files, it can use LumenFlow.
Universal Entry Points
Every project includes plain markdown files that work with ANY AI: - AGENTS.md — Universal
agent instructions - LUMENFLOW.md — Workflow fundamentals - .lumenflow/constraints.md —
Non-negotiable rules
No Vendor Lock-in
Point any AI at these files and it understands the workflow. No special setup, no proprietary formats.
For popular AI coding assistants, LumenFlow provides optional enhanced integrations with deeper features like auto-detection, skills, vendor-specific configurations, and agent-plugin discovery where the vendor supports it.
| Assistant | Config File | Auto-detected | Enhanced Features |
|---|---|---|---|
| Claude Code | CLAUDE.md, .claude/ | Yes | Skills, agents, hooks, settings, plugin distribution |
| Cursor | .cursor/rules/lumenflow.md | Yes | Rules integration |
| Windsurf | .windsurf/rules/lumenflow.md, .agents/skills/ | Yes | Rules integration plus shared-skill discovery |
| Cline | .clinerules | No | Rules file |
| Codex | AGENTS.md, .agents/skills/, .codex/agents/ | No | Universal files, shared skills, subagent overlays |
| Aider | .aider.conf.yml | No | Config file |
pnpm lumenflow:integrate --client <x> projects a configurable context-discipline rule into
supported shared and vendor-specific surfaces. The rule is advisory by default: it changes generated
agent guidance, not gates or hooks.
When enabled, generated guidance tells agents to search before reading files, prefer range reads over
whole-file reads, and read a full file only when preparing to edit that file or when an explicit
full_file_read_exceptions entry applies. Set enabled: false to stop future projection of the
generated guidance.
Generated agent overlays can be routed through a vendor-neutral model contract:
Shared agent definitions express intent with those semantic fields. Vendor-specific overlays remain
projections: Claude Code receives frontmatter such as model and effort, while Codex receives
model_reasoning_effort and may omit a model when the client default should apply.
Workspace owners can override the per-client profile map in workspace.yaml:
Use the debug command to see the effective route:
The report lists each agent alias, model_profile, reasoning_effort, mapping source, resolved
model, and rendered vendor fields. pnpm lumenflow:integrate --client claude-code and
pnpm lumenflow:integrate --client codex-cli render the same semantic contract into the vendor
overlay files and record schema-valid agent:model_resolved telemetry for downstream consumers.
Any AI (universal)
Creates AGENTS.md, LUMENFLOW.md, .lumenflow/, and agent onboarding docs (including CLI command reference) — works with any AI that can read files. Use --minimal to skip onboarding docs.
Specific AI (enhanced)
Adds vendor-specific configs alongside universal files.
All integrations
Creates config files for all supported AI assistants.
Claude Code has the deepest integration with LumenFlow.
Config Files:
CLAUDE.md — Root-level instructions.claude/settings.json — Permission configuration.claude/agents/ — Agent definitions.claude/skills/ — Skill definitions (domain expertise)Auto-detection: Environment variables CLAUDE_PROJECT_DIR or CLAUDE_CODE
Unique Features:
LumenFlow generates Claude Code hooks in .claude/settings.json to enforce workflow compliance at the tool level. Configure enforcement in workspace.yaml:
After configuration, generate the hooks:
LumenFlow generates hooks for the following Claude Code hook events:
| Hook Event | When It Fires | What LumenFlow Does |
|---|---|---|
| PreToolUse | Before Write/Edit operations | Blocks edits outside worktree or without claimed WU |
| PostToolUse | After every tool call | Auto-checkpoints at configured interval (counter-based) |
| SubagentStop | When a sub-agent finishes | Always creates a checkpoint (sub-agent completed work) |
| Stop | When session ends | Warns about active worktrees without wu:done |
| PreCompact | Before context compaction | Saves checkpoint + writes durable recovery file |
| SessionStart | After compact/resume/clear | Reads recovery file, surfaces unread coordination signals |
When memory.enforcement.auto_checkpoint.enabled: true, the enforcement generator creates hooks for automatic checkpointing:
PostToolUse fires after every tool call. The generated hook script:
.lumenflow/state/hook-counters/<WU_ID>.jsoninterval_tool_calls, creates a checkpoint in a background subshell and resets the counterSubagentStop fires when a spawned sub-agent completes. The generated hook script:
Both hooks use the same generated script (auto-checkpoint.sh) and branch on the hook_event_name environment variable set by Claude Code.
The PreCompact hook saves a checkpoint and writes a durable recovery file before context compaction. The SessionStart hook reads recovery files after compaction, resume, or clear events, restoring context for the agent.
For non-worktree orchestrators (agents running on main), these hooks surface unread coordination signals via mem:inbox so agents retain coordination awareness after compaction.
Config Files:
.cursor/rules/lumenflow.md — LumenFlow rulesAuto-detection: Environment variables starting with CURSOR_
Config Files:
.windsurf/rules/lumenflow.md — LumenFlow rulesAuto-detection: Environment variables starting with WINDSURF_
Config Files:
.clinerules — LumenFlow rules (root-level)Auto-detection: Not supported
Config Files:
.aider.conf.yml — Aider configurationAll vendor configs are generated from a single template:
The template lives at templates/vendor-rules.template.md.
Want to add support for another AI assistant? Contributions welcome:
templates/vendor-rules.template.md (single source of truth)scripts/sync-vendor-configs.shpackages/@lumenflow/cli/src/init.tslumenflow init --client <vendor>