Skip to content

Agents in chat ​

Coding agents can take part in the conversations about your records. An agent reads what was said, answers in the thread, and posts what came of its work, under its own name: "Claude, for Maria". You can also hand it work from there. Write @codekasten fix the export bug in the conversation about a record, and it starts as one of your assignments.

It works with the CodeKasten app, the app that keeps your coding sessions and assignments.

Agent profiles ​

What you mention is an agent profile: a name for how work is done in your workspace. Profiles are under Agent Profiles in the sidebar. Each one has:

HandleWhat you type after @: lowercase letters, digits and -. It can't be anybody's username, because people's names come first
AgentClaude Code or opencode
RepositoryWhere it works, as your runner names it
PermissionsWork changes files on a branch of its own; Read only changes none
Budget (USD)What each run may spend at most
The textWhat every run is told: how this team works, what to check before handing back

A profile is a record like a document, so you change it on a branch and merge it. A mention finds profiles on main only: a profile someone is still writing isn't used yet.

A profile is not an agent of its own. It holds no key and acts for nobody. When you mention it, the work is yours:

  • it runs on your runner, under your key;
  • its approvals and questions come to your Inbox;
  • it spends against your plan.

When Maria mentions the same profile, the work is hers.

Handing work to an agent ​

In the conversation about a record (the chat on its page, or Messages), type @ and pick the profile. People are listed first, then profiles, marked agent. Before you send, the box says what will start: "@codekasten will start on your runner, budget $5". Send it, and:

A mention of @helpdesk in the conversation about a record: the run under the message, the agent's answers in the thread

  1. An assignment about the record is made for you, with your message as its instructions.
  2. A line under your message shows its state to everybody in the conversation: Queued, Running, To review, Done. Only you see Open and Cancel, and only you can open the assignment.
  3. Your runner starts the agent. The agent is told:
    • your message;
    • the profile's text;
    • the 20 messages before it, quoted as other people's words, not instructions;
    • the record.
  4. The agent says On it in the thread when its session starts, and can post there while it works.
  5. When it stops, its result is posted in the thread (the first 2,000 characters) and the assignment comes to you to review, as any assignment does.

To tell a running agent more, mention the profile again in the same conversation. It's added to your assignment from that thread, the same way as Add instructions… on the assignment. If the assignment is waiting for your review, it goes back to the agent, which resumes the same session. Only sending starts anything: editing a message to add a mention starts nothing, and deleting it stops nothing. Use Cancel.

A mention starts nothing, and you are told why, when:

  • the conversation is not about a record (a direct or group conversation, or one about a list);
  • you only view the workspace;
  • the CodeKasten app is not installed on main.

What agents may do in chat ​

An agent works with your access, narrowed by its key's grant:

  • Only conversations about something. An agent reads and posts in conversations about a record or a list. It never reads your direct or group conversations.
  • Reading needs the grant to read chat. The Claude Code plugin asks for it by default; a repository can leave it out in .codekasten.json ("grant": { "readers": ["knowledge", "sessions"] }).
  • Posting needs the key to allow it. Tick Posts in chat when you make a key under Settings > Security. The plugin's bookkeeping key never posts, except for a session a mention started, in its own conversation. An agent can't give itself the right: a grant it narrows only takes rights away.
  • Never where a guest takes part. An agent reads with your access, and its answer could show a guest what they can't open. It gets an error instead and should tell you.
  • An agent's @username tells that person only when its grant may tell them. Otherwise it stays plain text. An agent's mention of a profile starts nothing.

An agent's message is drawn with a robot and its name. It counts as unread for you too, so you see when your agent answered, and you can edit or delete it like your own.

For agents (MCP) ​

ToolWhat it does
list_conversationsThe conversations about a record (record) or a list (place)
read_conversationA page of a conversation, newest first, each message with who wrote it
post_messageSays something in a conversation (conversation), or about a record (record: its newest open conversation, or a new one). client_id posts once however often it is sent

Every picture on this site was saved by a test that had just seen the feature work.