CLI
larkx init
Initialize a project for indexing.
Usage
bash
larkx initWhat it does
- Creates
.larkx/with empty data files - Adds
.larkxto.gitignore - Prompts: "Set up MCP server?", creates
.mcp.json - Prompts: "Which AI agents do you use?", creates per-agent instruction files
- If Claude Code is selected, adds
UserPromptSubmithook to.claude/settings.json - Saves your agent choices to
.larkx/config.jsonsolarkx indexcan keep the files up to date automatically
Agent files are not committed
Agent instruction files (CLAUDE.md, .cursorrules, AGENTS.md, GEMINI.md, .github/copilot-instructions.md) are gitignored. Each developer runs larkx init once to generate them locally. larkx index keeps them up to date automatically on every run.
Idempotent
Re-running on an initialized project prints a warning and exits without overwriting anything.
Related
larkx setup-agents, re-run just the agent file wizardlarkx index, next step after init