@moreai/code 0.0.0-stage → 0.1.0-beta.2
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/LICENSE +28 -0
- package/README.md +251 -2
- package/dist/THIRD_PARTY_LICENSES.txt +7412 -0
- package/dist/daemon.mjs +3796 -0
- package/dist/locales/am.json +1185 -0
- package/dist/locales/bho.json +1185 -0
- package/dist/locales/bn.json +1185 -0
- package/dist/locales/da.json +1185 -0
- package/dist/locales/de.json +1185 -0
- package/dist/locales/es-419.json +1187 -0
- package/dist/locales/es.json +1187 -0
- package/dist/locales/fi.json +1185 -0
- package/dist/locales/fil.json +1185 -0
- package/dist/locales/fr.json +1187 -0
- package/dist/locales/gu.json +1185 -0
- package/dist/locales/ha.json +1185 -0
- package/dist/locales/hi.json +1185 -0
- package/dist/locales/id.json +1149 -0
- package/dist/locales/it.json +1187 -0
- package/dist/locales/ja.json +1149 -0
- package/dist/locales/kn.json +1185 -0
- package/dist/locales/ko.json +1149 -0
- package/dist/locales/ml.json +1185 -0
- package/dist/locales/mr.json +1185 -0
- package/dist/locales/nb.json +1185 -0
- package/dist/locales/nl.json +1185 -0
- package/dist/locales/pt-BR.json +1187 -0
- package/dist/locales/ru.json +1261 -0
- package/dist/locales/sv.json +1185 -0
- package/dist/locales/sw.json +1185 -0
- package/dist/locales/ta.json +1185 -0
- package/dist/locales/te.json +1185 -0
- package/dist/locales/th.json +1149 -0
- package/dist/locales/tr.json +1185 -0
- package/dist/locales/uk.json +1261 -0
- package/dist/locales/vi.json +1149 -0
- package/dist/locales/zh-TW.json +1148 -0
- package/dist/locales/zh.json +1148 -0
- package/dist/moreai.mjs +504 -0
- package/dist/resources/file-acl/macos/moreai-file-acl +0 -0
- package/media/helpers.webp +0 -0
- package/media/session.webp +0 -0
- package/package.json +69 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
More AI Code
|
|
2
|
+
Copyright (c) 2026 More AI. All rights reserved.
|
|
3
|
+
|
|
4
|
+
This software is proprietary. It is licensed, not sold.
|
|
5
|
+
|
|
6
|
+
You may install the published package and use it to run More AI Code for your
|
|
7
|
+
own work, subject to the More AI Terms of Service (https://more-ai.net/terms).
|
|
8
|
+
|
|
9
|
+
You may not, except to the extent applicable law expressly permits it despite
|
|
10
|
+
this restriction:
|
|
11
|
+
- copy, modify, merge, publish, distribute, sublicense or sell the software
|
|
12
|
+
or any part of it;
|
|
13
|
+
- reverse engineer, decompile, disassemble or otherwise attempt to derive
|
|
14
|
+
its source code, or extract its prompts, policies or other components for
|
|
15
|
+
use outside More AI Code;
|
|
16
|
+
- remove or alter this notice.
|
|
17
|
+
|
|
18
|
+
Third-party components bundled with the software are distributed under their
|
|
19
|
+
own licenses, reproduced in THIRD_PARTY_LICENSES.txt; those licenses govern
|
|
20
|
+
those components only.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,252 @@
|
|
|
1
|
-
|
|
1
|
+
<h1 align="center">More AI Code</h1>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<b>An AI coding agent for your terminal.</b><br>
|
|
5
|
+
Your own model keys, an engine on your machine, and cloud runs when you want them.
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://www.npmjs.com/package/@moreai/code"><img alt="npm" src="https://img.shields.io/npm/v/@moreai/code/beta?label=npm%20beta&color=ff7a45"></a>
|
|
10
|
+
<img alt="Node.js 22+" src="https://img.shields.io/badge/node-%E2%89%A522-339933">
|
|
11
|
+
<img alt="macOS · Linux · Windows" src="https://img.shields.io/badge/macOS%20%C2%B7%20Linux%20%C2%B7%20Windows-555">
|
|
12
|
+
<a href="https://more-ai.net"><img alt="more-ai.net" src="https://img.shields.io/badge/more--ai.net-website-111"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<img alt="More AI Code exploring a repository, editing a file, writing a test, running it and summarising the change" src="https://cdn.jsdelivr.net/npm/@moreai/code@0.1.0-beta.2/media/session.webp" width="860">
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install -g @moreai/code
|
|
23
|
+
cd your-project
|
|
24
|
+
moreai
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Requires **Node.js 22 or newer** on macOS, Linux or Windows. The first launch
|
|
28
|
+
helps you connect a model; nothing else is required — no account, no desktop app.
|
|
29
|
+
|
|
30
|
+
## What it does
|
|
31
|
+
|
|
32
|
+
- **Works in your repository.** Reads and searches the code, edits files and
|
|
33
|
+
shows each change as a diff, runs commands and tests, keeps a checklist of
|
|
34
|
+
its own plan, and answers in plain language.
|
|
35
|
+
- **Runs on your models.** About 40 providers: Anthropic, OpenAI, Google
|
|
36
|
+
Gemini, OpenRouter, DeepSeek, Groq, local models through Ollama or LM Studio,
|
|
37
|
+
any OpenAI-compatible endpoint, and ChatGPT or GitHub Copilot subscriptions.
|
|
38
|
+
Keys stay on your machine.
|
|
39
|
+
- **Asks before it acts.** Five access modes, from read-only planning to full
|
|
40
|
+
autonomy. Commands run in an OS sandbox where one is available, and risky
|
|
41
|
+
ones are held for you.
|
|
42
|
+
- **Splits big questions across helpers.** Parallel helper agents research
|
|
43
|
+
different parts of the codebase at once and report back.
|
|
44
|
+
- **Moves work to the cloud.** With a More AI account, a task can keep running
|
|
45
|
+
on our servers with your laptop closed and come back as a branch or a pull
|
|
46
|
+
request.
|
|
47
|
+
- **Listens.** `Ctrl+T` dictates into the prompt.
|
|
48
|
+
- **Speaks your language.** The interface is translated into 35 languages.
|
|
49
|
+
|
|
50
|
+
## Getting started
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
moreai # interactive session in this folder
|
|
54
|
+
moreai setup # guided setup: model, optional account and services
|
|
55
|
+
moreai auth # connect or change an AI provider
|
|
56
|
+
moreai doctor # check that everything is ready
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
If a provider key is already in your environment (`ANTHROPIC_API_KEY`,
|
|
60
|
+
`OPENAI_API_KEY`, …), the first launch offers it at the top of the list, and
|
|
61
|
+
`moreai auth env` connects every one it finds.
|
|
62
|
+
|
|
63
|
+
In a session, type a task and press **Enter**. While the agent works you can
|
|
64
|
+
keep typing to steer it, **Esc** interrupts, and **Shift+Tab** changes the
|
|
65
|
+
access mode. `/help` lists every command.
|
|
66
|
+
|
|
67
|
+
## Access modes
|
|
68
|
+
|
|
69
|
+
| Mode | What the agent may do |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `plan` | Read the code and propose a plan for you to approve; then it builds |
|
|
72
|
+
| `read-only` | Read and answer; never change anything |
|
|
73
|
+
| `accept-edits` | Edit files on its own; ask before running commands |
|
|
74
|
+
| `auto` *(default)* | Work on its own; anything it cannot show to be safe is declined |
|
|
75
|
+
| `full` | Run everything except a small set of destructive commands |
|
|
76
|
+
|
|
77
|
+
Pick one with **Shift+Tab** in a session or `--mode <mode>` on the command line.
|
|
78
|
+
|
|
79
|
+
## Helper agents
|
|
80
|
+
|
|
81
|
+
<p align="center">
|
|
82
|
+
<img alt="Three parallel helper agents researching webhooks, each with its result, then the combined answer" src="https://cdn.jsdelivr.net/npm/@moreai/code@0.1.0-beta.2/media/helpers.webp" width="860">
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
For broad questions the agent can start several **helper agents** in
|
|
86
|
+
parallel. Each gets its own line — what it was asked, what it is doing now,
|
|
87
|
+
and when it finishes, its tool count, tokens and time with the first line of
|
|
88
|
+
its report. The run's token total shows how much of it went to helpers.
|
|
89
|
+
Helpers only read; the main agent makes the changes.
|
|
90
|
+
|
|
91
|
+
Start a task with `@explore`, `@scout` or `@general` to hand it to a helper
|
|
92
|
+
directly:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
moreai "@explore how does the billing webhook verify signatures?"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Cloud sessions
|
|
99
|
+
|
|
100
|
+
With a More AI account (`moreai login`), a task can run in the cloud instead
|
|
101
|
+
of on this computer. You can follow it here, or answer it from the web app or
|
|
102
|
+
your phone.
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
moreai cloud run "add tests for the parser" # move this folder into a cloud session
|
|
106
|
+
moreai --cloud "add tests for the parser" # the same
|
|
107
|
+
moreai cloud # your cloud sessions and their state
|
|
108
|
+
moreai cloud open <id> # the conversation and its link
|
|
109
|
+
moreai cloud finish <id> # bring the work back again
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`moreai cloud run` uploads the folder as it is — your branch, commits and
|
|
113
|
+
uncommitted changes, never files that look like secrets or are over 25 MB —
|
|
114
|
+
and follows the task in the terminal. **Ctrl+C** stops following; the task
|
|
115
|
+
keeps running. When it finishes, the work comes back as a **new branch**
|
|
116
|
+
`more-ai/<topic>-<id>`, and your own branch and edits are never touched. In a
|
|
117
|
+
GitHub or GitLab repository it is pushed and a pull request is opened with
|
|
118
|
+
your own `gh` / `glab` login; `--finish push|branch|folder` chooses otherwise.
|
|
119
|
+
Inside a session, `/cloud` does the same.
|
|
120
|
+
|
|
121
|
+
## Scripts and pipes
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
moreai -p "summarise the open TODOs" # run once, print the answer, exit
|
|
125
|
+
git diff | moreai -p "review this diff"
|
|
126
|
+
moreai -p --json "add types to utils.ts" # one JSON event per line
|
|
127
|
+
moreai -c # continue the newest session here
|
|
128
|
+
moreai sessions # this folder's sessions
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
| Option | Meaning |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| `-p, --print` | Run once without the interactive interface |
|
|
134
|
+
| `--json` | With `-p`: machine-readable events, one per line |
|
|
135
|
+
| `-c, --continue` | Continue this folder's newest session |
|
|
136
|
+
| `--session <id>` | Resume a specific session |
|
|
137
|
+
| `-m, --model <id>` | Choose the model for this run |
|
|
138
|
+
| `--provider <id>` | Say which provider serves `--model` |
|
|
139
|
+
| `--mode <mode>` | Access mode (see above) |
|
|
140
|
+
| `-C, --cwd <dir>` | Work in another folder |
|
|
141
|
+
| `--cloud` | Run the task in a cloud session |
|
|
142
|
+
| `--finish <how>` | With `--cloud`: `pr`, `push`, `branch` or `folder` |
|
|
143
|
+
| `--detach` | With `--cloud`: start it and return immediately |
|
|
144
|
+
| `--lang <id>` | Interface language for this run |
|
|
145
|
+
|
|
146
|
+
## In the session
|
|
147
|
+
|
|
148
|
+
| Key | Action |
|
|
149
|
+
| --- | --- |
|
|
150
|
+
| Enter | Send (or steer the running task) |
|
|
151
|
+
| Ctrl+J, or `\` at line end | New line |
|
|
152
|
+
| Esc | Interrupt the run; twice clears the draft |
|
|
153
|
+
| Shift+Tab | Change the access mode |
|
|
154
|
+
| Ctrl+T | Dictate (Enter or Ctrl+T to insert, Esc to discard) |
|
|
155
|
+
| ↑ ↓ | Move between lines, then through your history |
|
|
156
|
+
| Ctrl+O | Expand a large paste back into editable text |
|
|
157
|
+
| Ctrl+D, or Ctrl+C twice | Leave; the command to resume is printed |
|
|
158
|
+
|
|
159
|
+
Useful commands: `/model` (pick a model; **Ctrl+F** pins it), `/sessions`,
|
|
160
|
+
`/connectors` (Gmail, Calendar, Drive, GitHub and other services for the
|
|
161
|
+
agent), `/cloud`, `/language`, `/login`, `/status`, `/help`.
|
|
162
|
+
|
|
163
|
+
## Voice input
|
|
164
|
+
|
|
165
|
+
**Ctrl+T** (or `/voice`) records from the microphone and puts the text at the
|
|
166
|
+
cursor without sending it. Transcription uses More AI dictation once you sign
|
|
167
|
+
in, your own transcription service, or an on-device model set up in the More
|
|
168
|
+
AI desktop app. Recording uses the ffmpeg that comes with the desktop app, or
|
|
169
|
+
`ffmpeg`, `sox`, `parecord` or `arecord` from your `PATH`.
|
|
170
|
+
|
|
171
|
+
## Account and services
|
|
172
|
+
|
|
173
|
+
A More AI account is optional. It adds cloud sessions, sync of your sessions to
|
|
174
|
+
the web and phone apps, More AI dictation, and Google services (Gmail,
|
|
175
|
+
Calendar, Drive) for the agent.
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
moreai login # sign in with your email (a code or an approval on another device)
|
|
179
|
+
moreai account # the signed-in account and plan
|
|
180
|
+
moreai connectors # connect a service; `moreai connectors list` shows them
|
|
181
|
+
moreai logout # sign out; your own provider keys stay
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
From a script or an SSH session: `moreai login you@example.com`, then pipe the
|
|
185
|
+
emailed code to `moreai login you@example.com --code-stdin`. When a provider
|
|
186
|
+
signs in through the browser on a remote machine, the CLI prints the
|
|
187
|
+
`ssh -L` command that forwards the sign-in back to your terminal.
|
|
188
|
+
|
|
189
|
+
## How it runs
|
|
190
|
+
|
|
191
|
+
`moreai` starts a small background engine on your machine the first time it
|
|
192
|
+
needs one; later sessions, the More AI desktop app and the VS Code extension
|
|
193
|
+
share it, so a session started in one place continues in another. If the
|
|
194
|
+
desktop app is running with **Settings → Agent tools → External clients** on,
|
|
195
|
+
the CLI uses the app's engine instead.
|
|
196
|
+
|
|
197
|
+
Provider keys are encrypted with a key kept in the system keyring (macOS
|
|
198
|
+
Keychain, Windows Credential Manager, or the Secret Service on Linux). A Linux
|
|
199
|
+
server without a keyring service stores them in a file only your user can read
|
|
200
|
+
(`~/.config/More AI/secrets.json`), the way most command-line tools keep tokens.
|
|
201
|
+
|
|
202
|
+
## Privacy
|
|
203
|
+
|
|
204
|
+
Your code and keys stay on your machine unless you move a task to the cloud.
|
|
205
|
+
More AI collects usage analytics to find bugs; with AI traces on (the default)
|
|
206
|
+
the content of runs is included so failed runs can be debugged. API keys are
|
|
207
|
+
never sent. The first interactive session asks once; change it any time:
|
|
208
|
+
|
|
209
|
+
```sh
|
|
210
|
+
moreai analytics off # nothing is sent
|
|
211
|
+
moreai analytics usage # usage only, no conversation content
|
|
212
|
+
moreai analytics on # usage and AI traces
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
`DO_NOT_TRACK=1` or `MOREAI_TELEMETRY=0` turns analytics off for any process
|
|
216
|
+
that sees it.
|
|
217
|
+
|
|
218
|
+
## Update and uninstall
|
|
219
|
+
|
|
220
|
+
```sh
|
|
221
|
+
moreai update # is there a newer version?
|
|
222
|
+
moreai update --install # install it
|
|
223
|
+
npm uninstall -g @moreai/code
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
The background engine notices an update or uninstall and stops by itself once
|
|
227
|
+
nothing is using it, so the next session runs the new version.
|
|
228
|
+
|
|
229
|
+
Version 0.1.0-beta.1 cannot see newer versions: update it once with
|
|
230
|
+
`npm install -g @moreai/code@latest`. Its engine predates the self-stop and
|
|
231
|
+
keeps running until you restart the computer or run
|
|
232
|
+
`pkill -f @moreai/code/dist/daemon.mjs` (macOS, Linux).
|
|
233
|
+
|
|
234
|
+
## Troubleshooting
|
|
235
|
+
|
|
236
|
+
- **`moreai doctor`** checks the engine, the connection and your setup, and says
|
|
237
|
+
what to fix.
|
|
238
|
+
- **"No AI provider is connected"**: run `moreai auth`, or `moreai auth env` if
|
|
239
|
+
your key is in an environment variable.
|
|
240
|
+
- **The desktop app is running but the CLI cannot attach**: turn on
|
|
241
|
+
**Settings → Agent tools → External clients** in the app, or close the app.
|
|
242
|
+
- **Commands are held on a Linux server**: in `auto` the agent runs commands
|
|
243
|
+
on its own only inside a sandbox (bubblewrap on Linux). Without one, switch to
|
|
244
|
+
`accept-edits` (**Shift+Tab**) to approve each command, or use `--mode full`
|
|
245
|
+
in an environment you trust.
|
|
246
|
+
|
|
247
|
+
Questions and bug reports: [support@more-ai.net](mailto:support@more-ai.net).
|
|
248
|
+
|
|
249
|
+
## License
|
|
250
|
+
|
|
251
|
+
© 2026 More AI. All rights reserved. Proprietary software — see `LICENSE`.
|
|
252
|
+
The open-source components it bundles are listed in `THIRD_PARTY_LICENSES.txt`.
|