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, and vendor-specific configurations.
| Assistant | Config File | Auto-detected | Enhanced Features |
|---|---|---|---|
| Claude Code | CLAUDE.md, .claude/ | Yes | Skills, agents, hooks, settings |
| Cursor | .cursor/rules/lumenflow.md | Yes | Rules integration |
| Windsurf | .windsurf/rules/lumenflow.md | Yes | Rules integration |
| Cline | .clinerules | No | Rules file |
| Codex | AGENTS.md (native) | No | Uses universal files directly |
| Aider | .aider.conf.yml | No | Config file |
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 .lumenflow.config.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>