lemming-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. lemming_cli-0.1.0/.github/workflows/ci.yml +53 -0
  2. lemming_cli-0.1.0/.github/workflows/publish.yml +26 -0
  3. lemming_cli-0.1.0/.gitignore +14 -0
  4. lemming_cli-0.1.0/.prettierignore +5 -0
  5. lemming_cli-0.1.0/.prettierrc +6 -0
  6. lemming_cli-0.1.0/Dockerfile +32 -0
  7. lemming_cli-0.1.0/LICENSE +21 -0
  8. lemming_cli-0.1.0/PKG-INFO +314 -0
  9. lemming_cli-0.1.0/README.md +292 -0
  10. lemming_cli-0.1.0/biome.json +32 -0
  11. lemming_cli-0.1.0/docker-compose.yml +12 -0
  12. lemming_cli-0.1.0/docs/HOOKS.md +148 -0
  13. lemming_cli-0.1.0/docs/screenshots/dashboard-desktop.png +0 -0
  14. lemming_cli-0.1.0/docs/screenshots/dashboard-mobile.png +0 -0
  15. lemming_cli-0.1.0/docs/screenshots/task-log-desktop.png +0 -0
  16. lemming_cli-0.1.0/docs/screenshots/task-log-mobile.png +0 -0
  17. lemming_cli-0.1.0/package-lock.json +1850 -0
  18. lemming_cli-0.1.0/package.json +21 -0
  19. lemming_cli-0.1.0/playwright.config.js +15 -0
  20. lemming_cli-0.1.0/pyproject.toml +65 -0
  21. lemming_cli-0.1.0/src/lemming/__init__.py +1 -0
  22. lemming_cli-0.1.0/src/lemming/api/__init__.py +5 -0
  23. lemming_cli-0.1.0/src/lemming/api/auth.py +34 -0
  24. lemming_cli-0.1.0/src/lemming/api/auth_test.py +40 -0
  25. lemming_cli-0.1.0/src/lemming/api/config.py +85 -0
  26. lemming_cli-0.1.0/src/lemming/api/config_test.py +84 -0
  27. lemming_cli-0.1.0/src/lemming/api/conftest.py +204 -0
  28. lemming_cli-0.1.0/src/lemming/api/context.py +39 -0
  29. lemming_cli-0.1.0/src/lemming/api/context_test.py +62 -0
  30. lemming_cli-0.1.0/src/lemming/api/directories.py +57 -0
  31. lemming_cli-0.1.0/src/lemming/api/directories_test.py +94 -0
  32. lemming_cli-0.1.0/src/lemming/api/files.py +116 -0
  33. lemming_cli-0.1.0/src/lemming/api/files_test.py +163 -0
  34. lemming_cli-0.1.0/src/lemming/api/hooks.py +15 -0
  35. lemming_cli-0.1.0/src/lemming/api/hooks_test.py +33 -0
  36. lemming_cli-0.1.0/src/lemming/api/logging.py +16 -0
  37. lemming_cli-0.1.0/src/lemming/api/logging_test.py +59 -0
  38. lemming_cli-0.1.0/src/lemming/api/loop.py +45 -0
  39. lemming_cli-0.1.0/src/lemming/api/loop_test.py +58 -0
  40. lemming_cli-0.1.0/src/lemming/api/main.py +53 -0
  41. lemming_cli-0.1.0/src/lemming/api/main_test.py +30 -0
  42. lemming_cli-0.1.0/src/lemming/api/tasks.py +170 -0
  43. lemming_cli-0.1.0/src/lemming/api/tasks_test.py +426 -0
  44. lemming_cli-0.1.0/src/lemming/api.py +5 -0
  45. lemming_cli-0.1.0/src/lemming/api_test.py +7 -0
  46. lemming_cli-0.1.0/src/lemming/cli/__init__.py +12 -0
  47. lemming_cli-0.1.0/src/lemming/cli/config.py +67 -0
  48. lemming_cli-0.1.0/src/lemming/cli/config_test.py +50 -0
  49. lemming_cli-0.1.0/src/lemming/cli/context.py +40 -0
  50. lemming_cli-0.1.0/src/lemming/cli/context_test.py +49 -0
  51. lemming_cli-0.1.0/src/lemming/cli/hooks.py +147 -0
  52. lemming_cli-0.1.0/src/lemming/cli/hooks_test.py +50 -0
  53. lemming_cli-0.1.0/src/lemming/cli/main.py +42 -0
  54. lemming_cli-0.1.0/src/lemming/cli/main_test.py +21 -0
  55. lemming_cli-0.1.0/src/lemming/cli/operations.py +226 -0
  56. lemming_cli-0.1.0/src/lemming/cli/operations_test.py +44 -0
  57. lemming_cli-0.1.0/src/lemming/cli/progress.py +54 -0
  58. lemming_cli-0.1.0/src/lemming/cli/progress_test.py +40 -0
  59. lemming_cli-0.1.0/src/lemming/cli/readability_cli.py +28 -0
  60. lemming_cli-0.1.0/src/lemming/cli/readability_cli_test.py +57 -0
  61. lemming_cli-0.1.0/src/lemming/cli/tasks.py +529 -0
  62. lemming_cli-0.1.0/src/lemming/cli/tasks_test.py +168 -0
  63. lemming_cli-0.1.0/src/lemming/cli.py +5 -0
  64. lemming_cli-0.1.0/src/lemming/cli_test.py +22 -0
  65. lemming_cli-0.1.0/src/lemming/conftest.py +13 -0
  66. lemming_cli-0.1.0/src/lemming/hooks.py +145 -0
  67. lemming_cli-0.1.0/src/lemming/hooks_test.py +180 -0
  68. lemming_cli-0.1.0/src/lemming/integration_test.py +299 -0
  69. lemming_cli-0.1.0/src/lemming/main.py +6 -0
  70. lemming_cli-0.1.0/src/lemming/main_test.py +44 -0
  71. lemming_cli-0.1.0/src/lemming/models.py +88 -0
  72. lemming_cli-0.1.0/src/lemming/models_test.py +91 -0
  73. lemming_cli-0.1.0/src/lemming/orchestrator.py +407 -0
  74. lemming_cli-0.1.0/src/lemming/orchestrator_test.py +468 -0
  75. lemming_cli-0.1.0/src/lemming/paths.py +245 -0
  76. lemming_cli-0.1.0/src/lemming/paths_test.py +186 -0
  77. lemming_cli-0.1.0/src/lemming/persistence.py +179 -0
  78. lemming_cli-0.1.0/src/lemming/persistence_test.py +150 -0
  79. lemming_cli-0.1.0/src/lemming/prompts/hooks/readability.md +42 -0
  80. lemming_cli-0.1.0/src/lemming/prompts/hooks/roadmap.md +61 -0
  81. lemming_cli-0.1.0/src/lemming/prompts/hooks/testing.md +44 -0
  82. lemming_cli-0.1.0/src/lemming/prompts/taskrunner.md +69 -0
  83. lemming_cli-0.1.0/src/lemming/prompts.py +354 -0
  84. lemming_cli-0.1.0/src/lemming/prompts_test.py +421 -0
  85. lemming_cli-0.1.0/src/lemming/providers.py +190 -0
  86. lemming_cli-0.1.0/src/lemming/providers_test.py +73 -0
  87. lemming_cli-0.1.0/src/lemming/runner.py +327 -0
  88. lemming_cli-0.1.0/src/lemming/runner_test.py +378 -0
  89. lemming_cli-0.1.0/src/lemming/tasks/__init__.py +75 -0
  90. lemming_cli-0.1.0/src/lemming/tasks/lifecycle.py +331 -0
  91. lemming_cli-0.1.0/src/lemming/tasks/lifecycle_test.py +312 -0
  92. lemming_cli-0.1.0/src/lemming/tasks/operations.py +258 -0
  93. lemming_cli-0.1.0/src/lemming/tasks/operations_test.py +172 -0
  94. lemming_cli-0.1.0/src/lemming/tasks/progress.py +29 -0
  95. lemming_cli-0.1.0/src/lemming/tasks/progress_test.py +22 -0
  96. lemming_cli-0.1.0/src/lemming/tasks/queries.py +128 -0
  97. lemming_cli-0.1.0/src/lemming/tasks/queries_test.py +233 -0
  98. lemming_cli-0.1.0/src/lemming/web/dashboard.spec.js +350 -0
  99. lemming_cli-0.1.0/src/lemming/web/dashboard.test.js +998 -0
  100. lemming_cli-0.1.0/src/lemming/web/favicon.js +40 -0
  101. lemming_cli-0.1.0/src/lemming/web/favicon.spec.js +242 -0
  102. lemming_cli-0.1.0/src/lemming/web/files.html +375 -0
  103. lemming_cli-0.1.0/src/lemming/web/files.spec.js +97 -0
  104. lemming_cli-0.1.0/src/lemming/web/index.html +983 -0
  105. lemming_cli-0.1.0/src/lemming/web/index.js +753 -0
  106. lemming_cli-0.1.0/src/lemming/web/logs.html +358 -0
  107. lemming_cli-0.1.0/src/lemming/web/logs.test.js +195 -0
  108. lemming_cli-0.1.0/src/lemming/web/mancha.js +58 -0
  109. lemming_cli-0.1.0/src/lemming/web/screenshots.spec.js +328 -0
  110. lemming_cli-0.1.0/uv.lock +581 -0
@@ -0,0 +1,53 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint-and-test:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - uses: actions/checkout@v6
15
+
16
+ - name: Set up Python
17
+ uses: astral-sh/setup-uv@v7
18
+ with:
19
+ python-version: '3.14'
20
+
21
+ - name: Install Python dependencies
22
+ run: uv sync
23
+
24
+ - name: Run Python linting
25
+ run: uv run ruff check .
26
+
27
+ - name: Run Python formatting check
28
+ run: uv run ruff format --check .
29
+
30
+ - name: Run Python tests
31
+ run: uv run pytest
32
+
33
+ - name: Set up Node.js
34
+ uses: actions/setup-node@v6
35
+ with:
36
+ node-version: '20'
37
+
38
+ - name: Install Node.js dependencies
39
+ run: npm install
40
+
41
+ - name: Run Web linting
42
+ run: npm run lint
43
+
44
+ - name: Run Web check
45
+ run: npm run check
46
+
47
+ - name: Run Web tests
48
+ run: |
49
+ npx playwright install --with-deps
50
+ npm test
51
+
52
+ - name: Build container image
53
+ run: docker build -t lemming:ci .
@@ -0,0 +1,26 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags: ['v*']
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+
14
+ steps:
15
+ - uses: actions/checkout@v6
16
+
17
+ - name: Set up Python
18
+ uses: astral-sh/setup-uv@v7
19
+ with:
20
+ python-version: '3.14'
21
+
22
+ - name: Build distribution
23
+ run: uv build
24
+
25
+ - name: Publish to PyPI
26
+ run: uv publish --trusted-publishing always
@@ -0,0 +1,14 @@
1
+ __pycache__/
2
+ .pytest_cache/
3
+ .coverage
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ tasks.yml
8
+ *.swp
9
+ node_modules/
10
+ .biome/
11
+ .lemming_loop.lock
12
+ test-results/
13
+ *tasks*.lock
14
+ .ruff_cache/
@@ -0,0 +1,5 @@
1
+ .venv
2
+ node_modules
3
+ dist
4
+ src/lemming/web/mancha.js
5
+ test-results
@@ -0,0 +1,6 @@
1
+ {
2
+ "printWidth": 80,
3
+ "proseWrap": "always",
4
+ "singleQuote": true,
5
+ "trailingComma": "all"
6
+ }
@@ -0,0 +1,32 @@
1
+ FROM python:3.14-slim
2
+
3
+ # Install common dev tools
4
+ RUN apt-get update && apt-get install -y \
5
+ git curl wget jq make gcc g++ openssh-client procps \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Install Node.js (LTS) and npm
9
+ RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
10
+ && apt-get install -y nodejs \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Install AI coding CLIs (antigravity ships a native binary, not an npm package)
14
+ RUN npm install -g @openai/codex @anthropic-ai/claude-code \
15
+ && curl -fsSL https://antigravity.google/cli/install.sh | bash -s -- --dir /usr/local/bin
16
+
17
+ # Copy cloudflared and uv binaries directly from their official images
18
+ COPY --from=cloudflare/cloudflared:latest /usr/local/bin/cloudflared /usr/local/bin/cloudflared
19
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
20
+
21
+ WORKDIR /opt/lemming
22
+ COPY . .
23
+ RUN uv sync --no-dev --frozen
24
+
25
+ # Install frontend dependencies and Playwright browsers
26
+ RUN npm install && npx playwright install --with-deps
27
+
28
+ # Pre-create the lemming home directory so users can bind-mount a .env file into it
29
+ RUN mkdir -p /root/.local/lemming
30
+
31
+ WORKDIR /workspace
32
+ ENTRYPOINT ["uv", "run", "--project", "/opt/lemming", "lemming", "serve", "--host", "0.0.0.0"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,314 @@
1
+ Metadata-Version: 2.4
2
+ Name: lemming-cli
3
+ Version: 0.1.0
4
+ Summary: An autonomous, iterative task runner for AI coding agents.
5
+ Project-URL: Homepage, https://github.com/owahltinez/lemming
6
+ Project-URL: Repository, https://github.com/owahltinez/lemming
7
+ Author: Lemming Contributors
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Keywords: agents,ai,aider,antigravity,automation,claude
11
+ Requires-Python: >=3.12
12
+ Requires-Dist: beautifulsoup4>=4.13.3
13
+ Requires-Dist: click>=8.0.0
14
+ Requires-Dist: fastapi>=0.124.4
15
+ Requires-Dist: markdownify>=0.14.1
16
+ Requires-Dist: pydantic>=2.12.5
17
+ Requires-Dist: pyyaml>=6.0.3
18
+ Requires-Dist: readability-cli>=0.4.0
19
+ Requires-Dist: requests>=2.32.3
20
+ Requires-Dist: uvicorn>=0.33.0
21
+ Description-Content-Type: text/markdown
22
+
23
+ # Lemming 🐹
24
+
25
+ **The transparent, tool-agnostic orchestrator for autonomous AI coding agents.**
26
+
27
+ Lemming bridges the gap between high-level project strategy and low-level agent
28
+ execution. Instead of letting an agent wander through your codebase in a single,
29
+ massive context window, Lemming forces a structured, iterative workflow via a
30
+ human-readable `tasks.yml` file.
31
+
32
+ ## Why Lemming?
33
+
34
+ - **Zero Context Drift**: By breaking projects into discrete tasks, Lemming
35
+ ensures agents stay focused. They only see the project context, relevant
36
+ history, and the specific task at hand.
37
+ - **Transparency & Control**: Every decision, technical finding, and progress
38
+ update is recorded in a human-readable `tasks.yml` file. You can step in,
39
+ adjust the roadmap, or swap agents at any time.
40
+ - **Tool Agnostic**: Lemming doesn't care which agent you use. It works
41
+ out-of-the-box with `agy`, `aider`, `claude`, `codex`, or even your own custom
42
+ scripts.
43
+ - **Resilient Execution**: With built-in heartbeat monitoring, automatic
44
+ retries, and progress tracking, Lemming handles process crashes and rate
45
+ limits gracefully.
46
+ - **Human-Agent Collaboration**: Use the CLI or the Web UI to collaborate with
47
+ your agents in real-time. Mark tasks, edit descriptions, and review progress
48
+ as they happen.
49
+
50
+ ---
51
+
52
+ ## Installation
53
+
54
+ Install globally using `uv`:
55
+
56
+ ```bash
57
+ uv tool install git+https://github.com/owahltinez/lemming.git
58
+ ```
59
+
60
+ ## Quick Start in 3 Steps
61
+
62
+ ### 1. Scaffold the Roadmap
63
+
64
+ Initialize your project context and define your goals.
65
+
66
+ ```bash
67
+ # Set project-wide rules (e.g. tech stack, style guides)
68
+ lemming context "Use React, TypeScript, and Tailwind. Follow TDD."
69
+
70
+ # Add tasks to the queue
71
+ lemming add "Initialize the project with Vite"
72
+ lemming add "Create the Button component"
73
+ lemming add "Implement the authentication flow"
74
+ ```
75
+
76
+ ### 2. Review and Refine
77
+
78
+ See exactly what's pending and what the agent will see.
79
+
80
+ ```bash
81
+ # Show the current roadmap
82
+ lemming status
83
+ ```
84
+
85
+ ### 3. Release the Lemming
86
+
87
+ Start the autonomous loop.
88
+
89
+ ```bash
90
+ # Run using the project's configured agent (defaults to the first
91
+ # supported runner found on PATH: agy, aider, claude, or codex)
92
+ lemming run
93
+
94
+ # Flags passed after -- are sent directly to the underlying runner
95
+ lemming run -- --model claude-3-5-sonnet
96
+ ```
97
+
98
+ ---
99
+
100
+ ## The Web Dashboard
101
+
102
+ Lemming includes a modern, fast Web UI to monitor your projects.
103
+
104
+ ```bash
105
+ lemming serve
106
+
107
+ # Or share it remotely via a secure tunnel with token auth
108
+ lemming serve --tunnel cloudflare
109
+ ```
110
+
111
+ - **Real-time Monitoring**: Watch tasks move from pending to in-progress to
112
+ completed.
113
+ - **Switch Project**: Easily switch between different projects or create new
114
+ folders directly from the UI.
115
+ - **Browse Files**: Quickly open your workspace in a separate window to inspect
116
+ files and directory structure alongside the roadmap.
117
+ - **Interactive Controls**: Add tasks, edit context, and manage the execution
118
+ loop from your browser.
119
+
120
+ ---
121
+
122
+ ## How it Works
123
+
124
+ Lemming maintains a human-readable `tasks.yml` file containing your project
125
+ context, a queue of tasks, and recorded progress. When you run `lemming run`, it
126
+ loops through each pending task:
127
+
128
+ 1. **Build a scoped prompt**: Lemming assembles a prompt containing only the
129
+ project context, a summary of completed tasks and their progress, and the
130
+ current task description.
131
+ 2. **Invoke the agent**: It launches your chosen agent CLI with that prompt,
132
+ monitors it with heartbeats, and streams output to a log file.
133
+ 3. **Collect results**: The agent reports back via the Lemming CLI — recording
134
+ findings with `lemming progress`, then marking the task with
135
+ `lemming complete` or `lemming fail`. Agents can also schedule new tasks
136
+ with `lemming add`, breaking down complex work into smaller steps that
137
+ Lemming will pick up automatically.
138
+ 4. **Retry or advance**: On failure, Lemming retries the task (up to
139
+ `--retries`) with accumulated progress as context, so the agent learns from
140
+ previous attempts. On success, it moves to the next task.
141
+ 5. **Orchestration**: After each task, Lemming can run one or more
142
+ **Orchestrator Hooks** (like the built-in `roadmap` hook) to evaluate the
143
+ results and adapt the roadmap if needed. Hooks are enabled by default but
144
+ can be disabled via configuration.
145
+
146
+ ---
147
+
148
+ ## Orchestrator Hooks ⚓️
149
+
150
+ For longer, multi-stage projects, the initial task list often can't anticipate
151
+ everything. Tasks may fail in ways that retrying won't fix, or completing all
152
+ tasks may not fully achieve the stated goal. **Orchestrator Hooks** address this
153
+ by running custom agents or scripts after each task execution to evaluate
154
+ results and adapt the roadmap.
155
+
156
+ By default, Lemming runs all available hooks (including the built-in `roadmap`
157
+ hook). You can customize this behavior via the `hooks` subcommand:
158
+
159
+ ```bash
160
+ # Enable or disable hooks for the project
161
+ lemming hooks enable lint
162
+ lemming hooks disable roadmap
163
+
164
+ # Set the exact list of active hooks
165
+ lemming hooks set roadmap lint
166
+
167
+ # Reset to default (run all available hooks)
168
+ lemming hooks reset
169
+ ```
170
+
171
+ ### Built-in Hooks ⚓️
172
+
173
+ Lemming comes with several built-in hooks to help manage your project:
174
+
175
+ - **`roadmap`**: The primary mechanism for autonomous project management. It
176
+ analyzes the results of the finished task and decides if the remaining roadmap
177
+ needs to be adjusted (e.g., adding a missing prerequisite, skipping obsolete
178
+ tasks, or breaking down a broad task).
179
+ - **`readability`**: A code quality hook that reviews changes for adherence to
180
+ the Google Style Guide and general readability using the
181
+ [readability](https://github.com/owahltinez/readability) tool (exposed as
182
+ `lemming readability`). It can record findings as task progress or suggest
183
+ follow-up refactoring tasks.
184
+
185
+ ### Custom and Global Hooks
186
+
187
+ You can create your own hooks by adding Markdown files to:
188
+
189
+ 1. **Project-specific**: `.lemming/hooks/*.md`
190
+ 2. **Global**: `~/.local/lemming/hooks/*.md`
191
+
192
+ Lemming's built-in hooks can be symlinked to the global directory using
193
+ `lemming hooks install`. This allows you to easily **override** a built-in hook
194
+ by replacing its symlink with a file, or **disable** a global override by
195
+ deleting the symlink.
196
+
197
+ Hooks follow a specific discovery precedence: **Project > Global > Built-in**.
198
+ See [DOCS/HOOKS.md](docs/HOOKS.md) for more details.
199
+
200
+ ### Managing Hooks and Configuration
201
+
202
+ Use the `config` and `hooks` commands to manage your project's execution loop:
203
+
204
+ ```bash
205
+ # List all available hooks (built-in and local)
206
+ lemming hooks list
207
+
208
+ # Install (symlink) built-in hooks to the global directory
209
+ lemming hooks install
210
+
211
+ # View current project configuration
212
+ lemming config list
213
+
214
+ # Persist configuration to tasks.yml
215
+ lemming config set runner aider
216
+ lemming hooks set roadmap lint
217
+ ```
218
+
219
+ ---
220
+
221
+ ## Command Reference
222
+
223
+ ### Roadmap Management
224
+
225
+ - **`status [<id>]`**: Roadmap overview or deep-dive into a specific task.
226
+ - **`context [<text>]`**: Set or view project-wide instructions. Supports
227
+ `-f/--file`.
228
+ - **`add <desc>`**: Append a new task. Supports `--index` and `--runner`.
229
+ - **`edit <id>`**: Modify a task's description, runner, or position.
230
+ - **`delete <id>`**: Remove a task. Supports `--all` and `--completed` for bulk
231
+ operations.
232
+ - **`progress`**: Manage progress entries and findings for specific tasks.
233
+ - `list <id>`: List all progress for a task.
234
+ - `add <id> <finding>`: Record a new technical detail.
235
+ - `edit <id> <index> <text>`: Modify an existing progress entry.
236
+ - `delete <id> <index>`: Remove a progress entry.
237
+ - **`config`**: Manage project configuration (runner, retries).
238
+ - `list`: View current configuration.
239
+ - `set <key> <value>`: Update a setting.
240
+ - **`hooks`**: Manage orchestrator hooks.
241
+ - `list`: View available and active hooks.
242
+ - `install`: Install built-in hooks to the global directory.
243
+ - `enable <name>...`: Activate one or more hooks.
244
+ - `disable <name>...`: Deactivate one or more hooks.
245
+ - `set <name>...`: Set the exact list of active hooks.
246
+ - `reset`: Restore default hooks (run all available).
247
+ - **`readability`**: Code quality tool for style guide adherence, wrapping the
248
+ [readability](https://github.com/owahltinez/readability) package. Ruff and
249
+ Pyrefly run with bundled Google-style defaults unless the target project
250
+ defines its own configuration.
251
+ - `check <paths>...`: Run formatters and linters.
252
+ - `guide <language>`: Fetch and view style guides.
253
+ - `languages`: List all supported languages.
254
+ - `sync`: Synchronize style guides from the web.
255
+
256
+ ### Task Status
257
+
258
+ - **`complete <id>`**: Mark a task as successful.
259
+ - **`fail <id>`**: Mark a task as a terminal failure (will not be retried).
260
+ - **`cancel <id>`**: Stop an in-progress task (kills the runner process).
261
+ - **`reset <id>`**: Clear attempts and progress to start a task fresh.
262
+ - **`logs [<id>]`**: Print a task's execution log to stdout. If no ID is
263
+ provided, it defaults to the active or most recent task. Orchestrator hook
264
+ output is automatically appended.
265
+
266
+ ### Execution
267
+
268
+ - **`run`**: Start the autonomous orchestrator loop.
269
+ - `--retry-delay`: Seconds to wait before retries (default 10).
270
+ - `--yolo`: Run the runner in auto-approve mode (default: True).
271
+ - `--env`: Set environment variables for the runner (e.g., `--env KEY=VALUE`).
272
+ - `--no-defaults`: Skip default flag injection for known runners.
273
+ - `--`: Use `--` to pass any flag directly to the underlying runner.
274
+ - **`serve`**: Launch the interactive Web UI.
275
+ - `--port`: The port to bind the server to (default: 8999).
276
+ - `--host`: The host address to bind the server to (default: 127.0.0.1).
277
+ - `--tunnel cloudflare|tailscale`: Expose the UI to the public internet via a
278
+ secure tunnel.
279
+ - `--timeout`: Auto-shutdown after a duration (e.g., `8h`, `30m`). Defaults to
280
+ `8h` with `--tunnel`, disabled otherwise.
281
+
282
+ ---
283
+
284
+ ## Advanced: Runner Customization
285
+
286
+ Lemming uses **fuzzy matching** to automatically inject the correct "YOLO"
287
+ (auto-approve) and "Quiet" flags for popular tools:
288
+
289
+ - **Antigravity (`agy`)**: Adds `--dangerously-skip-permissions`
290
+ - **Aider**: Adds `--yes --quiet`
291
+ - **Claude**: Adds `--dangerously-skip-permissions`
292
+ - **Codex**: Adds `--yolo`
293
+
294
+ You can disable this behavior with `--no-defaults`, or use a **template** to
295
+ fully control the command layout:
296
+
297
+ ```bash
298
+ lemming run --runner "my-tool --input={{prompt}} --json"
299
+ ```
300
+
301
+ When `{{prompt}}` is present in the runner string, Lemming replaces it with the
302
+ prompt text and skips all default flag injection.
303
+
304
+ ---
305
+
306
+ ## Screenshots
307
+
308
+ ### Dashboard
309
+
310
+ ![Dashboard](docs/screenshots/dashboard-desktop.png)
311
+
312
+ ### Task Log
313
+
314
+ ![Task Log](docs/screenshots/task-log-desktop.png)