Lets agents reuse programs that earlier threads already wrote: search them by meaning, run them on your machine, save new ones. A thread that asks in different words still finds the saved program and runs it without writing code. Programs run on your computer through Extella Desktop and can read local files there; a run takes about 10 seconds. Later threads and other bb projects that use the same Extella agent see the same library. Needs an Extella account with an API key and agent id, and Extella Desktop on the machine that runs programs.
Overview
View sourceEvery bb thread starts from zero. A script one agent wrote and debugged yesterday gets written again today by another agent. This plugin keeps those scripts in a library the agents can search, so a later thread runs the saved program instead of writing it again.
What you get
extella_searchfinds saved programs by what they do, not by name. In our test a thread that asked "how many errors of each kind are in a service log" found a program another thread had saved as "Count ERROR lines in a text log file, grouped by message".extella_runruns a program with parameters on a machine you choose and returns its result. The run itself spends no model tokens.extella_savestores a Python function after it worked. It refuses to replace an existing program unless the agent asks for that.extella_getshows a program's code, andextella_deviceslists the machines you can run on.- A skill tells agents the order: search first, reuse a fit, save only code that already gave the right answer.
How it works
Programs live in an Extella account, in the scope of one Extella agent. Any bb project configured with the same agent id sees the same library. Programs run on your own computer through Extella Desktop, so they can read local files there. A run takes about 10 seconds end to end, so the gain is on work that takes longer to write and debug than that.
Requirements
- An Extella account with an API key and an agent id from https://extella.ai
- Extella Desktop running on the machine where programs should run
- bb plugins run with full trust. This one talks only to the API address in its settings.
Source and tests: https://github.com/AnvarBakiyev/bb-plugin-extella
More in Memory & Context 14
Control durable knowledge or standing context available to agents.


