{"version":"2.1.312","anchor":"permission-hooks-rewrites-tracked-and-clear-carries-agent","canonical_anchor":"permission-hooks-rewrites-tracked-and-clear-carries-agent","heading":"\/clear keeps agents' settings and survives a deleted working folder","tier":"notice","area":"Slash Commands","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.312\/e\/permission-hooks-rewrites-tracked-and-clear-carries-agent","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.312","markdown":"### `\/clear` keeps agents' settings and survives a deleted working folder\n\n`\/clear` now carries over each agent's settings file and falls back to a safe folder if the original one was deleted\n\n**What**\n\n`\/clear` starts a new conversation with empty context. It now handles two more cases:\n\n- Agent settings: each agent's settings file is carried into the new conversation. If that fails, Claude Code logs that `\/clear` did not carry the settings file of the agent.\n\n- Missing folder: if the folder Claude Code started in no longer exists, `\/clear` falls back to a safe folder instead.\n\nHooks are scripts you set up to run at certain moments. Permission hooks run when Claude asks to use a tool, and they can rewrite what the tool is given. Claude Code now records each of these rewrites, noting what kind of hook made it and where that hook came from. It keeps hook errors in a separate list.\n\n**Why**\n\nAgents keep their settings after you clear a conversation. `\/clear` also no longer runs into trouble when the folder you started in has been deleted.\n\n- Area: Slash Commands\n- Names: `\/clear`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}