runtrim 0.1.17 → 0.1.19
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 +104 -76
- package/dist-cli/runtrim.cjs +1336 -108
- package/dist-cli/runtrim.js +1336 -108
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,76 +1,104 @@
|
|
|
1
|
-
# RunTrim
|
|
2
|
-
|
|
3
|
-
RunTrim is the control layer for AI coding agents.
|
|
4
|
-
|
|
5
|
-
It gives Claude, Codex, Cursor, ChatGPT, and other agents project memory, scoped contracts, MCP guidance, approval flow, and finish verification before changes are accepted.
|
|
6
|
-
|
|
7
|
-
Website: https://www.runtrim.com
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install -g runtrim
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Quickstart
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
runtrim
|
|
21
|
-
runtrim
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
runtrim mcp
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
runtrim
|
|
67
|
-
runtrim
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
# RunTrim
|
|
2
|
+
|
|
3
|
+
RunTrim is the control layer for AI coding agents.
|
|
4
|
+
|
|
5
|
+
It gives Claude, Codex, Cursor, ChatGPT, and other agents project memory, scoped contracts, MCP guidance, approval flow, and finish verification before changes are accepted.
|
|
6
|
+
|
|
7
|
+
Website: https://www.runtrim.com
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g runtrim
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quickstart
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g runtrim
|
|
19
|
+
cd your-project
|
|
20
|
+
runtrim start
|
|
21
|
+
runtrim doctor
|
|
22
|
+
runtrim agent "Fix the homepage copy" --copy
|
|
23
|
+
runtrim finish
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Primary flow
|
|
27
|
+
|
|
28
|
+
1. `runtrim start` analyzes the project and prepares local RunTrim memory and instructions.
|
|
29
|
+
2. `runtrim agent "task" --copy` creates a guarded run and handoff prompt for your coding agent.
|
|
30
|
+
3. Agent completes the task inside contract scope.
|
|
31
|
+
4. `runtrim finish` verifies scope and sensitive-file safety with a clear verdict: `PASS`, `WARN`, or `BLOCKED`.
|
|
32
|
+
|
|
33
|
+
If scope needs to expand safely:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
runtrim approve "Allow <path or scope> for this run only"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## MCP (optional)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
runtrim mcp instructions
|
|
43
|
+
runtrim mcp config --print
|
|
44
|
+
runtrim mcp start
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
MCP lets compatible agents use RunTrim tools like contract creation, path checks, approval suggestions, and finish guidance.
|
|
48
|
+
RunTrim does not silently modify global MCP config files. Use `runtrim mcp instructions` and `runtrim mcp config --print` to inspect snippets, and `runtrim doctor` to check readiness.
|
|
49
|
+
|
|
50
|
+
## Local-first trust model
|
|
51
|
+
|
|
52
|
+
- Free CLI runs locally.
|
|
53
|
+
- Source code stays local by default.
|
|
54
|
+
- RunTrim does not read env file contents.
|
|
55
|
+
- Ignored `.env.local` is warned and reported, not read.
|
|
56
|
+
- Sensitive tracked/changed or unignored sensitive files still block finish.
|
|
57
|
+
|
|
58
|
+
## Plans and sync
|
|
59
|
+
|
|
60
|
+
- Free: local control flow and local history.
|
|
61
|
+
- Pro+: cloud sync and hosted dashboard history.
|
|
62
|
+
|
|
63
|
+
## Restore and rewind (local)
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
runtrim restore last --preview
|
|
67
|
+
runtrim restore last --apply
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Restore points are local and source-safe. Apply happens locally through the CLI.
|
|
71
|
+
|
|
72
|
+
## CI merge gate (GitHub Action v1)
|
|
73
|
+
|
|
74
|
+
RunTrim can run as a CLI-based PR check:
|
|
75
|
+
|
|
76
|
+
1. Add `.github/workflows/runtrim.yml.example` to your repo as a workflow.
|
|
77
|
+
2. Run `runtrim ci check --strict` on pull requests.
|
|
78
|
+
3. Set branch protection to require the RunTrim check.
|
|
79
|
+
|
|
80
|
+
`runtrim ci check` returns `PASS`, `WARN`, or `BLOCKED`.
|
|
81
|
+
- `BLOCKED` exits non-zero and can prevent merge.
|
|
82
|
+
- `WARN` exits zero by default, or non-zero in `--strict` mode.
|
|
83
|
+
|
|
84
|
+
GitHub App and team policy sync are coming later.
|
|
85
|
+
|
|
86
|
+
## Core commands
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
runtrim start
|
|
90
|
+
runtrim doctor
|
|
91
|
+
runtrim agent "Your task" --copy
|
|
92
|
+
runtrim finish
|
|
93
|
+
runtrim approve "Allow <scope> for this run only"
|
|
94
|
+
runtrim status
|
|
95
|
+
runtrim mcp instructions
|
|
96
|
+
runtrim ci check
|
|
97
|
+
runtrim restore last --preview
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Legacy bridge compatibility (still supported):
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
runtrim go "Your task"
|
|
104
|
+
```
|