rlm-cli 0.2.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 +184 -0
- package/bin/rlm.mjs +45 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.js +185 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +73 -0
- package/dist/env.d.ts +9 -0
- package/dist/env.js +34 -0
- package/dist/interactive.d.ts +10 -0
- package/dist/interactive.js +789 -0
- package/dist/main.d.ts +11 -0
- package/dist/main.js +144 -0
- package/dist/repl.d.ts +47 -0
- package/dist/repl.js +183 -0
- package/dist/rlm.d.ts +55 -0
- package/dist/rlm.js +354 -0
- package/dist/runtime.py +185 -0
- package/dist/viewer.d.ts +12 -0
- package/dist/viewer.js +828 -0
- package/package.json +48 -0
- package/rlm_config.yaml +17 -0
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rlm-cli",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Standalone CLI for Recursive Language Models (RLMs) — implements Algorithm 1 from arXiv:2512.24601",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"rlm": "./bin/rlm.mjs"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/main.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/**/*.js",
|
|
12
|
+
"dist/**/*.d.ts",
|
|
13
|
+
"dist/runtime.py",
|
|
14
|
+
"bin",
|
|
15
|
+
"rlm_config.yaml"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "tsx src/main.ts",
|
|
19
|
+
"build": "tsc && cp src/runtime.py dist/",
|
|
20
|
+
"start": "node dist/main.js",
|
|
21
|
+
"cli": "tsx src/cli.ts",
|
|
22
|
+
"bench:oolong": "tsx benchmarks/oolong_synth.ts",
|
|
23
|
+
"bench:longbench": "tsx benchmarks/longbench_narrativeqa.ts",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"rlm",
|
|
28
|
+
"recursive-language-model",
|
|
29
|
+
"llm",
|
|
30
|
+
"cli",
|
|
31
|
+
"agent"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@mariozechner/pi-ai": "^0.53.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"esbuild": "^0.27.3",
|
|
39
|
+
"tsx": "^4.19.0",
|
|
40
|
+
"typescript": "^5.7.0"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=20"
|
|
44
|
+
},
|
|
45
|
+
"overrides": {
|
|
46
|
+
"minimatch": ">=10.2.1"
|
|
47
|
+
}
|
|
48
|
+
}
|
package/rlm_config.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# RLM Configuration
|
|
2
|
+
# See: arXiv:2512.24601
|
|
3
|
+
|
|
4
|
+
# Maximum iterations per query before giving up
|
|
5
|
+
max_iterations: 20
|
|
6
|
+
|
|
7
|
+
# Maximum recursive sub-agent depth
|
|
8
|
+
max_depth: 3
|
|
9
|
+
|
|
10
|
+
# Maximum total sub-queries across all depths
|
|
11
|
+
max_sub_queries: 50
|
|
12
|
+
|
|
13
|
+
# Truncate REPL output beyond this many characters
|
|
14
|
+
truncate_len: 5000
|
|
15
|
+
|
|
16
|
+
# Preview lines shown in context metadata
|
|
17
|
+
metadata_preview_lines: 20
|