递归语言模型 (RLM) CLI 代理
fractal
the recursive language model CLI agent
A terminal agent that is an RLM. Powered by predict-rlm — Trampoline's self-harnessed Recursive Language Model runtime.
The easiest way to see an RLM in action on your own work.
Website · predict-rlm · Discord
crafted with ♥ in MTL · NYC · FLP · by Trampoline AI
curl -LsSf https://fractal.trampoline.ai/install.sh | shThis installs the fractal command (and uv if you
don't have it). Make sure you meet the Requirements below, then
drop into any project and run fractal.
Fractal is in early alpha and has currently only been tested on macOS.
Python 3.11+.
uv to install and run Fractal.
sbx v0.33.0+, logged in, with a default network policy. Fractal uses predict-rlm's sbx
backend for sandboxed code execution:
brew install docker/tap/sbx
sbx login
sbx policy set-default balanced # required: sbx refuses to create sandboxes without oneIf sbx is not logged in, or no default network policy is set, the first turn
fails (sbx rejects sbx create with "default network policy has not been
configured"). You can verify the rest of your setup (provider, model, auth)
ahead of time with fractal config status.
The very first run downloads the sandbox template image, which can take several minutes. Check whether the image has already been pulled with
sbx template ls; if nothing appears, Fractal startup will take longer the first time. You can pre-pull it once withsbx create shell /tmp/_warm --name warm --template docker.io/docker/sandbox-templates:shell && sbx rm --force warm. We've noticed some bugs with SBX on MacOS items: list[DatedItem]", page=render(page, dpi=80)) │ for page in doc │ ]) ↳ sub-lm 47/123 · page 47 2 items · 2026-04-01 renewal notice · 2026-06-30 term end ↳ returning items to parent
RLM turn 2/30 (ok) reasoning: 31 items collected — sort them, then write the deliverable python: │ items = sorted((i for r in results for i in r.items), key=lambda i: i.date) │ write_file("timeline.md", to_markdown(items)) │ for i in upcoming(items): │ add_reminder(i.date, i.description)
Contract timeline · Acme MSA Across all 123 pages I found 31 dated items. Full timeline written to timeline.md; the 4 upcoming deadlines are on your calendar.
…bash cd your-project fractal # first run launches provider/model setup, then a session
On first interactive run with no global config, Fractal runs setup
automatically: pick a provider, a model, an optional cheaper sub-model, and how
to supply the API key. After setup you land in an interactive session in the
current directory. Type a request, and Fractal edits the workspace and reports
what it changed. Use `/help` to list slash commands and `/exit` to quit.
## Usage
```bash
fractal # interactive session in the current directory
fractal -p "fix the tests" # one non-interactive turn
fractal --resume # resume a stored workspace session
…
bash
fractal -p "fix the failing tests" # one turn, prompt as an argument
git diff | fractal -p - # read the entire prompt from stdin
echo "summarize recent changes" | fractal -p "review this diff" # prompt + stdin context
…
bash
git clone [email protected]:Trampoline-AI/fractal.git
cd fractal
uv sync # install dependencies
uv run fractal --help
uv run pytest # 200+ testsWhen running from a checkout, prefix commands with uv run (e.g. uv run fractal); an installed tool just uses fractal.
See CONTRIBUTING.md for the contribution workflow and CHANGELOG.md for release notes.
Fractal is a fully open-source proof of concept we're putting out to see what people build with it. It's early, and moving fast.
暂无开放 Issues,或尚未同步最近议题。