@mdless/cli 1.2.0 → 1.3.0

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.
package/README.md CHANGED
@@ -1,50 +1,141 @@
1
1
  # @mdless/cli
2
2
 
3
- ![mdless cli screenshot](https://raw.githubusercontent.com/mdless/mdless-cli/main/assets/screenshot.png)
3
+ ![mdless cli screenshot](https://raw.githubusercontent.com/anteloio/mdless-cli/main/assets/screenshot.png)
4
4
 
5
5
  **Mind less, ship more.**
6
6
 
7
- Run custom Claude Code agent loops from markdown prompts in your repo.
7
+ Run custom Claude Code agent loops from plain markdown prompts in your repo.
8
8
 
9
9
  ## 📦 Installation
10
10
 
11
- #### Run instantly with npx
11
+ #### Run with npx (recommended)
12
+
13
+ Nothing to install. This command always runs the latest version:
14
+
15
+ ```bash
16
+ npx @mdless/cli@latest
17
+ ```
18
+
19
+ Pass any command after it, for example:
12
20
 
13
21
  ```bash
14
- npx @mdless/cli
22
+ npx @mdless/cli@latest init
23
+ npx @mdless/cli@latest agent orchestrator --loop
15
24
  ```
16
25
 
26
+ Keep `@latest` in the command. Without it, npx can reuse an old copy that it saved before.
27
+
17
28
  #### Install globally with npm
18
29
 
19
30
  ```bash
20
31
  npm install -g @mdless/cli
21
32
  ```
22
33
 
23
- ## 📋 Key Features
34
+ Then run `mdless` from any folder. Run the same command again to update.
35
+
36
+ #### Requirements
37
+
38
+ - Node.js 20.17 or newer
39
+ - [Claude Code](https://code.claude.com/docs/en/overview) (the `claude` command), to run agents
40
+
41
+ The examples below use `mdless`. With npx, write `npx @mdless/cli@latest` instead.
42
+
43
+ ## 🧠 The idea
44
+
45
+ An **agent is just a markdown file**. Drop your prompts into `.mdless/agents/` and
46
+ each file becomes a Claude Code agent you can run once or on a loop.
47
+
48
+ ```
49
+ .mdless/
50
+ ├── agents/
51
+ │ └── orchestrator.md → agent "orchestrator"
52
+ └── learnings/
53
+ └── connect-to-sentry.md → persisted know-how
54
+ ```
55
+
56
+ - One markdown file = one agent.
57
+ - The **file name is the agent name** (`orchestrator.md` → `orchestrator`).
58
+ - The file contents are the agent's prompt — write whatever instructions you want.
59
+
60
+ ### Learnings
61
+
62
+ Every agent automatically reads `.mdless/learnings/` at the start of each session
63
+ and is prompted to save new findings there before finishing. This lets the agent
64
+ accumulate codebase-specific knowledge across sessions — workarounds, environment
65
+ quirks, scripts that work around broken MCP servers, and anything else it discovers.
66
+
67
+ Create a learning manually or let the agent write its own:
68
+
69
+ ```
70
+ .mdless/learnings/connect-to-sentry.md
71
+ .mdless/learnings/run-migrations.md
72
+ ```
24
73
 
25
- #### Set up agent prompts
74
+ Get started with the bundled default:
26
75
 
27
76
  ```bash
28
77
  mdless init
29
78
  ```
30
79
 
31
- Copies default prompts into `.mdless/agents/`. Edit them to match your project.
80
+ This copies the default `orchestrator` prompt into `.mdless/agents/` — a single
81
+ coordinator that drains a GitHub-backed pipeline (file issues, implement, review,
82
+ fix, remediate) by spawning ephemeral workers. Edit it, rename it, or add your
83
+ own files — anything in that folder counts as an agent.
84
+
85
+ ## 🚀 Running agents
32
86
 
33
- #### Run agents in tmux
87
+ #### Run an agent once
34
88
 
35
89
  ```bash
36
- mdless work
90
+ mdless agent <name>
37
91
  ```
38
92
 
39
- Launches every prompt in `.mdless/agents/` as a looping agent in a tmux session.
93
+ Runs the agent in `.mdless/agents/<name>.md` a single time. For example,
94
+ `mdless agent reviewer` runs `.mdless/agents/reviewer.md` once and exits.
40
95
 
41
- #### Run a single agent
96
+ #### Run an agent on a loop
42
97
 
43
98
  ```bash
44
- mdless agent <name>
99
+ mdless agent <name> --loop
100
+ ```
101
+
102
+ Runs the agent on repeat: it executes Claude Code, waits, then runs again,
103
+ indefinitely. Stop with `Ctrl-C`.
104
+
105
+ Pass a count to cap the number of runs:
106
+
107
+ ```bash
108
+ mdless agent <name> --loop 2 # run twice, then exit
109
+ ```
110
+
111
+ #### Run an agent on a schedule
112
+
113
+ ```bash
114
+ mdless agent <name> --every 10m
115
+ ```
116
+
117
+ Runs the agent on repeat and waits the given time between runs. The wait starts
118
+ when a run ends. Use `s`, `m`, `h` or `d`, or combine them: `30s`, `10m`, `2h`,
119
+ `1d`, `1h30m`. Stop with `Ctrl-C`.
120
+
121
+ Add `--loop <n>` to cap the number of runs:
122
+
123
+ ```bash
124
+ mdless agent <name> --every 1h --loop 3 # three runs, one hour apart
45
125
  ```
46
126
 
47
- Runs one agent on repeat using `.mdless/agents/<name>.md`.
127
+ The startup sound plays once when the command starts, not before each run.
128
+
129
+ ## 📋 Command reference
130
+
131
+ | Command | What it does |
132
+ | ------------------------------ | ------------------------------------------------------- |
133
+ | `mdless` | Interactive menu |
134
+ | `mdless init` | Copy the default agent prompts into `.mdless/agents/` |
135
+ | `mdless agent <name>` | Run a single agent once from `.mdless/agents/<name>.md` |
136
+ | `mdless agent <name> --loop` | Run the agent on repeat, forever |
137
+ | `mdless agent <name> --loop <n>` | Run the agent `<n>` times, then exit |
138
+ | `mdless agent <name> --every <interval>` | Run the agent on repeat, waiting `<interval>` between runs (eg `10m`) |
48
139
 
49
140
  ## 📄 License
50
141
 
Binary file
Binary file
Binary file