class RlmRs < Formula
desc "Recursive Language Model CLI for Claude Code - handles long-context tasks via chunking"
homepage "https://github.com/zircote/rlm-rs"
url "https://github.com/zircote/rlm-rs/archive/refs/tags/v0.1.0.tar.gz"
sha256 "a059efcb081dba54189a7ee89c3db115473868bf016329fe004a970493db8dcf"
license "MIT"
head "https://github.com/zircote/rlm-rs.git", branch: "main"
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
assert_match "rlm-rs #{version}", shell_output("#{bin}/rlm-rs --version")
system "#{bin}/rlm-rs", "init"
assert_predicate testpath/".rlm/rlm-state.db", :exist?
end
end