Skip to content
Projets

À propos

Persistent bots for OpenCode Rune: one chat, invisible memory, routines and animated avatars.

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+2
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Rune Bots

Persistent teammates for OpenCode Rune: a face, one continuous chat, quiet memory, routines and animated avatars.

License: MIT Release OpenCode Rune Platform

Feature tour · Install · Install with an agent · Updating · Repository · Docs · Español

Rune Bots

Bots turns OpenCode agents into persistent teammates. Each bot is still an OpenCode agent, with its own session, skills and permissions; the plugin gives it a name, an animated avatar, one continuous chat, a place in the sidebar, a memory and scheduled routines. It is a thin layer: no second agent runtime, no second scheduler, no database.

  • No second runtime. Bots are agents, chats are sessions, routines are OpenCode Automations.
  • No second dashboard. The chat lives in the main view; the panel is native Settings.
  • Quiet memory. The bot learns from you without announcing it. The chat view does not render the hidden HTML marker; the transcript still contains it. See Privacy.

Feature tour

A face in the sidebar

The Bots section

The Bots section sits in the left sidebar, above recent sessions, and only needs the Side tabs layout. Click a bot to open its chat; the gear opens its settings. The avatars are the same everywhere, so a bot is recognisable at a glance.

One continuous chat

The bot chat header

Clicking a bot opens its session in the main view, with its avatar, name, usage chips and the composer bound to that bot's model and permission. It keeps one OpenCode session, for as long as OpenCode keeps that session.

Native settings and 23 avatars

The bot settings panel

The panel is a native Settings page: Profile, Behavior, Memory, Routines, Team and Chat. Change the name, avatar, material and colour, pick the model and the Build or Plan base, set the permission (Ask, Read-only, Full) and choose the skills. Saving writes the agent file, so OpenCode reloads it.

The avatar gallery is Open Bot Avatar v0.5.2 (MIT): 23 shapes, six states each and five materials. The animation pauses when the window loses focus.

Routines

The Routines tab

Routines are OpenCode Automations created from the panel: daily, weekdays, weekly, every N hours, once or a cron expression. Each one sends a prompt on schedule, with Run now for testing, either in the bot's chat or in a subagent so the run stays out of the transcript (new routines default to the subagent). A hidden [Routine: …] marker keeps routine turns out of memory.

A routine run in the chat

A context that fits

The chat stays continuous, but the prompt does not have to carry all of it. The bot settings show Context as used and limit tokens with a percentage once a reply reports usage; before that the size is unknown.

  • Compact now summarises the older part of the chat. The bot also does it on its own at about 65 per cent and idle, so a long task does not fail halfway.
  • Open work is a per-bot checklist (20 items) that travels in the prompt and in topics/open-work.md; add, tick and delete tasks in the settings.
  • Handoff: starting a new conversation writes topics/handoff.md with the task, the changes and the next step, and the fresh chat gets a pointer to it. Memory is never cleared.

Settings › Bots

Settings › Bots

Settings › Bots holds the bot list with its memory count, Create bot, the bots folder (each bot gets a project folder) and the sidebar appearance: size, pointer-following eyes and the default material.

Install

  1. Copy bots/ into your Rune plugins folder, or start Rune with --plugin-dir pointing at the folder that contains it. Never both.
    • Official Rune: %APPDATA%\rune-opencode\plugins\bots.
    • Fork / dev: the folder you passed to --plugin-dir.
  2. Restart Rune. Requirements: Windows, OpenCode Rune 1.13+, Side tabs layout, and "automations": true for routines.
  3. Open Settings › Bots, add a bot or adopt an existing agent, and pick a main bot.

Do not copy the plugin into the application directory. Read the full guide in bots/README.md, including memory, privacy, compatibility and every module.

Install with an agent

Copy this prompt into OpenCode (or any agent with shell access) on the Windows machine. GitHub adds a copy button to the block.

Install the Bots plugin for OpenCode Rune on this Windows machine.

Source: https://github.com/anak1n-twelf/rune-bots (latest release)
Target: %APPDATA%\rune-opencode\plugins\bots

1. Read the latest release with the GitHub API. Pick the asset named bots-*.zip and download it to a temp folder.
2. Check that the zip contains bots/plugin.toml and bots/init.luau, and read the version from plugin.toml.
3. If the target exists and is a junction or reparse point, stop and tell me: that is a development checkout and I
   should update it with git pull instead. Do not replace it.
4. If the target exists as a normal folder, copy it to %APPDATA%\rune-opencode\plugin-backups\bots-<timestamp> first.
5. Replace the target with the bots/ folder from the zip.
6. Do not touch %USERPROFILE%\.config\opencode. Bot memory and agent files live there. Do not start, restart or
   reconfigure Rune.
7. Report the installed version and tell me to reload: Settings > Extensions > Plugins > Bots > Reload (or restart
   Rune).

If anything fails, stop and show me the error. Do not delete anything outside the target and the backup folder.

The agent needs PowerShell and network access; no admin rights. It does not touch your bots, chats or memory.

Updating

Rune updates the app, not its plugins: a plugin is a folder the host reads at startup. A new release is installed by replacing the bots folder and reloading (Settings › Extensions › Plugins › Bots › Reload). Memory and agent files live under %USERPROFILE%\.config\opencode, outside the plugin, so they survive. From a checkout:

powershell -ExecutionPolicy Bypass -File dev/update.ps1 -Check
powershell -ExecutionPolicy Bypass -File dev/update.ps1

It downloads the latest release, backs up the installed folder, replaces it and prints the reload step. It refuses to replace a junction. Details: Updating.

Repository layout

Path What it is
bots/ The plugin: plugin.toml, Luau modules, locales, avatar rigs, screenshots, README (EN/ES), PRIVACY, CHANGELOG
bots/init.luau Window half: store, adoption, chat, routines, memory review, bots_* tools
bots/model.luau Pure model: bot record, prompts, memory files, secrets, avatars
bots/agentfile.luau PowerShell writer for the agent file and the memory folder
bots/panel.luau Native settings panel: behavior, memory, team, routines
bots/view.luau Sidebar section and the Settings › Bots page
bots/team.luau · bots/chat.luau · bots/routines.luau Bot-to-bot tools, OpenCode HTTP wrappers, schedules and where a routine runs
bots/docs/images/ The real screenshots and the banner used in this README
dev/check.ps1 Loads a plugin in an isolated Rune instance and prints what the host logs about it
dev/update.ps1 Downloads the latest release, backs up and replaces the installed plugin
plugin.schema.json Schema for plugin.toml (editor hint)
.github/ Issue and PR templates

Project docs

  • Privacy — where memory lives, what reaches the model provider, routines and the secret check.
  • Security — PowerShell file writes and how to report a vulnerability.
  • Contributing — license of contributions, locales and the test plan.
  • Code of conduct.
  • Changelog — 0.1.0, the unreleased context work, three review rounds and the legal pass.

Development

powershell -ExecutionPolicy Bypass -File dev/check.ps1 -Only bots -Root "$env:TEMP\rune-bots-check"

Use a different -Root per run. Add -Exe D:/path/to/opencode-desktop.exe for the daily build. The isolated instance replaces the OpenCode background service while it runs, so do not run it from inside the app you are using.

There are no automated UI tests: load the plugin and look at the app. Keep changes small, Luau --!strict, and add every user-facing string to both locales.

License

MIT. See LICENSE. Third-party work is listed in bots/THIRD_PARTY_NOTICES.md: OpenCode base prompts (MIT) and Open Bot Avatar v0.5.2 (MIT).

Explorer des projets similaires

Chargement…