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/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
+ }
@@ -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