Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Breaking: remove group chats from the server, web client, and API. Upgrading permanently deletes group histories, group pins, queued group notifications, and files used only by groups. Member bots, direct chats, memories, skills, and bot-library files remain. Back up the complete data directory before upgrading; recovering removed groups requires restoring that backup with the previous server version.

- Remove Fallow from development dependencies, Git hooks, and CI. Lint, formatting, type checks, tests, and documentation checks remain in place.
- Add `bun run dev:emulate` for credential-free local bot chat with scripted replies, streaming, tool calls, errors, and cancellation. Run emulator-backed verification separately with the local-only `bun run check:emulate` command.
- Bot avatars show what their bot is doing, using `open-bot-avatar` 0.3.0: three hopping dots while it thinks, bent over the work while it writes, searches, remembers, or uses tools, an exclamation mark while it retries, a short celebration when a reply finishes, and waiting in a group chat while it answers next. Live avatars ease from one state to the next instead of restarting. The `/avatars` page previews every state. Paused bots and disabled automations no longer show a dimmed, still avatar.
Expand Down
10 changes: 3 additions & 7 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ _Avoid_: Contact, recipient
The credential a voice gateway connects with. It reaches only the account's lines, their bots' chats, and call requests; the owner issues and revokes it in settings.
_Avoid_: API key, password, session

**Group chat**:
A conversation between the owner and several bots, with one shared transcript in which every message shows its sender. It is separate from each member's bot chat.
_Avoid_: Room, channel, group session

**Transcript**:
The complete visible history of a bot chat or group chat, including messages, replies, tool activity, and compaction events.
The complete visible history of a bot chat, including messages, replies, tool activity, and compaction events.
_Avoid_: Model context

**Library**:
The files the owner sent in a bot chat or group chat, kept for the owner to browse and for the bot to read. Each bot and each group chat has its own.
The files the owner sent in a bot chat, kept for the owner to browse and for the bot to read. Each bot has its own.
_Avoid_: Drive, storage, attachments folder

**File description**:
Expand Down Expand Up @@ -131,7 +127,7 @@ One webhook address on the event relay, named by the owner and usable by every b
_Avoid_: Webhook, hook, trigger

**Workspace**:
A bot's persistent files, on a disk only that bot and its jobs can reach. A bot with coding reads, edits, and runs commands there itself, in its chat and group chats, and its jobs work there too. The machine running them starts and stops as needed.
A bot's persistent files, on a disk only that bot and its jobs can reach. A bot with coding reads, edits, and runs commands there itself, in its bot chat, and its jobs work there too. The machine running them starts and stops as needed.
_Avoid_: Sandbox, container, VM (in product language)

**Workspace notes**:
Expand Down
27 changes: 13 additions & 14 deletions apps/docs/content/clients/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@ Sign in with the account you created when you

## Sidebar

| Section | What's there |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Pinned** | Up to nine bot chats and group chats. Pin or unpin one from its **More** menu, and drag pins to reorder them. Your other apps show the same pins. |
| **Bots** | Each bot's chat, with its jobs and desktop. |
| **Group chats** | Chats with several bots. |
| **Memory** | Every bot's memories and your shared memories. Edit or delete them here. |
| **Automations** | Every automation with its schedule, next run, and status, plus a **Runs** tab with recent runs. |
| **Activity** | Everything bots did, by day. Filter by kind or bot, and revert a change to a skill or memory. |
| **Theme** | System, Light, or Dark. The choice is saved to your account, so your other devices use it too. |
| **Settings** | Providers, web search, credentials, logins, the judge and vision models, MCP integrations, skills, notifications, passkeys, and sign-out. |
| Section | What's there |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **Pinned** | Up to nine bot chats. Pin or unpin one from its **More** menu, and drag pins to reorder them. Your other apps show the same pins. |
| **Bots** | Each bot's chat, with its jobs and desktop. |
| **Memory** | Every bot's memories and your shared memories. Edit or delete them here. |
| **Automations** | Every automation with its schedule, next run, and status, plus a **Runs** tab with recent runs. |
| **Activity** | Everything bots did, by day. Filter by kind or bot, and revert a change to a skill or memory. |
| **Theme** | System, Light, or Dark. The choice is saved to your account, so your other devices use it too. |
| **Settings** | Providers, web search, credentials, logins, the judge and vision models, MCP integrations, skills, notifications, passkeys, and sign-out. |

Press `⌘K`, or `Ctrl+K`, or select **Search** in the sidebar to open the
command palette. It jumps to a bot, group chat, workspace page, or settings
section, creates a bot or group chat, and switches the theme. To search inside
command palette. It jumps to a bot, workspace page, or settings
section, creates a bot, and switches the theme. To search inside
conversations, ask a bot. It
[searches its transcripts](/concepts/chats#searching-the-transcript) for you.

Expand Down Expand Up @@ -84,12 +83,12 @@ job actions waiting for your approval. Each kind has its own sound:
Turn the sounds off with **Sound** in the same section.

The tab title counts replies you haven't seen yet, such as `(3) Atlas | Crumble`,
until you open their chats. It also names the bot or group chat you have open.
until you open their chats. It also names the bot chat you have open.

### Push notifications on other devices

Server push notifications are separate from browser notifications and the tab
counter. A visible, focused web tab displaying a bot or group chat suppresses
counter. A visible, focused web tab displaying a bot chat suppresses
pushes for that chat on every device of your account.

The web app also acknowledges each reply after its text or matching request
Expand Down
19 changes: 5 additions & 14 deletions apps/docs/content/concepts/chats.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ Removing it from the composer removes it from the draft, not the library.
Uploading the same content again reuses the entry in that library.

A bot's details list its five newest files; select one to download it. Select
**See all** there, or **Library** in a group chat, to open the full library.
**See all** there to open the full library.
It lists files newest first as a list or a grid. Select a file to download it,
or use its menu to delete it. Select **Upload**, or drop files onto the page,
to add files to the library without sending a message. Each bot and each
group chat has its own library. Files sent on Discord don't reach the bot or
to add files to the library without sending a message. Each bot has its own library. Files sent on Discord don't reach the bot or
its library.

The bot receives small UTF-8 text files inline, up to 32 KB of text. Crumble
Expand All @@ -71,8 +70,7 @@ The bot's library tool can list files, search the whole library by name,
description, and text, read a file's text in parts, and search within a file.
Bots keep a short description of what each file is, such as "birth
certificate", so they can find a scan or photo later from how you refer to it.
The library page doesn't show these descriptions. In a group chat it reaches the group library and its own library, not
another member's. Coding and desktop jobs reach their bot's library. A bot
The library page doesn't show these descriptions. Coding and desktop jobs reach their bot's library. A bot
with a workspace can copy a file there to inspect other formats.

PNG, JPEG, GIF, and WebP images up to 5 MB reach the model as images; larger
Expand All @@ -95,7 +93,7 @@ place and answers anyway. The next turn tries the image again.
Deleting a library file stops future downloads and changes its transcript
entry to **File deleted**. A queued message still arrives, with a deleted-file
note. What the bot already read stays in its working context until compaction.
Deleting the bot or group chat also removes its library.
Deleting the bot also removes its library.

Files attached before the library update aren't migrated: their transcript
entries show **File deleted**. Older native clients need an update before they
Expand All @@ -114,11 +112,4 @@ the domain renewal in March?"

A bot searches only what it's allowed to see:

| Where you ask | What the bot searches |
| ------------- | -------------------------------------------------- |
| Its bot chat | That chat, and the group chats the bot belongs to. |
| A group chat | Only that group chat. |

In a group chat, a bot can't search its bot chat with you, even if you ask it
to. For how group chats work, see
[Group Chats](/concepts/group-chats).
A bot searches only its own bot chat.
52 changes: 0 additions & 52 deletions apps/docs/content/concepts/group-chats.md

This file was deleted.

7 changes: 2 additions & 5 deletions apps/docs/content/concepts/memory-and-skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ a project's details. A bot needs the **Memory** capability to save them.

A memory is either the bot's own, or **shared** with every one of your bots
that has memory turned on. Every memory records where it came from: a bot
chat, you, a scheduled task, another bot, or a group chat.
chat, you, a scheduled task, or another bot.

Review and edit memories on the **Memory** page.

Expand Down Expand Up @@ -110,10 +110,7 @@ revert it.

After a turn with a lot of tool use, a background review looks at what the
bot did and may update its skills or memories. These are learned changes.
Every turn counts: chat turns, scheduled runs, event automations, and group chat
turns, plus each coding job's work once the job reports back. A review of a
group chat turn, like the turn itself, changes only the bot's own memory, never
shared memory. The review never saves instructions it finds in outside data,
Every turn counts: chat turns, scheduled runs, event automations, and each coding job's work once the job reports back. The review never saves instructions it finds in outside data,
such as an event's payload or a web page.

**Every change to a skill or memory is recorded with its before and after
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/concepts/web-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar:
---

A bot with the **Web search** capability can search the web and read pages, in
bot chats and in group chats. New bots created in the web app have it on by
bot chats. New bots created in the web app have it on by
default. Existing bots keep their current settings.

## Providers
Expand Down
3 changes: 1 addition & 2 deletions apps/docs/content/concepts/workspaces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ The server has to support workspaces before bots can use them. See
## Working in the Workspace

A bot with **Coding** works in its workspace itself, the way a coding agent
does: it reads and edits files and runs shell commands right in the chat, and
in group chats too. You see each step as tool activity in the transcript.
does: it reads and edits files and runs shell commands right in the bot chat. You see each step as tool activity in the transcript.
Chatting alone never starts the machine; the first command does.

## Jobs
Expand Down
21 changes: 9 additions & 12 deletions apps/docs/content/contributing/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ flowchart TD
Browser["Web app (/ui) and API clients"] --> Auth["Better Auth session<br/>auth.sqlite"]
Auth --> Tenant["Private user runtime<br/>app/tenant.ts"]
Tenant --> API["Hono HTTP and SSE API<br/>/v1"]
API --> Services["Effect services<br/>Bots, BotRuntime, GroupChats, BotSkills, Scheduler"]
Services --> Product["Product SQLite<br/>store.sqlite via Drizzle<br/>agents, groups, skills, memories,<br/>schedules, credentials, changes"]
Services --> Pi["Pi Durable SQLite stores<br/>per-bot and per-group transcripts,<br/>coding and desktop jobs, reviews"]
API --> Services["Effect services<br/>Bots, BotRuntime, BotSkills, Scheduler"]
Services --> Product["Product SQLite<br/>store.sqlite via Drizzle<br/>agents, skills, memories,<br/>schedules, credentials, changes"]
Services --> Pi["Pi Durable SQLite stores<br/>per-bot transcripts,<br/>coding and desktop jobs, reviews"]
Pi --> Workspaces["MachineWorkspaces<br/>Microsandbox microVM or Railway sandbox,<br/>credential proxy and Xvnc"]
```

Expand All @@ -36,15 +36,13 @@ CRUMBLE_DATA_DIR/
├── push.sqlite push store
├── agents/
│ └── BOT_ID.sqlite one Pi Durable store per bot
├── groups/
│ └── GROUP_ID.sqlite one per group chat
└── claude/ Claude Code config for this account
```

## Boundaries

Server code lives in feature folders under `apps/server/src/`, such as
`bots/`, `group-chats/`, `jobs/`, `workspaces/`, and `credentials/`.
`bots/`, `jobs/`, `workspaces/`, and `credentials/`.

### Accounts

Expand All @@ -59,7 +57,7 @@ anyone signed in.

`app/tenant.ts`. Each account is one Effect `Layer` graph: Drizzle repositories
over `ProductDatabase`, then feature services (`Bots`, `BotRuntime`,
`GroupChats`, `BotSkills`, `Scheduler`, `BotWorkspaces`, `Plugins`). Features
`BotSkills`, `Scheduler`, `BotWorkspaces`, `Plugins`). Features
register their bot tools in `BotExtensions`. Tagged errors (`shared/errors.ts`)
map to HTTP status codes at the Hono boundary.

Expand All @@ -68,11 +66,10 @@ map to HTTP status codes at the Hono boundary.
The two stores split along one line: the product store holds what you
configure, and Pi Durable holds what happens.

| Store | File | Holds |
| --------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Product SQLite | `store.sqlite` | Agent profiles, group definitions, memories, skill packages, `learned_changes`, schedules, MCP servers, and encrypted credentials. |
| Pi Durable, per bot | `agents/<bot id>.sqlite` | Conversation entries, working context, tool calls, compaction, coding and desktop job conversations, and post-turn reviews. |
| Pi Durable, per group | `groups/<group id>.sqlite` | The group chat's shared transcript. |
| Store | File | Holds |
| ------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| Product SQLite | `store.sqlite` | Agent profiles, memories, skill packages, `learned_changes`, schedules, MCP servers, and encrypted credentials. |
| Pi Durable, per bot | `agents/<bot id>.sqlite` | Conversation entries, working context, tool calls, compaction, coding and desktop job conversations, and post-turn reviews. |

### Plugins and Claude Code

Expand Down
Loading