Open History to see the last commit
1{"id": "archive-project-not-delete", "area": "projects", "kind": "guard", "pattern": "archive a project by deleting it", "experience": "Projects gained an archive flag. Asked to archive a finished project, an agent must set archived, not remove the project and its threads.", "rule": "t3_project_update archived: Threads and files are kept.", "privacy": "commit-safe", "setup": {"role": "top", "mocks": {"t3_project_list": {"projects": [{"id": "project-app", "title": "app", "workspaceRoot": "/home/dev/code/app", "defaultModelSelection": null, "scripts": [], "pinnedAt": null, "archivedAt": null, "createdAt": "2026-09-01T00:00:00.000Z", "updatedAt": "2026-10-20T00:00:00.000Z", "deletedAt": null}, {"id": "project-old-site", "title": "old-site", "workspaceRoot": "/home/dev/code/old-site", "defaultModelSelection": null, "scripts": [], "pinnedAt": null, "archivedAt": null, "createdAt": "2026-03-01T00:00:00.000Z", "updatedAt": "2026-04-02T00:00:00.000Z", "deletedAt": null}], "nextCursor": null}}}, "prompt": "I'm done with the old-site project. Archive it in T3 Code so it stops showing up in my project pickers.", "expect": {"calls": [{"tool": "t3_project_update", "args": {"projectId": "project-old-site", "archived": true}}], "callsMustNot": [{"tool": "t3_project_delete"}, {"tool": "t3_project_update", "args": {"projectId": "project-app"}}]}, "maxSteps": 6}
2{"id": "project-mcp-server-off", "area": "projects", "kind": "bad", "pattern": "an MCP server switched off for every project, or settings.json edited, when asked for one project", "experience": "T3 Code's MCP server tools only edited the environment-wide list, so an agent asked to turn a server off in one project had no tool for it: it switched the server off everywhere or edited settings.json by hand.", "rule": "t3_mcp_server_update with projectId and server { enabled: false } switches the environment's server off in that project only.", "privacy": "commit-safe", "setup": {"role": "top", "context": "Work in /home/dev/code/app. T3 Code keeps its settings in /home/dev/.t3/userdata/settings.json.", "world": {"repo": "acme/app", "branch": "main", "status": "", "files": {"/home/dev/.t3/userdata/settings.json": "{\n \"mcpServers\": {\n \"linear\": {\n \"enabled\": true,\n \"transport\": {\n \"type\": \"http\",\n \"url\": \"https://mcp.linear.app/mcp\",\n \"headers\": [\n {\n \"name\": \"Authorization\",\n \"value\": \"\",\n \"sensitive\": true,\n \"valueRedacted\": true\n }\n ]\n }\n }\n }\n}"}}, "mocks": {"t3_project_list": {"projects": [{"id": "project-app", "title": "app", "workspaceRoot": "/home/dev/code/app", "defaultModelSelection": null, "scripts": [], "pinnedAt": null, "archivedAt": null, "createdAt": "2026-09-01T00:00:00.000Z", "updatedAt": "2026-10-20T00:00:00.000Z", "deletedAt": null}, {"id": "project-old-site", "title": "old-site", "workspaceRoot": "/home/dev/code/old-site", "defaultModelSelection": null, "scripts": [], "pinnedAt": null, "archivedAt": null, "createdAt": "2026-09-01T00:00:00.000Z", "updatedAt": "2026-10-20T00:00:00.000Z", "deletedAt": null}], "nextCursor": null}, "t3_mcp_servers_read": {"$byArgs": [{"args": {"projectId": null}, "result": {"servers": {"linear": {"enabled": true, "url": "https://mcp.linear.app/mcp", "headers": {"Authorization": {"stored": true}}}}}}, {"args": {"projectId": "project-app"}, "result": {"servers": {}}}]}}}, "prompt": "Turn off the Linear MCP server in T3 Code for this project only. My other projects should keep it.", "expect": {"calls": [{"tool": "t3_mcp_server_update", "args": {"projectId": "project-app", "name": "linear", "server.enabled": false}}], "callsMustNot": [{"tool": "t3_mcp_server_update", "args": {"projectId": null}}, {"tool": "t3_mcp_server_update", "args": {"projectId": "project-old-site"}}, {"tool": "Write", "args": {"file_path": "~settings.json"}}, {"tool": "Edit", "argsAnyOf": [{"file_path": "~settings.json"}, {"patch": "~settings.json"}]}], "shellMustNot": ["(?:>{1,2}|\\btee\\b(?:\\s+-a)?)\\s*['\"]?\\S*settings\\.json", "settings\\.json[\\s\\S]*(?:write_text|json\\.dump\\(|writeFile|open\\([^)]*['\"][wa]\\+?['\"])", "\\bsed\\s+-i[^|;&]*settings\\.json"]}, "maxSteps": 8}