CLI

larkx setup-agents

Re-create or update agent instruction files.

Usage

bash
larkx setup-agents

What it does

Runs the same wizard as larkx init but only the agent-file portion. Useful when you start using a new AI agent and want to add its instruction file without re-initializing.

Supported agents

  • Claude Code → CLAUDE.md + .claude/settings.json hook
  • GitHub Copilot → .github/copilot-instructions.md
  • Cursor → .cursorrules
  • OpenAI Codex → AGENTS.md
  • Gemini CLI → GEMINI.md

Files created by larkx contain a <!-- larkx-managed --> marker and are refreshed automatically on every larkx index run. Files you have edited manually (no marker) are never overwritten.