Agent roles
An agent role says who an agent is when it starts. It is made of two texts:
- ① The system prompt: who the agent is and how it works. It sits at the top of every one of its calls, above everything else, for the whole session.
- ② The opening: the first message of the session. It goes out as if you wrote it yourself when you type
/opening.
A project can have a single agent role or one for each kind of agent: a builder, a reviewer, a consultant. An agent uses the agent role chosen for it in the Agents view.
Team and personal
- Team agent roles are written by the admin and everyone sees them: they are the ones the agents in the Agents view use.
- Personal agent roles anyone writes, for themselves: New agent role (an admin ticks “Only for me”). A personal agent role is seen and started only by the person who wrote it — not even the admin reads it, as with personal memories.
Every agent role says how to start it without an agent from the Agents view: with the Claude Code installed on the machine, from the project folder, delminio claude --ruolo <name>. The agent started that way has the agent role's system prompt and opening, like one from the Agents view.
For the agent started in an isolated workspace (Agents view), The isolated workspace says what it finds there: the space's repositories it sees, each with the name of its folder and, if needed, only some folders of the repository; and the agent role's repository, where it saves its deliverables at the end of the session. The admin decides it; with no repository chosen, the agent sees the copy of the project it starts from only. The workspace is switched on for the agent, in Agents (the Workspace choice), and here the card says which agents of the agent role use it, and the agent's card leads to this agent role.
Under the two texts, The role's memories: what the agents started with “only the agent role” have written for themselves, read-only. Those of a team agent role are looked at by the admin, those of a personal one by the person who wrote it.
Further down, for team agent roles, Can read: the project memories the agent role's agent can read, read-only. It does not receive them at startup, but it searches for them and opens them when it needs them. One entry per line, the exact name of a memory or categoria:<name>; never those reserved to the admin. The admin decides it, and if an entry finds nothing today it says so. The agent cannot change or delete them, and writes only in its own.
Deleting an agent role revokes its tokens and removes it from the list, but does not delete its memories. The name of a personal agent role stays with the person who wrote it: recreating it recovers their own memories, another person has to choose a different name. At the next sync the client renews the token of the recreated agent role. If the agent role was deleted before Delminio kept its owner, a name with memories left is not reused, so those memories stay protected without being given to the person who arrives first.
A text made of items
Both texts are shown divided into items, which open with a tap:
| Item | What it is |
|---|---|
| text | Free text, split at its headings |
| memory | A project memory, which the agent receives in full when it starts. Opened, it shows its text and the link to its card |
| rules | The rules written for the agent's model (see below) |
| the system prompt, for agents started without it | Only in the opening: see below |
The admin can move any item with the ↑ ↓ arrows, remove it with ✕ and add a memory from the list at the bottom (“add a memory…”). A text item, opened, has Write here: you change it where you read it, heading included, and Save saves the agent role with that new item. Every other change saves the agent role at once. expand all opens all the items together.
The memories that arrive at startup are decided here, and only here. A project memory arrives in full to an agent at startup if, and only if, its agent role contains it. The order of the items is the order in which the agent reads them.
The weight is always given in tokens, as the agent pays for it: in the list of agent roles how much each startup costs, at the top of each text how much it weighs once composed, next to each item its share, and under the system prompt the cost of every startup. Everything here the agent pays for at every start, before doing anything. A memory needed only now and then is better left out, where the agent searches for it when it needs it.
What is added automatically
At the end of the system prompt, without your writing it, come the profile of the person who starts the agent (their personal memory on how they like to work) and the list of the features switched off.
The external agent: only the agent role
An agent started with only the agent role (chosen in Agents) receives the system prompt without the project's rules, without the model's rules and without the profile. It is an external agent, like a consultant or a reviewer who reads the project from outside: it is not a member of the team, and it does not take a seat.
It has a memory of its own. It reads and writes only the memories of its agent role: it does not see the project's (except those the agent role gives it in Can read), nor anyone's personal ones. So it remembers from one session to the next.
It talks to one session only, its reference session: the last active session that wrote to it on the channel between sessions. It receives only the messages addressed to it, never those “to everyone”, and answers only that session, with the name of its agent role. Until a session has written to it, it has nobody to answer, and says so. The session that writes to it receives a notice, and from then on the external agent answers it.
It opens and ends its session like every agent: the person using it types /opening and /closing, or the word alone. At startup it receives the opening ② of its agent role or, if the agent role has none, the default one, which says in a few lines what has changed since last time, its memories and where things stand. If it is spoken to without /opening, the opening reaches it with the first message, so it never starts without knowing where things stand. What to do at the end of the session is written in the system prompt ①, so that it applies even when the session ends with a greeting, and /closing reminds it. If the agent role does not describe it, it does the default end of session, with its memories updated as a state and not as a diary, and a summary to its reference session.
The model's rules
Different models make different mistakes, and sometimes it is worth writing rules for one only. A model's rules are an ordinary memory, for which the admin says which model it belongs to. The rules item of the system prompt delivers them only to the agent that starts with that model, and shows which agent receives which rules.
The link between an agent and its rules is written in the agent's card, under Advanced configuration → Model rules.
Agents started without the system prompt
The system prompt reaches only the agents started with their command. Anyone who opens Claude Code by hand, or the desktop app, has the tool's standard system prompt. For them the opening can contain the item the system prompt, for agents started without it: at that point they receive the agent role's ① in full, while anyone who already has it receives nothing twice.
Delminio's default agent role
Every new agent role starts from the default text: the system prompt and the opening that Delminio proposes, made of its rules. From there it is yours, and you can change it as you like.
- When a Delminio update brings into the default a rule your agent role does not have, the card says so with “Delminio's default text also has:” and an add button. You also find it in the Dashboard, among the new items from the update.
- A Delminio rule that no agent role contains is not in the memory index the agents receive at startup: search finds it, and it comes back into the index when an agent role names it.
- Edit the text opens the name, the description and the two full texts in an editor; Restore the default brings them back to Delminio's. It takes effect only when you save.
- Rename changes the agent role's name, and the rest moves to the new name: the memories its agents have written for themselves, what it can read of the project and the agents that use it. Its tokens are revoked, so an agent already started has to be restarted, and receives a new one. On the channel between sessions, from then on it is reached by its new name. A name that still has memories of a deleted agent role is not taken, because they belong to that agent role.
Remove deletes the agent role, and the agents that use it no longer find it. Before removing it, choose another agent role for them in Agents. At the bottom of the card, “Used by:” lists which they are.