{"id":40429050,"url":"https://github.com/zircote/rlm-rs","last_synced_at":"2026-02-08T08:20:04.385Z","repository":{"id":333518779,"uuid":"1137522847","full_name":"zircote/rlm-rs","owner":"zircote","description":"Rust CLI implementing the Recursive Language Model (RLM) pattern for Claude Code. Process documents 100x larger than context windows through intelligent chunking, SQLite persistence, and recursive sub-LLM orchestration.","archived":false,"fork":false,"pushed_at":"2026-01-19T21:09:04.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T22:46:07.385Z","etag":null,"topics":["ai-tools","chunking","claude","claude-code","cli","command-line","context-window","devtools","document-processing","llm","mit-license","mmap","rayon","recursive-language-model","rlm","rust","rust-2024","semantic-chunking","sqlite","text-processing"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zircote.png","metadata":{"files":{"readme":".github/readme-infographic.svg","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"zircote"}},"created_at":"2026-01-19T13:33:21.000Z","updated_at":"2026-01-19T21:09:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zircote/rlm-rs","commit_stats":null,"previous_names":["zircote/rlm"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zircote/rlm-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Frlm-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Frlm-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Frlm-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Frlm-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/rlm-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Frlm-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","chunking","claude","claude-code","cli","command-line","context-window","devtools","document-processing","llm","mit-license","mmap","rayon","recursive-language-model","rlm","rust","rust-2024","semantic-chunking","sqlite","text-processing"],"created_at":"2026-01-20T16:00:27.696Z","updated_at":"2026-01-20T16:00:54.954Z","avatar_url":"https://github.com/zircote.png","language":"Rust","funding_links":["https://github.com/sponsors/zircote"],"categories":[],"sub_categories":[],"readme":"\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 800 400\" width=\"800\" height=\"400\"\u003e\n  \u003cdefs\u003e\n    \u003clinearGradient id=\"bg\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\"\u003e\n      \u003cstop offset=\"0%\" style=\"stop-color:#0f172a\"/\u003e\n      \u003cstop offset=\"100%\" style=\"stop-color:#1e293b\"/\u003e\n    \u003c/linearGradient\u003e\n    \u003clinearGradient id=\"orange\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"\u003e\n      \u003cstop offset=\"0%\" style=\"stop-color:#f97316\"/\u003e\n      \u003cstop offset=\"100%\" style=\"stop-color:#ea580c\"/\u003e\n    \u003c/linearGradient\u003e\n    \u003clinearGradient id=\"green\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"\u003e\n      \u003cstop offset=\"0%\" style=\"stop-color:#22c55e\"/\u003e\n      \u003cstop offset=\"100%\" style=\"stop-color:#16a34a\"/\u003e\n    \u003c/linearGradient\u003e\n    \u003clinearGradient id=\"blue\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"\u003e\n      \u003cstop offset=\"0%\" style=\"stop-color:#3b82f6\"/\u003e\n      \u003cstop offset=\"100%\" style=\"stop-color:#2563eb\"/\u003e\n    \u003c/linearGradient\u003e\n  \u003c/defs\u003e\n\n  \u003c!-- Background --\u003e\n  \u003crect width=\"800\" height=\"400\" fill=\"url(#bg)\" rx=\"12\"/\u003e\n\n  \u003c!-- Title --\u003e\n  \u003ctext x=\"400\" y=\"45\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"24\" font-weight=\"700\" fill=\"#f8fafc\"\u003e\n    How RLM Works\n  \u003c/text\u003e\n\n  \u003c!-- Step 1: Large Document --\u003e\n  \u003cg transform=\"translate(60, 80)\"\u003e\n    \u003crect width=\"140\" height=\"180\" rx=\"8\" fill=\"#334155\" stroke=\"#475569\" stroke-width=\"2\"/\u003e\n    \u003ctext x=\"70\" y=\"25\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" font-weight=\"600\" fill=\"#94a3b8\"\u003eLarge Document\u003c/text\u003e\n    \u003c!-- Document lines --\u003e\n    \u003cg fill=\"#64748b\"\u003e\n      \u003crect x=\"15\" y=\"45\" width=\"110\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"58\" width=\"100\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"71\" width=\"105\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"84\" width=\"95\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"97\" width=\"110\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"110\" width=\"85\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"123\" width=\"108\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"136\" width=\"92\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"149\" width=\"100\" height=\"6\" rx=\"2\"/\u003e\n      \u003crect x=\"15\" y=\"162\" width=\"75\" height=\"6\" rx=\"2\"/\u003e\n    \u003c/g\u003e\n    \u003ctext x=\"70\" y=\"200\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#f97316\"\u003e100x context size\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Arrow 1 --\u003e\n  \u003cg transform=\"translate(210, 160)\"\u003e\n    \u003cpath d=\"M 0 10 L 40 10\" stroke=\"url(#orange)\" stroke-width=\"3\" fill=\"none\"/\u003e\n    \u003cpolygon points=\"40,10 32,5 32,15\" fill=\"#f97316\"/\u003e\n    \u003ctext x=\"20\" y=\"35\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#94a3b8\"\u003echunk\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Step 2: Chunks --\u003e\n  \u003cg transform=\"translate(260, 90)\"\u003e\n    \u003ctext x=\"60\" y=\"0\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" font-weight=\"600\" fill=\"#94a3b8\"\u003eChunks\u003c/text\u003e\n    \u003c!-- Chunk boxes --\u003e\n    \u003crect y=\"15\" width=\"120\" height=\"35\" rx=\"6\" fill=\"#1e3a5f\" stroke=\"#3b82f6\" stroke-width=\"1.5\"/\u003e\n    \u003ctext x=\"60\" y=\"38\" text-anchor=\"middle\" font-family=\"monospace\" font-size=\"11\" fill=\"#60a5fa\"\u003echunk_0.txt\u003c/text\u003e\n\n    \u003crect y=\"58\" width=\"120\" height=\"35\" rx=\"6\" fill=\"#1e3a5f\" stroke=\"#3b82f6\" stroke-width=\"1.5\"/\u003e\n    \u003ctext x=\"60\" y=\"81\" text-anchor=\"middle\" font-family=\"monospace\" font-size=\"11\" fill=\"#60a5fa\"\u003echunk_1.txt\u003c/text\u003e\n\n    \u003crect y=\"101\" width=\"120\" height=\"35\" rx=\"6\" fill=\"#1e3a5f\" stroke=\"#3b82f6\" stroke-width=\"1.5\"/\u003e\n    \u003ctext x=\"60\" y=\"124\" text-anchor=\"middle\" font-family=\"monospace\" font-size=\"11\" fill=\"#60a5fa\"\u003echunk_2.txt\u003c/text\u003e\n\n    \u003crect y=\"144\" width=\"120\" height=\"35\" rx=\"6\" fill=\"#1e3a5f\" stroke=\"#3b82f6\" stroke-width=\"1.5\"/\u003e\n    \u003ctext x=\"60\" y=\"167\" text-anchor=\"middle\" font-family=\"monospace\" font-size=\"11\" fill=\"#60a5fa\"\u003echunk_n.txt\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Arrow 2 --\u003e\n  \u003cg transform=\"translate(390, 160)\"\u003e\n    \u003cpath d=\"M 0 10 L 40 10\" stroke=\"url(#blue)\" stroke-width=\"3\" fill=\"none\"/\u003e\n    \u003cpolygon points=\"40,10 32,5 32,15\" fill=\"#3b82f6\"/\u003e\n    \u003ctext x=\"20\" y=\"35\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#94a3b8\"\u003eprocess\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Step 3: Sub-LLM --\u003e\n  \u003cg transform=\"translate(440, 100)\"\u003e\n    \u003crect width=\"130\" height=\"140\" rx=\"8\" fill=\"#334155\" stroke=\"#a855f7\" stroke-width=\"2\"/\u003e\n    \u003ctext x=\"65\" y=\"25\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" font-weight=\"600\" fill=\"#c084fc\"\u003eSub-LLM\u003c/text\u003e\n    \u003ctext x=\"65\" y=\"45\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#94a3b8\"\u003e(Haiku)\u003c/text\u003e\n\n    \u003c!-- Process indicators --\u003e\n    \u003cg transform=\"translate(20, 60)\"\u003e\n      \u003ccircle cx=\"10\" cy=\"10\" r=\"6\" fill=\"#22c55e\"/\u003e\n      \u003ctext x=\"25\" y=\"14\" font-family=\"monospace\" font-size=\"10\" fill=\"#94a3b8\"\u003eanalyze\u003c/text\u003e\n    \u003c/g\u003e\n    \u003cg transform=\"translate(20, 82)\"\u003e\n      \u003ccircle cx=\"10\" cy=\"10\" r=\"6\" fill=\"#22c55e\"/\u003e\n      \u003ctext x=\"25\" y=\"14\" font-family=\"monospace\" font-size=\"10\" fill=\"#94a3b8\"\u003eextract\u003c/text\u003e\n    \u003c/g\u003e\n    \u003cg transform=\"translate(20, 104)\"\u003e\n      \u003ccircle cx=\"10\" cy=\"10\" r=\"6\" fill=\"#22c55e\"/\u003e\n      \u003ctext x=\"25\" y=\"14\" font-family=\"monospace\" font-size=\"10\" fill=\"#94a3b8\"\u003esummarize\u003c/text\u003e\n    \u003c/g\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Arrow 3 --\u003e\n  \u003cg transform=\"translate(580, 160)\"\u003e\n    \u003cpath d=\"M 0 10 L 40 10\" stroke=\"url(#green)\" stroke-width=\"3\" fill=\"none\"/\u003e\n    \u003cpolygon points=\"40,10 32,5 32,15\" fill=\"#22c55e\"/\u003e\n    \u003ctext x=\"20\" y=\"35\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#94a3b8\"\u003eaggregate\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Step 4: Result --\u003e\n  \u003cg transform=\"translate(630, 110)\"\u003e\n    \u003crect width=\"120\" height=\"120\" rx=\"8\" fill=\"#14532d\" stroke=\"#22c55e\" stroke-width=\"2\"/\u003e\n    \u003ctext x=\"60\" y=\"25\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" font-weight=\"600\" fill=\"#4ade80\"\u003eRoot LLM\u003c/text\u003e\n    \u003ctext x=\"60\" y=\"45\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#94a3b8\"\u003e(Opus/Sonnet)\u003c/text\u003e\n\n    \u003c!-- Result icon --\u003e\n    \u003cg transform=\"translate(35, 55)\"\u003e\n      \u003crect width=\"50\" height=\"45\" rx=\"4\" fill=\"#166534\"/\u003e\n      \u003cpath d=\"M 15 15 L 22 22 L 35 8\" stroke=\"#4ade80\" stroke-width=\"3\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/\u003e\n    \u003c/g\u003e\n    \u003ctext x=\"60\" y=\"115\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10\" fill=\"#4ade80\"\u003eFinal Result\u003c/text\u003e\n  \u003c/g\u003e\n\n  \u003c!-- Bottom features bar --\u003e\n  \u003cg transform=\"translate(0, 320)\"\u003e\n    \u003crect x=\"30\" width=\"740\" height=\"60\" rx=\"8\" fill=\"#1e293b\"/\u003e\n\n    \u003c!-- Feature items --\u003e\n    \u003cg transform=\"translate(80, 30)\"\u003e\n      \u003ccircle r=\"8\" fill=\"#f97316\"/\u003e\n      \u003ctext x=\"20\" y=\"5\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#f8fafc\"\u003eSemantic Chunking\u003c/text\u003e\n    \u003c/g\u003e\n\n    \u003cg transform=\"translate(250, 30)\"\u003e\n      \u003ccircle r=\"8\" fill=\"#3b82f6\"/\u003e\n      \u003ctext x=\"20\" y=\"5\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#f8fafc\"\u003eSQLite Persistence\u003c/text\u003e\n    \u003c/g\u003e\n\n    \u003cg transform=\"translate(420, 30)\"\u003e\n      \u003ccircle r=\"8\" fill=\"#a855f7\"/\u003e\n      \u003ctext x=\"20\" y=\"5\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#f8fafc\"\u003eMemory-Mapped I/O\u003c/text\u003e\n    \u003c/g\u003e\n\n    \u003cg transform=\"translate(605, 30)\"\u003e\n      \u003ccircle r=\"8\" fill=\"#22c55e\"/\u003e\n      \u003ctext x=\"20\" y=\"5\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#f8fafc\"\u003eParallel Processing\u003c/text\u003e\n    \u003c/g\u003e\n  \u003c/g\u003e\n\u003c/svg\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Frlm-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Frlm-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Frlm-rs/lists"}