lpm-cli
Skill152 starsChanged 56 days agoMITView on GitHub
Operate lpm-managed projects through the `lpm` CLI: start or stop projects and services, inspect logs and agent status, wait for readiness, run actions, and duplicate projects into standalone copies or create linked Git worktrees. Use when the user asks to operate or inspect lpm runtime state. `LPM_PROJECT_NAME` selects the default project after the skill triggers; it is not a trigger by itself. For editing YAML configuration, use `lpm-config`.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- lesson-publishSkill
- lessonSkill
- short-publishSkill
- short-raceSkill
- shortSkill
- lpm-configSkill
- lpm-memorySkill
- lpmSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Default output is compact text (cheapest).
- Very specific: line 38
After lpm start, use lpm wait — never a sleep or poll loop.
- Very specific: line 39
After queueing agent work, use lpm wait --agent -p <copy> --timeout N instead of polling lpm status in a loop.
- Very specific: line 40
Read logs with a small -n first (e.g.
- Very specific: line 48
Remove worktrees with lpm remove.
- Very specific: line 49
If a standalone duplicate reports that the source is a linked Git checkout, retry with lpm worktree.
- Very specific: line 55
Use lpm worktree for the fan-out when each copy should use an independent Git branch without duplicating repository data.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
lpm is a command-line companion to the lpm desktop app. Verify it is available with lpm --version; if it is missing, install it from the lpm app's Settings.
Key facts
- The project name is inferred from
LPM_PROJECT_NAMEor the current directory — omit it inside lpm terminals. - Default output is compact text (cheapest); add
--jsononly when you need to parse the result. - Exit codes:
0ok,2usage / not found / app not running,1failure / timeout. config get,config apply, and control commands need the lpm app running; other inspection commands do not.
Commands
lpm list— all projects, running state, agent counts.lpm project [name] [--full]— one project in full (--fulladds env maps, action details, terminal history).- In
lpm list --jsonandlpm project --json, whenisRemoteistrue,rootis the project'sssh.dir: a path on the SSH host, not on this machine. Don'tcdinto it or read files there locally. lpm config resolve [--cwd PATH] [--json]— match a directory to its deepest project root without usingLPM_PROJECT_NAME. An SSH project matches only from its local sync mirror~/.lpm/sync/<project-file-name>, never byrootorssh.dir.lpm config validate <file> [--json]— validate syntax, fields, layer rules, and effective merged configuration.lpm config get --layer project|repo|global|template [--project NAME | --template NAME] [--create] [--json]— read a config layer with the revision required for a safe write.lpm config apply --layer project|repo|global|template [--project NAME | --template NAME] [--create] --if-revision HASH (--stdin | --file PATH) [--json]— validate a candidate and atomically apply it through the running app. Never edit a live config file directly.lpm logs [service] [-n 30] [-p proj]— service scrollback, exactly N lines.lpm status [project]— live agent statuses (Running/Waiting/Done/Error).lpm start [project] [--profile X]/lpm stop [project]— start / stop a project's services.lpm service <name> start|stop|restart [-p proj]— one service.lpm wait [project] [--service X | --port N | --agent] [--timeout 60]— block until ready;--agentwaits for the project's agents to settle.lpm duplicate [project] [-n N] [--label TEXT]... [--group X] [--run ACTION | --command CMD] [--prompt TEXT] [--include-uncommitted | --exclude-uncommitted]— create parallel working directories. Always pass a--labeldescribing the copy's purpose so it's identifiable in the app — one repeated--labelper copy in creation order,<project-name>-<short-description>style such aslpm-fix-auth. Only omit it when you genuinely can't infer a purpose. Output lists each copy's path.lpm worktree [project] [-n N] [--label TEXT]... [--group X] [--run ACTION | --command CMD] [--prompt TEXT] [--reinstall-deps]— create linked Git worktrees instead of standalone copies. The same labeling guidance applies. Output lists each worktree's path.lpm remove <copy-name>— remove a duplicate. For a linked worktree, this also removes its Git worktree registration and lpm-created branch. Originals and SSH projects (SSH duplicates too) need--force, and their folder is kept; don't use--forceunless the user explicitly asks.lpm run [action | --command CMD] [--prompt TEXT] [-p proj]— queue in a new app terminal, fire-and-forget.lpm set-status <key> <value>/lpm clear-status <key>— report status to the app UI.
Token rules
- After
lpm start, uselpm wait— never a sleep or poll loop. - After queueing agent work, use
lpm wait --agent -p <copy> --timeout Ninstead of pollinglpm statusin a loop. - Read logs with a small
-nfirst (e.g.-n 30); increase only if needed. - Errors already name the fix — unknown project/service errors list the valid names. Read the error before retrying.
Duplicate modes
lpm duplicatemakes a standalone APFS copy. The app's duplicate setting decides whether uncommitted changes are copied;--include-uncommittedand--exclude-uncommittedoverride it.lpm worktreemakes a linked Git checkout with its own branch and shared repository data. The source must be a local Git repository, its lpm root must equal the repository root, and it must have at least one commit.- A worktree starts at the source's current
HEADon an lpm-createdlpm/<copy-name>branch. It does not include uncommitted changes. - Remove worktrees with
lpm remove; do not move, trash, or delete their folders directly. - If a standalone duplicate reports that the source is a linked Git checkout, retry with
lpm worktree.
Fan-out (parallel agents)
lpm duplicate -n 3 --label <proj>-<purpose> --label <proj>-<purpose> --label <proj>-<purpose> --run <action> --prompt "..." clones the project into 3 labeled copies and queues the task in each. Then, per copy: lpm wait --agent -p <copy> until it settles, review its work at the printed path (e.g. git diff there), and lpm remove <copy>.
Use lpm worktree for the fan-out when each copy should use an independent Git branch without duplicating repository data.
To create or edit project configs (services/actions/YAML), use the lpm-config skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

