","abstract":"","articleSection":"skill","datePublished":"2026-07-10T11:24:04.115Z","dateModified":"2026-07-10T11:24:04.115Z","inLanguage":"en","url":"https://claudary.paisolsolutions.com/skills/dont-drop-original-read-files","mainEntityOfPage":{"@type":"WebPage","@id":"https://claudary.paisolsolutions.com/skills/dont-drop-original-read-files"},"isAccessibleForFree":true,"encoding":{"@type":"MediaObject","encodingFormat":"text/markdown","contentUrl":"https://claudary.paisolsolutions.com/raw/skills/dont-drop-original-read-files"},"wordCount":168,"author":{"@type":"Person","name":"Claude Code Knowledge Pack"},"publisher":{"@id":"https://claudary.paisolsolutions.com/#organization"},"speakable":{"@type":"SpeakableSpecification","cssSelector":["h1","[data-speakable]"]}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://claudary.paisolsolutions.com/"},{"@type":"ListItem","position":2,"name":"Skills","item":"https://claudary.paisolsolutions.com/skills"},{"@type":"ListItem","position":3,"name":"Don't /drop read-only files added at launch","item":"https://claudary.paisolsolutions.com/skills/dont-drop-original-read-files"}]},{"@type":"Organization","@id":"https://claudary.paisolsolutions.com/#organization","name":"Claudary","url":"https://claudary.paisolsolutions.com","logo":{"@type":"ImageObject","url":"https://claudary.paisolsolutions.com/favicon.png"}}]}
All skills
Skillintermediate

Don't /drop read-only files added at launch

<script> const recording_id = "dont-drop-original-read-files"; const recording_url = "https://gist.githubusercontent.com/paul-gauthier/c2e7b2751925fb7bb47036cdd37ec40d/raw/08e62ab539e2b5d4b52c15c31d9a0d241377c17c/707583.cast"; </script>

Claude Code Knowledge Pack7/10/2026

Overview

Don't /drop read-only files added at launch

<script> const recording_id = "dont-drop-original-read-files"; const recording_url = "https://gist.githubusercontent.com/paul-gauthier/c2e7b2751925fb7bb47036cdd37ec40d/raw/08e62ab539e2b5d4b52c15c31d9a0d241377c17c/707583.cast"; </script>

{% include recording.md %}

Commentary

  • 0:01 We're going to update the /drop command to keep any read only files that were originally specified at launch.
  • 0:10 We've added files that handle the main CLI and in-chat slash commands like /drop.
  • 0:20 Let's explain the needed change to aider.
  • 1:20 Ok, let's look at the code.
  • 1:30 I'd prefer not to use "hasattr()", let's ask for improvements.
  • 1:45 Let's try some manual testing.
  • 2:10 Looks good. Let's check the existing test suite to ensure we didn't break anything.
  • 2:19 Let's ask aider to add tests for this.
  • 2:50 Tests look reasonable, we're done!