Bots
Some work belongs to no project, or to all of them: “review my open pull requests every morning and tell me which ones are blocked”, “tell me which issues labelled bug came in today, in every project”, “start an agent on this issue and tell me when it is done”. Until now that meant opening some folder as a fake project, or keeping an agent alive in a pane whose context grows for ever.
A bot is an agent of your own for that: a name, a folder, a memory and a chat. It belongs to no project, but it sees all of them and acts on them through the cornercase command line. You write to it, one turn of its agent (Claude Code, Codex, Gemini CLI, opencode, Cursor CLI or GitHub Copilot CLI) runs in a conversation that continues, and the answer lands in its chat.
The window draws a bot as a chat, with bubbles, Markdown and what it is doing, not as the agent’s terminal interface: see In the window. Everything the window does is also a command, so you can talk to a bot from a script with cornercase bot and a program can follow it through events.
A bot made with what it is for sets itself up at once: its first turn starts as soon as it is made. It reads bot.md, schedules what it asks for as routines, writes what its runs will need in memory.md, and tells you in its chat what it will do, what it scheduled and when that runs next. A bot made without it starts nothing and spends no tokens. After that it runs when you write to it and when its routines run, and only while the server runs: a turn’s process does not survive cornercase kill-server, a reboot or an update’s restart. A turn that was running then ends with interrupted by a restart in its chat, and the messages held for it are dropped.
In the window
Section titled “In the window”The Bots page
Section titled “The Bots page”Bots have a page of their own. Bots ›, at the right of the Projects title, opens it in every layout, also before you make your first bot. While a bot answers, the button shows the spinner before its label, and while answers wait for you a blue ● with how many, for every bot together (●9+ past nine).
While the page shows, your bots take the place of the projects list (and of the agents section, when that is on), the chat takes the place of the panes, and the bot’s card takes the place of the workspaces. In a wide window the page opens on the bot you read last, or on the first one; in a compact one it opens the list of your bots, and a tap on one shows its chat. ‹ Projects at the top of the page goes back to where you were.
- One row per bot, in the order you made them: a mark, its name and, dim, its agent and model, or
next 09:00(next Mon 09:00on another day, a date past a week) while the bot is idle, when that fits, and has a routine. The mark is the spinner while the bot answers, and a blue●with a count while it has answers you have not read. The row of the bot on screen has the cyan bar▌. + Newunder the rows opens the new bot form.⋯at the end of a row (it shows when you hover the row, and always, dimmed, in a compact layout), or a right click, opens its menu: rename, edit…, routines…, secrets…, memory… (see Its memory), new conversation, open folder and remove…. A bot’s row has no×: removing a bot deletes its memory, so it asks first. remove… saysRemove bot prs? Its chat, its memory and its folder are deleted. Agents it started keep running.(with its routines named when it has some, and removing them too) and, while the bot answers, its button readsstop it firstand stops the turn. Removing the bot you are reading leaves you on the page.- The wheel scrolls the rows when they do not fit.
With no chat chosen, the page shows a lobby where the chat goes. With no bot yet, it says what a bot is, has + New bot and three ideas, PRs, News and Releases: a click on one opens the form with its name and what it is for filled in, and create then makes a bot that sets itself up. With bots, it asks you to pick one in the list. Keys reach no pane while the page shows; Esc closes a side panel, and otherwise does nothing.
The chat
Section titled “The chat”A click on a bot shows its chat in place of the panes, and its card where the workspaces were: the agent, model, effort, account and access, the folder (a click opens it, or copies its path), the day it was made, the agents it started that are still running (started, each with its status icon, and a click shows that tab) and, two rows each, its routines: the name, then next Mon 09:00 · ↻ weekday 09:00 (or paused). A click on a routine opens its routines, with that one selected. Its ⋯ (it shows while you hover the routine) or a right click opens its menu: run now, pause or resume, edit… and remove (with undo in the notice), the dialog’s buttons without the dialog. ‹ Projects, or a click on a tab of the tab bar when tabs are on top, goes back to the panes. Showing a bot marks its answers as read, as cornercase bot seen does.
The chat keeps to a column at most 110 characters wide, centred in a wider pane. From top to bottom:
- The header has the bot’s name in bold, its agent, model, effort and account, dim, and, at the right, three buttons:
routines(the bot’s routines and reminders; it gives way on a narrow chat, and the bot’s menu still has routines…),new conversation(the same asbot reset: a── new conversation ──line, and the next message starts a new one) and⋯, the bot’s menu. - The lines, newest at the bottom. The view stays at the bottom while new lines come; scrolled up, a
↓ newmark shows when something arrived, and a click on it goes back down. The wheel scrolls, and so doPgUpandPgDnfrom the field, a page at a time. Press, drag and release over the lines to select their text, as in a pane: it turns reversed and is copied when you let go, one line per row, with the indent the rows share left out; dragging above or below the lines scrolls them, and a click drops the selection.- What you wrote is a bubble at the right, at most 80 % of the width, with room around the text and the time dim after it. A message held for the next turn says
heldinstead of the time until it is sent. - What the bot answers is at the left, under its name in bold and the time, dim, as Markdown: headings, bold, lists,
code, highlighted code blocks and links. - Each tool the bot uses is a dim line,
▸ cornercase status --json. A run of more than three folds to its last three, under+N steps, which a click unfolds. - A routine’s run is one block, wherever its lines came: a bold dim header
↻ Review PRs · 09:00, its steps folded into one+N stepsrow, then its answer. A run that failed shows its error withrun again. - An agent the bot started is a line of its own:
▶ started claude in web-shop › fix/ci-482, then✓ claude finished in …with the agent’s last message under it, or! claude needs you in …with its screen. A click onshowshows that agent’s tab. - An error is red, with
retry, which sends your last message again or, under a setup that failed, runs the setup again, when it is the last line and no turn runs. A notice is centred and dim. - While a turn runs, the last line reads
⠋ thinking · 42s · 3 stepswith astopbutton, which ends the turn and everything the bot started in it (stopping…until it has).
- What you wrote is a bubble at the right, at most 80 % of the width, with room around the text and the time dim after it. A message held for the next turn says
- The field at the bottom is a band, with a row of room above it, whose text grows from one row to six and then scrolls, with the placeholder
Message prs…andsendat its right, which fills cyan once there is something to send.Entersends; a line break comes from a paste, which keeps its breaks. Text sent while the bot answers is held and goes as the next turn.Escclears the field; with it empty,Escdoes nothing. The field takes the same word moves and selection as every text field, and keys go to it, never to a pane, while a chat shows. - A chat with no lines says what a bot is, in two lines, and offers four examples as buttons, the last one asking for a routine. A click on one fills the field with it and sends nothing.
A link in an answer asks before it opens: a click on an http:// or https:// address shows Open link, with who wrote it, the address and where it goes (goes to example.com), and open (or Enter) opens it in your browser, copy copies it. A bot’s answer is text an agent wrote, so it never opens on a click alone. It opens only in a window on the server’s own computer; in a remote window, the browser or over ssh the click copies the address, and so it does for an address that is not plain ASCII, carries a user name before the host, spells an IP address in a form a browser reads as another one or is over 2,048 characters, with a toast that says why. See Known limitations.
Each draft stays with its bot: switch to another bot and back and your unsent text is there. A bot’s chat is shared by every window attached to the server, as the shown tab is, and reaches a program as shown_bot in status.
An answer, or an error, that arrives while you are looking at something else makes a toast with a go button, which shows that bot’s chat, and a desktop notification, whose click does the same. Both show the answer’s first line as plain text, without its Markdown.
Its memory
Section titled “Its memory”memory… in the bot’s menu (and b m in the keys menu, on the bot whose chat is on screen) opens Memory › prs: the text of its memory.md, what it keeps from one conversation to the next, in a field you can edit. Enter starts a new line, Tab moves to save and Esc closes without saving. Saving writes memory.md and tells the bot’s conversation at its next message that you changed it, so it reads it again instead of going on with what it read when the conversation began; a new conversation reads it anyway (its first 8 KB). The bot writes the file too: if it changed it while you were editing, save says so and keeps what the bot wrote, and saving again replaces it with yours.
With a prefix key set, b opens the bots group of the keys menu: b the Bots page, n the new bot form, ] and [ the chat of the next and previous bot, going round, and m the memory of the bot on screen. A keyboard alone reaches every chat that way.
Make a bot in the window
Section titled “Make a bot in the window”+ New on the Bots page, + New bot in its lobby, More ▴ › new bot… and b n in the keys menu open the form. Its rows come in this order, which Tab follows, and the label of the row you are in turns cyan. When the window is tall enough a blank row separates each field; a shorter one keeps blank rows only between the groups, and the shortest none.
- Name: 1 to 40 characters, not in use by another bot (whatever the case). The server’s refusals (a name in use, 50 bots) show at the left of the buttons, in red.
- For: what the bot is for. It is optional, may be several lines (
Enterbreaks the line here) and becomesbot.md; filled in, the bot sets itself up for it as soon as it is made. - Agent: Claude Code, Codex, Gemini CLI, opencode, Cursor CLI or GitHub Copilot CLI. An agent that cannot be a bot is greyed, with why:
not yet,not installed, or, for an access, why it has nothrough cornercase(its sandbox cannot reach cornercase,a command can write outside its folder). The form is built from whatcornercase bot agentsanswers. - Model: the models the agent suggests, and
default, the agent’s own. Type to filter;Enteron a name that matches none uses it as written. Effort and Account rows show only when the agent takes efforts or you have accounts for it. - Access:
through cornercaseorfull access, with a note under it that says what the chosen one lets the bot do:reads anything, writes only in its folder(reads and writes only in its folderfor Gemini CLI and GitHub Copilot CLI), or, in red,can change any file and run anything, unattended; see Access. Codex, opencode and Cursor CLI offerfull accessonly (and Gemini CLI and GitHub Copilot CLI on Windows), so nothing is chosen for you there, the note sayschoose how far it may reachand create asks you to choose. - Follow: a box, checked, that says whether the bot is told when an agent it starts finishes.
Spaceor a click toggles it. - Chat apps: when the bot’s answers reach Telegram and Discord:
while away(the default),alwaysoroff. With no chat app paired it sayspair Telegram or Discord in Settings › Remoteinstead, and saving keeps what the bot had. - Secrets (editing only): the names of the secrets saved for the bot, such as
2 saved: campus-user, campus-password, and manage…, which opens the Secrets dialog and gets back to the form, with what you changed in it, when you close it.
create shows the new bot’s chat at once. With For filled in, the bot sets itself up there: ── setting up ──, its steps, then what it will do, what it scheduled and what it needs from you; what you send meanwhile waits for the next turn, which continues the same conversation. With For empty the chat shows its empty state. Changing For later with edit… runs nothing: tell the bot in its chat, or run cornercase bot setup prs. edit… in the bot’s menu is the same form with save, with the agent grey and a bot keeps its agent after it, since another agent could not continue the conversation. rename asks for a new name and keeps the bot’s id and folder.
Make a bot
Section titled “Make a bot”cornercase bot agents # which agents can be a bot, and why notcornercase bot new prs --about "Review my open pull requests and tell me which are blocked"cornercase bot new nightly --agent claude --model sonnet --effort lowbot new prints the bot’s id, a slug of its name that stays when you rename it. The name takes 1 to 40 characters and no two bots share one, whatever the case. There can be at most 50 bots.
--agent:claude,codex,gemini,opencode,cursororcopilot. Without it, the agent you chose in Settings when it can be a bot; otherwise the command asks you to say which.--model,--effort: asstart --modeland--efforttake them.--account: one of the agent’s accounts; without it, the agent’s own login.--access: what the bot may do, see Access.--follow on|off: whether the bot is told when an agent it starts finishes (on by default), see Agents it starts.--chat-apps away|always|off: when its answers reach Telegram and Discord (awayby default), see On Telegram and Discord.--about: what the bot is for. It goes intobot.mdand may be empty. When it is not, the bot sets itself up at once;bot newstill prints only the id, andcornercase bot setup prsruns the setup again, after a failure or afterbot edit --about.
cornercase bot edit prs --model opus changes the name, model, effort, account, access or --follow from the bot’s next message on, and --chat-apps at once; that message also tells the conversation the new name, access or --follow, so the bot does not go on with what it was told when the conversation began; an empty value goes back to the agent’s own. cornercase bot about prs prints what the bot is for, its bot.md. cornercase bot memory prs prints its memory.md, and bot edit --memory TEXT replaces it, telling the bot’s conversation at its next message, as the window’s memory dialog does. The agent cannot change, because another agent cannot continue the conversation: make another bot instead. cornercase bot remove prs deletes the bot, its folder and its routines (it prints how many, and the number cornercase queue restore takes to put them back), and is refused while it answers, or while one of its routines does.
Talk to a bot
Section titled “Talk to a bot”cornercase bot say prs "which of my PRs are blocked?" --waitcornercase bot say prs "and the drafts?"echo "summarize this log" | cornercase bot say prs - --waitcornercase bot history prscornercase bot listcornercase bot setup prsbot say writes your message and starts a turn, answering at once with the line’s id. With --wait it waits and prints the bot’s answer; it exits with 3 when the turn fails, is stopped or takes more than 15 minutes, with the reason on standard error. A message is at most 20,000 characters; a longer one is refused with its size, not cut.
bot setupruns the setup turn again: a new conversation that readsbot.mdandmemory.mdand sets the bot up. It is refused while the bot answers and whenbot.mdis empty.- One turn at a time. A message sent while the bot answers is held, and goes with the others held as the next turn. Different bots answer at the same time.
- The first message of a conversation opens with what cornercase tells the bot about itself, then its
bot.mdandmemory.md(each cut to 8 KB), then what you wrote. Later messages continue the same session. - Steps stream. Each tool the bot uses, such as
cornercase status --jsonorRead src/main.rs, is written to the chat as it happens, so you see what it is doing while it works. cornercase bot history prsprints the chat as you would read it: what you wrote, what the bot used and its answers, with--last Nand--after LINEto cut it.cornercase bot listshows each bot with its state (idleorthinking), the messages held and the answers you have not read, whichcornercase bot seen prsmarks as read.cornercase bot reset prsforgets the conversation: the next message starts a new one that readsbot.mdandmemory.mdagain. Do it when the context fills up (the error says so) or the bot has lost the thread.bot resetandbot removeare refused while the bot answers (bot removealso while a routine’s run does;bot resetdoes not mind a run, which has its own conversation):cornercase bot stopcomes first.cornercase bot stop prsends the answer being written, the runs of its routines that are answering, and everything the bot started in them. Withcornercaseaccess, whatever the bot left running in the background is also stopped when an answer ends (not always: see the exceptions in Known limitations). The conversation stays, so the next message continues it; the messages held are dropped.
An answer, or an error, that nobody waited for makes a toast and a desktop notification (prs: Two are blocked.), unless a window shows its chat: cornercase’s own, or a program’s that says so with view-set --bot.
Routines
Section titled “Routines”A bot can schedule its own work. Tell it “review my pull requests every weekday at 9” and it adds a routine to the queue, with its own destination: the bot instead of a project. Everything about time is the queue’s: one-off reminders (--at 'tomorrow 9:00'), routines, missed runs, pause and resume, start now, the last 10 runs, undo, and the 30-minute minimum.
- A run is a new conversation of the bot, never the chat’s own: it reads the brief,
bot.mdandmemory.md, thenThis is your routine "Review PRs" (every weekday 09:00). …and your prompt. That is why a bot writes inmemory.mdwhat its next run needs. A run and a chat turn can run at the same time. It makes no worktree and fetches nothing. - It reports in the chat: the lines of the run arrive as they happen, as one block. The answer counts as unread and makes a toast,
prs · Review PRs: 3 pull requests wait…, with agothat shows the chat at that run (and a desktop notification), unless the chat is on screen. The routine’s row in its routines says how the last run ended, and a click on it shows the chat at that run. - A run that fails says why: the bot was removed, its agent is not installed, its account is gone, or the turn failed. It makes a toast and a notification, and the chat shows the error with
run again. - The next time you write, the bot knows what its routines said: the answers that its conversation has not seen are put in front of your message, each cut to 4 KB (the newest 10), so “start an agent on the one whose checks fail” works.
- You can schedule one yourself with
+ routinein its routines. The schedule form shows the bot in Where as fixed grey text (bot: prs), and the agent, mode, account and workspace rows give way toset by the bot, since a run uses the bot’s own agent, model and account. - A bot manages only its own entries. Its commands may add, edit, pause, resume, remove and run the routines of that bot, and are refused for a project’s entries and another bot’s.
- Routines run only while the server runs, as every routine does: a time that passes while it is stopped is a missed run (see Known limitations).
- Removing a bot removes its routines, with its folder.
A bot’s routines
Section titled “A bot’s routines”routines in the chat’s header, routines… in the bot’s menu and a click on a routine of its card open the same dialog, Routines › prs. It lists the bot’s routines and reminders, and nothing else lists them: the Queue window shows the projects’ entries only, with a dim line at its end saying how many bot routines there are. Each takes two lines:
- the name, then the repeat and the next run (
↻ weekday 09:00 · next Mon 09:00,↻ weekday 09:00 · paused,once · Sun 16 Nov 09:00for a reminder that has not run); - how its last run ended:
answeredin green,failedin red,stopped,missedin yellow,answering…while it runs, ornot run yet, with when.
The selected row (and the one under the pointer) shows its buttons, each only when it applies: run now (a routine, or a reminder that has not run, failed or was missed), pause or resume, edit… and remove, which takes the routine with its runs and offers undo in the notice. ↑ ↓, PageUp, PageDown, Home and End move, Esc closes. Enter, or a click on a row, shows the chat at the last run’s block and closes the dialog; a run that never started or was missed left no block, so the dialog stays and its hint says why. + routine opens the schedule form for the bot, as an every day at 09:00 routine (the kind combo gives a reminder), and edit… opens it filled in. Saving or cancelling comes back to the dialog.
On Telegram and Discord
Section titled “On Telegram and Discord”With a phone paired on Telegram or Discord, a bot’s answers reach it too, titled 🤖 PRs (and · ↻ Review PRs for a routine’s), with their Markdown; a failure starts with ✗. What you wrote, its steps and its notices are not sent. When an agent the bot follows needs you, its question comes with its buttons, as an agent’s does while you are away.
When is the bot’s chat_apps option, in the form’s Chat apps row or with --chat-apps:
away(the default): only while you are away, as agents’ messages are.always: at the desk too, for a bot you mostly talk to from the phone.off: never, for a bot whose routines would be noise there.
Write to a bot from the chat: reply to one of its messages, use /bot PRs what is blocked?, or /bots and its ✎ button. A 👍 says the bot took it, and its answer comes back as a reply to your message, whatever the option says. A reply to a routine’s answer goes to the bot’s chat, which is told that answer first. With Discord’s forum mode each bot has its own post, 🤖 PRs, where its answers and its routines’ go and where what you write goes to it.
Agents it starts
Section titled “Agents it starts”When a bot starts an agent (cornercase start, and with full access also a tab or split that runs one, or a flow), cornercase remembers which bot did, tells the chat, and follows the agent.
- The tab says who started it:
by prsin the second line of its tab row, the tab bar and its row in the agents section. The chat gets▶ started claude in web-shop › fix/ci-482withshow, which shows that tab; it readsclosedwhen the agent is gone, or after a server restart. - When the agent’s turn ends, the chat gets
✓ claude finished in …(or✗ claude failed in …) with the agent’s last message, cut to 2 KB, under it (six rows, then+N lines, which a click unfolds), and then the bot gets a turn: it says what matters, checks the pull request or starts the next step, as you asked. The turn continues the conversation that started the agent: the chat’s, or, for an agent a routine’s run started, the run’s. Reports that come within 30 seconds of each other go into one turn, so the lines appear 30 seconds or more after the agent finished. - When the agent asks you something, the chat gets
! claude needs you in …with its screen, and the bot gets no turn: answer it in the agent’s tab, as always. It counts as unread, with no toast. Acornercase-access bot cannot answer it: cornercase refuses what it writes to an agent that waits for an answer. - Only the first finish after each prompt from the bot is reported. What you type into that agent yourself changes nothing, so talking to it stays quiet; when the bot writes to it again with
cornercase send --enter, the next finish is reported. - A bot follows at most 20 agents; a 21st drops the oldest, with a notice in the chat. The tab keeps its
by prs. --follow off, or the form’s Follow box, turns it off: the bot is told nothing, the chat gets no lines and no turns start, and the tabs still sayby prs. The bot’s brief says which of the two it is.- After a restart the tabs keep their
by prs, the oldshowlinks readclosed, and the bot follows the agents again from its nextsend --enterinto them. - Not across machines: a
cornercase-access bot cannot start one there, and an agent afullbot starts with--machineor--remoteis not tagged or followed.
What a bot can see and do
Section titled “What a bot can see and do”A bot can look at your work with cornercase status --json (projects, workspaces, tabs and agents, with their ids), cornercase search, cornercase recap, cornercase worktrees list, cornercase read --pane ID, and read-only git in your projects (git -C <folder> log, show, diff, status, with the folder from status --json; Claude Code only) and gh (with -R). It acts through cornercase: cornercase start --project ID --prompt TEXT starts an agent in a project, and you see it like any other agent; cornercase send --pane ID --enter writes a prompt to an agent; cornercase notify sends a notice. It never changes a project’s files itself unless its access is full and you asked: it starts an agent to do it.
Its commands find the programs your PATH finds, in the same order (the server’s PATH, from the shell that started it); only cornercase comes first, from a link in bin/, so it is the server’s own. Two exceptions: a Codex bot runs its commands through a login shell, which can put your own folders first (it may find an installed cornercase), and if the link cannot be made (the log says so) the folder of the server’s program goes first instead, which can change the order of other programs.
A bot runs in no pane, so there is no “here”. Its commands run with CORNERCASE_BOT set, and the command line refuses one that would act on “the pane this runs in, else the one shown” unless it names a project, workspace or pane (a bot runs in no pane: name the place with --workspace ID or --project ID). It also refuses kill-server, restart and update (a bot cannot stop its own server), config export --to (a bot cannot have cornercase write to a file), opening a window (cornercase with no command, cornercase remote to a machine and cornercase proxy: a bot cannot attach as a window), --remote and CORNERCASE_REMOTE (a bot works on this computer only: it cannot act on another machine), plugin other than list, status, actions and logs (a bot cannot run or change cornercase's plugins), machines add, edit, remove, update, hide and show, and remote --remember and --forget (a bot cannot change cornercase's machines) and every tunnel command (a bot cannot open or close a tunnel); a bot cannot change a bot’s access, and it cannot write to itself. Each line of cornercase requests --follow - is checked the same way.
With cornercase access, a bot writes prompts to agents, and the server refuses the rest. The server knows a bot’s commands by their process, not by a variable the bot could drop (with the rare exceptions in Known limitations), and everything from your own terminal works as before. Each refusal fails with exit 1 and says why:
- Typing.
cornercase keysandinputare refused outright (a bot cannot press keys or type as a window does): a key can answer a permission prompt or change an agent’s mode.send,todo send,paste-fileandheld --send-nowwork only into a pane that runs an agent, and not while that agent asks you something, shows a dialog, a panel or its shell mode, or is starting or resuming, even with--force(a bot can only type into a pane that runs an agent, and …). A text that starts with/or!, an agent’s own command or its shell, is refused (a bot writes prompts to an agent, not its commands), and so are a text holding a control character other than a line break or a tab (a bot writes prompts to an agent, not keys) and asendwith no text. If the agent starts asking, or shows a dialog, between the paste and the Enter, the Enter is not pressed.new-tabandsplitwith a command are refused, since the command is typed into a new shell. - Starting.
cornercase startin a mode that never asks before it acts (skip permissions (dangerous)and the like, named with--modeor set in Settings) is refused: the bot names another, such as--mode default.flow runis refused, since a flow’s agents never ask. Starting an agent, a flow or a workspace with--machineis refused: a bot works on this computer only (readingstats,usageandmachinesof a machine still works).cornercase agents reopenis refused when it would bring back a flow’s roles or an agent in a mode that never asks. - Closing and removing. A bot closes only the tabs and panes it started; closing a workspace, a project, a group or an agent you started, forgetting closed agents, stopping a process or a port, discarding changes, and removing worktrees or their builds are refused.
- Changing cornercase. Its settings, flows (
flow importandflow saveonly as a preview or a check), plugins, accounts and profiles, machines, tunnels, pairing a device and the Discord server are refused, and so are stopping, restarting or updating cornercase (a bot cannot stop its own server) andcornercase clone(a bot cannot clone a repository). - Opening.
cornercase openof a bot’s folder or a folder inside it, and of a.code-workspacefile, is refused. - A window. A bot’s connection never acts as a window, whose keys and clicks would be yours: it is closed with
a bot cannot attach as a window.
Access
Section titled “Access”A turn runs without its window, so the agent cannot stop halfway to ask you for permission. What it may do is fixed when the bot is made.
| Access | What the bot may do |
|---|---|
cornercase (the default) |
The agent itself reads anything, runs the cornercase command line (except kill-server, restart, update, clone and config export --to), runs read-only git in your projects’ and worktrees’ folders (git -C <folder> log, show, diff, status, never --output; Claude Code only; with very many projects and worktrees open, and with far fewer on Windows, only the first by folder path, and the server log says how many were left out; a project whose path holds a quote, a backtick, $, !, a comma, a parenthesis, * or ? gets no git at all, and a backslash does the same outside Windows) and gh (pr list, pr view, pr checks, issue list, issue view), searches the web, and writes only in its own folder, bot.json, chat.jsonl and names starting with - at its top excepted. Your own allow rules (Claude’s settings, Gemini’s policies, Copilot’s configuration) apply on top. Gemini CLI and GitHub Copilot CLI read only their own folder. |
full |
Change any file and run anything, unattended. Off by default: you ask for it with cornercase bot new --access full or cornercase bot edit ID --access full, and a bot cannot grant it through cornercase bot. |
- What
cornercaseaccess is, and is not. It keeps the agent itself in its folder, and the server lets itscornercasecommands write prompts to agents and refuses the rest listed in What a bot can see and do. That is a boundary. These are not: your own Claude allow rules (they apply on top);plugin,--remoteandconfig export --to, which only the command line refuses; a question an agent asks that cornercase does not see (opencode never says it waits), which a bot’s prompt can answer; the instant an agent exits, when a bot’s pasted prompt can land on its shell’s line (its Enter is not pressed); and moving what the window shows (focus,go), which can put your typing in another pane. Give a bot only the work you would give an assistant at your keyboard. - Claude Code supports both. It loads your own Claude settings, so your MCP servers and
~/.claude/CLAUDE.mdwork in a bot, and no project’s settings do. - Codex can be a bot with
fullaccess only: its sandbox does not letcornercasereach the server (checked on Linux; macOS and Windows have not been tried, so they are treated the same).cornercase bot agentssays so, andcornercase bot new --agent codexrefuses to start without--access full. A Codex bot reads your own Codex configuration. - Gemini CLI supports both on Linux and macOS, and
fullonly on Windows. Withthrough cornercaseit reads and writes only its own folder (it cannot read the rest of your disk) and runs nogit, and its rules are a file,.gemini/cornercase-policy.tomlin the bot’s folder, that cornercase writes again before every turn; the bot cannot change.gemini/or write a.env. Your own Gemini policies apply on top. - GitHub Copilot CLI supports both on Linux and macOS, and
fullonly on Windows. Withthrough cornercaseit reads and writes only its own folder and runs nogit. It gives no token count for a turn, and an effort needs a model named by you (notauto):cornercase bot newand the form refuse it otherwise. - opencode and Cursor CLI can be a bot with
fullaccess only: their permission rules cannot keep a command’s or an edit’s writes in the bot’s folder (for opencode, a redirect on a group of commands or a pipeline escapes its rules; for Cursor CLI, the edit tool; both wrote outside it when checked).cornercase bot new --agent opencoderefuses to start without--access full. - Grok Build and Vibe CLI cannot be a bot yet (
not yet): Grok was not signed in and Vibe not installed where this was checked. - A bot’s turn is only what the agent says after its last tool; the tools it used before show as steps.
Secrets
Section titled “Secrets”A bot that works behind a login needs a password or a token. Saving it in bot.md or memory.md, or typing it in the chat, leaves it in plain text that every agent of yours can read, so each bot has secrets: named values you save for that bot, kept encrypted, which only that bot’s own turn reads.
- A secret is a name (1 to 40 characters of
a-z,A-Z,0-9,-and_, such ascampus-passwordorGITHUB_TOKEN;GITHUB_TOKENandgithub_tokenare the same secret) and a value of 1 to 8,192 bytes. A bot keeps at most 20. A login is two secrets (campus-userandcampus-password), or put the user name inbot.md. - In the window, secrets… in the bot’s menu, or manage… in its edit form, opens Secrets › prs: the names with when each was saved, replace… and remove on the selected one (remove asks first) and + secret. The value goes into a field that shows dots, is never shown or copied again, and has no copy or cut. The bot’s card says
2 secrets. - From the command line:
printf '%s' "$PASSWORD" | cornercase bot secret set prs campus-passwordreads the value from standard input (never from an argument) and replaces a saved one; one line break at the end is dropped.cornercase bot secret list [BOT] [--json]prints the names and dates, never a value,cornercase bot secret remove BOT NAME(or--all) removes, andcornercase bot secret get NAMEprints a value, only to the bot itself: from its own turn, as the brief teaches it. Your own shell, a program and another bot’s turn are refused (only the bot itself reads its secrets), and so is a bot that tries to save, remove or list another bot’s secrets. - What cornercase writes: before a line goes to the chat file, to
cornercase events, to a toast or a notification, or into a queue entry’s result, every value of that bot of 6 bytes or more is replaced by[secret campus-password]in its steps, answers and errors (and in the lines about agents it started). This is a convenience, not a guarantee: a value the bot encodes or splits passes, and a value you remove while the bot still holds it is no longer replaced. - The file does not open (another key, a damaged file): the list says
the secrets of prs cannot be read, nothing is overwritten, and only remove all (orbot secret remove prs --all) starts again. That removes the bot’s secrets, not the key: ifbots.keyitself is damaged or lost, restore it and restart cornercase, and know that deleting it makes a new key and leaves every bot’s old secrets unreadable. - A secret saved by another client meanwhile is never lost to a stale confirmation: remove all refuses if the list changed since you asked.
- Never type a secret in the chat. The chat is a plain file, and a bot told by its brief will not use what you write there: it tells you the value is now in the chat’s file and asks for it the right way.
- The limits:
- The bot reads the value. It goes to the agent’s provider with the conversation, and stays in plain text in the agent’s own session file on this computer.
- A page or a message the bot reads can tell it to send the value somewhere else. Give a bot what you would give an assistant, and prefer a token with a narrow scope to a password.
- The encryption protects copies, such as a backup, a synced folder or an agent that searches your disk and reads the file by accident. The key is a file next to the session (
bots.key, readable only by you), so it does not stop another program of yours that reads both files, a bot withfullaccess, or acornercase-access bot that goes looking for the key. - On macOS, a command the bot sends to the background whose shell exits is no longer seen as the bot’s, and is refused the secret.
A bot asks for a secret
Section titled “A bot asks for a secret”A bot that needs a password or a token you have not saved for it asks you for it, and the value never goes through the chat. Its brief teaches it to run cornercase bot secret ask campus-user campus-password --about 'to read your grades on the campus site', tell you what it asked for and end its answer.
- The chat shows
asks for a secret: campus-user, campus-passwordwith a give… button while it waits, the bot’s row saysasks for a secret(askswhen the sidebar is narrow) and its card has anasksrow. - If you are looking at that bot’s chat, the dialog opens by itself (unless you are typing a message or another dialog is open; then click give…). Elsewhere you get a toast,
Campus asks for a secret: campus-user, campus-passwordwith go, and a desktop notification; go shows the chat and opens the dialog. While you are away, Telegram and Discord sayCampus asks for a secret: …; open cornercase to give it: a value is never taken from a chat app. - The dialog,
Campus asks for a secret, says the bot’s agent and access (full accessin red), thenIt says:and the bot’s own words, as plain text, then one field per name, which shows dots (replaces the saved onewhen it asks to replace a saved secret). save keeps every value or none; not now (orEsc) closes it and the ask waits; never turns it down.Entermoves to an empty field before it saves. A paste with a tab is refused with the reason. - After you save, the chat says
secret saved: campus-user, campus-passwordand the bot is written to at once (The user saved the secrets you asked for: …), so it carries on; when the ask came from a routine’s run, nothing starts and the chat is told at your next message. never writessecret not given: …, and the bot is told at your next message. - A bot asks for 1 to 4 names at a time, with a reason of at most 200 characters on one line, and keeps at most 4 asks waiting. It cannot ask for a name already saved unless it replaces it (
--replace); the same names asked again change nothing. Saving one of those names in the Secrets dialog or withbot secret setcounts. A restart forgets the asks: their lines stay, without give…, and the bot asks again. Only the bot itself asks, from its own turn; only you give or decline.
What is in a bot’s folder
Section titled “What is in a bot’s folder”Each bot has a folder in bots/ next to session.json (bots/<id>/, private to you, 0700):
| File | What it holds |
|---|---|
bot.json |
The bot’s settings and the id of its conversation. cornercase rewrites it; it does not read it again while it runs. |
bot.md |
What the bot is for. You and the bot both write it: it updates it when you give it a job or change one. cornercase bot about prints it. |
memory.md |
What it keeps from one conversation to the next. It adds to it, keeps it short and prunes it. You edit it with memory… in its menu; cornercase bot memory prints it. |
secrets |
The bot’s secrets, encrypted, readable only by you; there only while the bot has one. The key is bots.key next to session.json, not in this folder. |
chat.jsonl |
The chat as cornercase shows it, one JSON line per message, step, answer, error, notice or agent line. It survives reset and a change of model. |
The chat is cornercase’s own, not the agent’s transcript, so what other features write to a bot later lands in the same place. cornercase tells each bot about itself in the first message of a conversation and never writes it to the folder, so a new release updates every bot at its next conversation.
For programs
Section titled “For programs”Everything is a request over the socket, so a window, a script or a plugin can build on it. cornercase queue add --bot prs --every 'weekday 09:00' --prompt '…' schedules a bot’s routine, cornercase queue list --bot prs --json lists its entries, and inside a bot (CORNERCASE_BOT set) a queue add with no --project, --workspace or --worktree means that bot. chat_apps in bot new, bot edit and bot list --json is the Telegram and Discord option (feature bot-chat-apps). cornercase bot about prs --json gives a program the text of bot.md, so its edit form shows what the person is about to change, and cornercase bot memory prs --json that of memory.md (feature bot-memory). cornercase focus --bot prs shows a bot’s chat in the window, as a click on its row does (feature focus-bot). See Scripts and agents for the bot request, its events and the bots of status --app.