Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| An archived agent can be found, brought back, or deleted for good. The Agents page ends with Archived, folded, where owners see every archived agent and members their own personal ones, each with when and by whom it was archived and what deleting it would take; Restore brings it back, under a new handle when a live agent has taken its old one, and Delete permanently asks for the handle to be typed and then removes its sessions, replies, memories, routines, versions, drafts, skills and its computer's home, leaving its messages in chat under its saved name, the workspace's spend totals and the audit log. In Chat an archived agent is deactivated the way people expect: never offered as someone to message or mention, never woken, a conversation with it kept in the list, dimmed and marked Archived, open to read with a note in place of the composer and a way to restore it for owners; after deletion the conversation still reads, its messages marked as a deleted agent's. The agents, chat and agent budgets guides say so. | 1 | -- Agents deleted for good (docs.g1t.sh/guides/chat/, "Archived and deleted |
| 2 | -- agents"): the agents service forgets everything about one, but its | |
| 3 | -- messages stay in chat, so chat keeps the name and face it had to show | |
| 4 | -- them under. Written when the agents service says an agent is gone | |
| 5 | -- (`agent_destroyed`), read when a message's author is an agent the | |
| 6 | -- agents service no longer knows. | |
| 7 | CREATE TABLE former_agents ( | |
| 8 | agent_id TEXT PRIMARY KEY, | |
| 9 | workspace_id TEXT NOT NULL, | |
| 10 | handle TEXT NOT NULL, | |
| 11 | display_name TEXT NOT NULL, | |
| 12 | avatar_seed TEXT, | |
| 13 | -- Its chosen face (JSON, @g1t/contracts agent-look.ts), or NULL for the seed's. | |
| 14 | look TEXT, | |
| 15 | deleted_at TEXT NOT NULL | |
| 16 | ); |