Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-docs

One read of Claude Documentationclaude-docs-20261120T020704Z

8 pages moved out of 297 read.

Pages moved 8 significant first
Pages read 297 in this capture
Captured 02:07 UTC
Corpus hash 6728c5b0e5da corpus-hash

What this read moved

1-8 of 8

claude-science/auto-mode Changed · +7 / -1 lines

from line 35
3535* Code you've already allowed
3636* Calls to remote and directory connectors that would otherwise ask you
3737 
38In auto mode, Claude can save most source code to your **Read & write** folders without asking, and auto mode doesn't check it. Claude Science can still ask about some files.
39 
3840Even when auto mode is on, Claude Science still asks permission for:
3941 
4042* Network access
41* Access to files outside the session's workspace folder, other than [what the sandbox's rules let code read or write](https://claude.com/docs/claude-science/core-concepts.md#sandbox)
43* Folder access you haven't granted, except [what sandbox rules let code read or write](https://claude.com/docs/claude-science/core-concepts.md#sandbox)
44* Saving some file types, such as shell scripts and archives, to your folders
45* Deleting files in your folders
4246* Remote compute
4347* Claude Science's package and environment tools
4448* Any tool you set to **Ask each time**
49 
50When auto mode is off but [available to you](#what-auto-mode-needs-in-claude-science), Claude Science still checks already-allowed code that uses a saved credential, such as an API key, and asks on a card when unsure. If you don't answer and spend 10 straight minutes in another session, window, or app, or with the session off screen, Claude skips that code. Until you allow one of these cards, later such code in that session can be skipped too. These checks count toward your [usage](https://claude.com/docs/claude-science/overview.md#plans-and-usage).
4551 

claude-science/core-concepts Changed · +14 / -12 lines

from line 6
66 
77A project groups related sessions and the artifacts they produce. Projects also let you set up custom instructions for Claude to read at the start of every session. Folder permissions you grant persist across sessions and apply to all projects.
88 
9A session is one conversation thread. Each session has its own workspace folder and multiple running kernels.
9A session is one conversation thread. Each session has its own workspace folder and multiple running kernels. From version 0.1.73, Claude Science is designed to keep Claude from opening another session's workspace files unless the current session came from that session through **Continue as a new session** or as a side chat. To use such files in the project's other sessions, have Claude first save them as [artifacts](https://claude.com/docs/claude-science/artifacts.md).
1010 
1111## Files stay on your computer
1212 
13Claude reads and writes files in place, in the folders you grant. Anthropic doesn't host or store your files; file content that Claude reads to answer a prompt is sent to Anthropic as part of the conversation, and Anthropic retains it as [How Claude Science works with your data](https://claude.com/docs/claude-science/how-claude-science-works-with-your-data.md) describes. If you sign in to Claude Science on a different computer, your files, artifacts, and conversation history don't follow you there. See [Use Claude Science on more than one computer](https://claude.com/docs/claude-science/multiple-computers.md) for what your account does carry between computers.
13Claude reads files in place in the folders you grant, and its code can only read them. Claude works on copies in the session's workspace folder, then saves finished files to **Read & write** folders.
1414 
15The one exception to working in place is **Attach files** in the composer: attached files are copied into the application's local data folder so they stay with the conversation.
15Anthropic doesn't host or store your files; file content that Claude reads to answer a prompt is sent to Anthropic as part of the conversation, and Anthropic retains it as [How Claude Science works with your data](https://claude.com/docs/claude-science/how-claude-science-works-with-your-data.md) describes. If you sign in to Claude Science on a different computer, your files, artifacts, and conversation history don't follow you there. See [Use Claude Science on more than one computer](https://claude.com/docs/claude-science/multiple-computers.md) for what your account does carry between computers.
1616 
17**Attach files** in the composer copies files to the app's local data folder, keeping them with the conversation.
18 
1719> [!WARNING]
1820>
1921> Don't move, rename, or delete files inside \~/.claude-science directly. Doing so can break artifact links and version history. Manage artifacts through the app.
from line 22
2022 
2123## Permission cards
2224 
23A permission card appears in the conversation each time Claude needs a new kind of access. The card names exactly what's being requested. You can allow or deny each one. With [auto mode](https://claude.com/docs/claude-science/auto-mode.md) on, Claude Science's own check can allow code, or a call to a remote or directory connector, without a card. If the check blocks a step or can't finish, a card asks you.
25A permission card appears in the conversation each time Claude needs a new kind of access. The card names exactly what's being requested. You can allow or deny each one. On a Mac or Linux, a folder's card starts on **Read-only**, even for write requests. With [auto mode](https://claude.com/docs/claude-science/auto-mode.md) on, Claude Science's own check can allow code, or a call to a remote or directory connector, without a card. If the check blocks a step or can't finish, a card asks you.
2426 
2527| Action | Card title | Scope options |
2628| - | - | - |
2729| Read or write a folder | Access `<folder>` on your computer? | Read-only or Read & write; persists until revoked |
30| Save some kinds of files Claude doesn't save by itself, such as shell scripts, JSON, or archives, to a **Read & write** folder | Save this file into your folder? / Replace this file? / Make this folder? / Save a file that can't be shown / Replace a file with one that can't be shown | This file only; asked each time |
31| Save `.py`, `.R`, or other source files to a **Read & write** folder | Allow Claude to save source files in this repo? / Allow Claude to save source files in this folder? | This file only, or that repo's or folder's source files for this session |
2832| Run code | Run Python code? / Run R code? / Run a shell command? / Run a PowerShell command? (Windows) / Install packages? | Once, This conversation, This project, or Global |
29| Work in a write-access folder too large to check for credential files (Linux) | This folder is too large to check fully / This folder changed past what was checked | Asked once per folder, and again when new or changed subfolders go unchecked |
33| Work in a **Read & write** folder too large to check for credential files (Linux) | This folder is too large to check fully / This folder changed past what was checked | Asked once per folder, and again when new or changed subfolders go unchecked |
3034| Reach a network host | Connect to `<target>`? | Persists until revoked |
3135| Use a connector tool | Use `<tool>`? | Once, This conversation, This project, or Global |
3236| Use a saved credential | Credentials | Once, This conversation, This project, or Global |
3337| Run a remote job | Run this job on `<host>`? / Start a Modal job? | Once, This conversation, This project, or Global |
3438 
35Most standing grants are listed in **Settings > Permissions** and can be revoked there. Network hosts are listed in **Settings > Network**, where you can revoke them.
39Most standing grants are listed in **Settings > Permissions** and can be revoked there. Network hosts are listed in **Settings > Network**, where you can revoke them. Source-file grants aren't listed and end when the session ends, Claude Science restarts, or you revoke folder access. Claude Science can still ask about code using a saved credential despite a standing grant for code or credentials. See [What auto mode checks](https://claude.com/docs/claude-science/auto-mode.md#what-auto-mode-checks).
3640 
37On Linux, a uv, conda, mamba, or pixi environment in a folder you've granted **Read & write** can still be read-only to Claude. See [Environments in granted folders](https://claude.com/docs/claude-science/tools-and-environments.md#environments-in-granted-folders).
41**Read & write** lets Claude save, change, and delete files in the folder, but code Claude runs can only read it. When Claude overwrites a file there, Claude Science keeps the earlier version only in some cases, such as when another program may be writing it. Builds, package installs, and git writes there fail. See [Files in granted folders](https://claude.com/docs/claude-science/troubleshooting.md#files-in-granted-folders), [Environments in granted folders](https://claude.com/docs/claude-science/tools-and-environments.md#environments-in-granted-folders), and [Git in granted folders](https://claude.com/docs/claude-science/troubleshooting.md#git-in-granted-folders).
3842 
3943## Plans
4044 
from line 50
4650 
4751The sandbox lets code write to these locations and, on macOS and Linux, nowhere else by default:
4852 
49* Folders where you've [granted](#permission-cards) **Read & write** access
5053* Folders that Claude Science provides, such as the session's [workspace folder](#projects-and-sessions) and the project's [artifacts](https://claude.com/docs/claude-science/artifacts.md) folder
5154* Temporary storage, which is the shared `/tmp` folder on macOS and private folders on Linux and Windows
5255 
53The sandbox is designed to block reads of your home directory, apart from folders you've granted and folders that Claude Science needs to run the code, such as workspace folders, [artifacts](https://claude.com/docs/claude-science/artifacts.md), saved tool results, and [conda environments](https://claude.com/docs/claude-science/tools-and-environments.md). These folders can belong to other sessions and projects:
56Granted folders aren't on this list. On macOS and Linux, code can only read them. On Windows, it can also write in one whose own permissions let all sandboxed apps write, such as an **ALL APPLICATION PACKAGES** entry. **Read & write** lets Claude Science save, change, and delete files there for Claude, outside the sandbox, under its own checks.
5457 
55* Code can read the artifacts of all your projects and the saved tool results of all your sessions, which can include copies of earlier messages from long conversations.
56* On macOS, code can also read the workspace folders of all your sessions.
58The sandbox is designed to block reading your home directory, except granted folders and those Claude Science needs to run code, such as the current session's workspace folder and saved tool results, [artifacts](https://claude.com/docs/claude-science/artifacts.md), and [conda environments](https://claude.com/docs/claude-science/tools-and-environments.md). Code can also read all projects' artifacts and, on Windows, all sessions' saved tool results, which can include copies of earlier messages from long conversations.
5759 
5860These rules limit what code can read, but they aren't a guarantee. Don't rely on the sandbox alone to protect sensitive files on your computer, including in your home directory, and keep Claude Science up to date, because new versions include sandbox fixes.
5961 
from line 63
6163 
6264* **macOS**: most locations your account can read, such as `/Applications` and `/Users/Shared`, and the parts of other people's home folders that macOS lets your account read. Code isn't allowed to read external drives and network shares mounted under `/Volumes`, other than Claude Science's own folders if its data folder is on one. You can't grant folders there. Code can read a drive or network share that's mounted outside both `/Volumes` and your home directory, if your account can.
6365* **Linux**: system directories such as `/usr`, `/opt`, and `/nix`, and a fixed set of configuration files and folders in `/etc`. By default, code can't read other locations, apart from Claude Science's own folders, unless you grant them.
64* **Windows**: locations that Windows makes readable to every sandboxed app, such as `C:\Windows` and `C:\Program Files`. Code can also read the environment variables saved for your Windows account, so don't store secrets such as API keys in them.
66* **Windows**: locations that Windows makes readable to every sandboxed app, such as `C:\Windows` and `C:\Program Files`. Code can also read the environment variables saved for your Windows account, so don't store secrets such as API keys in them. Code may also be able to read and change files on some FAT and exFAT drives, even in folders you haven't granted, because such drives lack file permissions. **Settings > Permissions** lists the drives found. To protect files on one, move them to an NTFS drive (formatting a drive erases it) or, if you can, disconnect the FAT or exFAT drive before Claude works.
6567 
6668## Delegation
6769 

claude-science/overview Changed · +17 / -2 lines

### Models that run on usage credits

from line 32
3232* About 5 GB of free disk space for the runtime and starter environments.
3333* On Linux: socat, bubblewrap 0.8.0 or later, and unprivileged user namespaces permitted by the kernel.
3434 
35For Claude to save to granted folders, a Mac also needs Apple's Command Line Tools, and Linux needs Python 3.8 or later at `/usr/bin/python3`. Windows needs nothing more.
36 
3537## Plans and usage
3638 
3739Claude Science is included in Pro, Max, Ultra, Team, and Enterprise plans, with nothing separate to buy. Team and Enterprise Owners control whether Claude Science is available to their members through [an admin setting](https://claude.com/docs/claude-science/enable-claude-science.md). Claude Science isn't available on the Free plan. Scientists at academic and nonprofit research institutions can also get it through the discounted [Claude Team plan for scientists](https://claude.com/programs/team-plan-for-scientists).
from line 42
4042 
4143You pay more than your plan's price only in these cases:
4244 
43* **Usage credits and extra usage.** On Pro, Max, and Ultra plans, you can turn on usage credits in your claude.ai settings to keep working past your limits. You can then turn off usage credits or change your monthly spend limit under **Settings > Usage** in Claude Science. Team plans call the same option extra usage, and your admin turns it on. In Claude Science it appears as **Usage credits**, but only Pro, Max, and Ultra plans can change it there. On Team and Enterprise plans, your admin sets spend limits. Some models need usage credits on some plans, and [Claude pricing](https://claude.com/pricing) lists which models each plan includes.
45* **Usage credits and extra usage.** On Pro, Max, and Ultra plans, you can turn on usage credits in your claude.ai settings to keep working past your limits. You can then turn off usage credits or change your monthly spend limit under **Settings > Usage** in Claude Science. Team plans call the same option extra usage, and your admin turns it on. In Claude Science it appears as **Usage credits**, but only Pro, Max, and Ultra plans can change it there. On Team and Enterprise plans, your admin sets spend limits. Some models [need usage credits on some plans](#models-that-run-on-usage-credits), and [Claude pricing](https://claude.com/pricing) lists which models each plan includes.
4446* **Usage-based Enterprise plans.** Instead of fixed usage limits, your organization pays for usage on top of the seat price, within the spend limits your admin sets.
4547* **Services you connect with your own account.** Services such as [Modal](https://claude.com/docs/claude-science/compute-providers.md) bill you directly. Anthropic doesn't bill for them.
4648 
49### Models that run on usage credits
50 
51On some plans, such as Pro and standard Team seats, some models run only on usage credits, from the first message, even before you reach a usage limit. See [Claude Fable models on your plan](https://support.claude.com/en/articles/15424964-claude-fable-models-on-your-plan).
52 
53From version 0.1.73, on Pro plans with usage credits turned on, Claude Science asks before sending a session's first message to such a model:
54 
55* **Continue with usage credits** sends the message. Your answer lasts five hours in that session, or until Claude Science restarts. Then Claude Science asks again, and the session waits. If nobody answers within about six hours, the run and its kernel end. While the session stays on such a model, a review or subagent on another model still counts toward your usage limits. If you reach a limit after continuing, Claude Science asks whether to keep going on usage credits, but can be 15 minutes late, or later while a review or subagent runs.
56* **Switch models** sends that model nothing. Choose another, then select **Resume**.
57 
58Claude Science asks about such a model only before the session's own messages. Other work on such a model uses credits without asking, for example a review or subagent you've set to it in Settings, or an edit or answer you request on selected document text if such a model is your default.
59 
60A side chat can't ask. On Pro plans, it sends nothing on such a model unless you chose **Continue with usage credits** in the session it came from and that answer still holds. Message that model there first, or start the side chat on another model.
61 
4762### When you reach a usage limit
4863 
49On plans with usage limits, there's a limit that resets every 5 hours and a weekly limit. As you approach one, Claude Science asks whether the session should continue. For the 5-hour limit, you can choose **Keep going** or hold the session until the limit resets. For the weekly limit, the warning offers only **Keep going**.
64On plans with usage limits, there's a limit that resets every 5 hours and a weekly limit. As you approach one, Claude Science asks whether the session should continue. For the 5-hour limit, you can choose **Keep going** or hold the session until the limit resets. For the weekly limit, the warning offers only **Keep going**. In a session continued on [a model that runs on usage credits](#models-that-run-on-usage-credits), Claude Science doesn't ask as you near a limit, only once you reach one.
5065 
5166* **Without usage credits or extra usage, when the reset is less than 8 hours away.** The session pauses, and the composer shows when it will resume. As long as Claude Science stays open, the session picks up where it left off when the limit resets.
5267* **Without usage credits or extra usage, when the reset is more than 8 hours away.** The session pauses for up to 8 hours, then stops and shows when the limit resets. This can happen at a weekly limit. To continue after the reset, select **Resume** or send a message.

claude-science/tools-and-environments Changed · +10 / -7 lines

from line 33
3333 
3434### Python package sources for starter and task environments
3535 
36When Claude uses pip to install a Python package into a [starter](#starter-environments) or [task environment](#task-environments), it installs only prebuilt packages (wheels) from PyPI or, if one is set up, your [internal mirror](https://claude.com/docs/claude-science/corporate-networks.md#point-package-installs-at-an-internal-mirror). It doesn't install a package from a git repository, a web address, a local folder, or a local file. If the package, or a package it depends on, has no wheel for your computer and Python version, the install fails. That includes a package published only as source code.
36When Claude uses pip to install a Python package into a [starter](#starter-environments) or [task environment](#task-environments), it installs only prebuilt packages (wheels) from PyPI or, if one is set up, your [internal mirror](https://claude.com/docs/claude-science/corporate-networks.md#point-package-installs-at-an-internal-mirror). It doesn't install a package from a git repository, a web address, a local folder, or a local file. If the package, or a package it depends on, has no wheel for your computer and Python version, the install fails. That includes a package published only as source code. In a Windows starter environment, if only a dependency has no wheel, the package installs without any of its dependencies. Ask Claude to install the others by name.
3737 
3838When the newest version of a package has no wheel for your computer and Python version but an older version does, pip installs the older version. To find out which version you have, ask Claude. If you need the newest version, use one of the ways below.
3939 
40To use a package Claude can't install this way, ask Claude to install it into the environment with conda if conda-forge has it. Otherwise, ask Claude to install it with pip in a code cell, where it lasts only until the kernel restarts.
40To use a package Claude can't install this way, ask Claude to install it into the environment with conda if conda-forge has it. On macOS and Linux, [starter environments](#starter-environments) refuse some conda packages, such as sphinx and some tensorflow builds, so have Claude install those into a [task environment](#task-environments). If conda-forge doesn't have the package, ask Claude to install it with pip in a code cell, where it lasts only until the kernel restarts.
4141 
4242### Environments in granted folders
4343 
44On Linux, a uv, conda, mamba, or pixi environment in a folder you've granted **Read & write** can still be read-only to Claude. This happens when the environment's package files are hard links shared with the tool's package cache, the folder where the tool keeps the packages it has downloaded. A change to those files could also change the cache and other environments that share them.
44Code Claude runs can read granted folders but can't change anything in them, including Python and conda environments from any tool (see [Sandbox](https://claude.com/docs/claude-science/core-concepts.md#sandbox)).
4545 
46Claude can still run code from the environment but can't add, update, or remove packages in it. The failure shows as `Read-only file system` from pip, uv, and pixi, and as `EnvironmentNotWritableError` from conda. In a uv project, `uv run` and `uv sync` fail the same way whenever they have to update the environment, for example after `pyproject.toml` changes.
46Claude can run code from an environment there unless its Python is somewhere the sandbox can't read, such as `~/.local/share/uv`. Claude can't create environments there or change their packages.
4747 
48On Linux, pip, uv, and pixi fail with `Read-only file system`, and conda with `EnvironmentNotWritableError`. In a uv project, `uv run` and `uv sync` fail the same way whenever they have to update the environment, for example after `pyproject.toml` changes. To skip that update, ask Claude to use `uv run --no-sync`.
49 
4850To add packages, choose one of these:
4951 
50* **In a uv project, ask Claude to use a separate environment.** Have Claude set `UV_PROJECT_ENVIRONMENT` to the full path of a folder in the session's [workspace folder](https://claude.com/docs/claude-science/core-concepts.md#projects-and-sessions) and run uv as usual. The variable has to stay set for later uv commands, including `uv run` and `uv sync`. The separate environment belongs to that session, so another session starts without it. For a change every session keeps, change the environment yourself in a terminal outside Claude Science.
51* **With any of these tools, change the environment yourself.** In a terminal outside Claude Science, use the tool's own commands to add, update, or remove packages.
52* **Ask Claude to use a [task environment](#task-environments) instead.** Packages installed there stay available in every session and project that uses it.
53* **In a uv project, ask Claude to use a separate environment.** Have Claude set `UV_PROJECT_ENVIRONMENT` to the full path of a folder in the session's [workspace folder](https://claude.com/docs/claude-science/core-concepts.md#projects-and-sessions) and install packages there with `uv pip install --python`. The variable must stay set for later uv commands, including `uv run`. `uv add` and `uv remove` still fail because they change project files, and `uv run` can fail in projects that build with setuptools. The separate environment belongs to that session, so another session starts without it. It's cleared with the workspace folder (see [A file that Claude made is gone](https://claude.com/docs/claude-science/troubleshooting.md#a-file-that-claude-made-is-gone)). For a change every session keeps, change the environment yourself in a terminal outside Claude Science.
54* **Change the environment yourself.** In a terminal outside Claude Science, use the tool's own commands to add, update, or remove packages.
5255 
5356## GPUs
5457 
from line 59
5659 
5760> [!NOTE]
5861>
59> Turning on the **Host GPU** switch reduces the default sandboxing configuration applied by Claude Science.
62> Turning on the **Host GPU** switch reduces the default sandboxing configuration applied by Claude Science. Code in GPU sessions uses your graphics driver directly.
6063 
6164If Claude Science finds no GPU, Claude notes this when a task needs one and can run the work on the remote compute you've connected. See [Remote compute clusters](https://claude.com/docs/claude-science/remote-compute-clusters.md) and [Compute providers](https://claude.com/docs/claude-science/compute-providers.md). If your machine has an NVIDIA GPU but the **Host GPU** switch isn't in **Settings > Compute**, or Claude says there's no GPU in a session started with the switch on, see [How Claude Science detects a GPU](#how-claude-science-detects-a-gpu).
6265 

claude-science/troubleshooting Changed · +79 / -2 lines

## Files in granted folders ### Claude's code can't write in a granted folder ### A file with `.kept-` in its name ### Nothing saves into granted folders ### A file that Claude made is gone ## Git in granted folders ### Git can't write here: .git is read-only in the sandbox ### transport 'file' not allowed

from line 48
4848A notice such as "2 environments failed" means Claude Science couldn't set up one or more of the environments Claude uses to run code, and it names them. Select **Details** to see each environment's status and, for any that failed, the error.
4949 
5050* If setup failed because of your organization's network, the dialog that **Details** opens links to settings for a package mirror, a CA bundle, or mirror credentials. When you save any of these settings, Claude Science retries the failed setups automatically. See also [Troubleshooting corporate network errors](https://claude.com/docs/claude-science/corporate-networks.md#troubleshooting-corporate-network-errors).
51* To retry the environments that failed, select **Retry builds**.
51* To retry the environments that failed, select **Retry builds**. For the one ending in `-mcp`, which runs the connectors on your computer, restart Claude Science instead.
52* If an environment is marked "Blocked until rebuilt" and the details say package files changed, you can keep its packages: undo the change, if you made one, and restart Claude Science. If it's still blocked a few minutes later, close the sessions that use it and select **Retry builds**. It's rebuilt with only its default packages, so install any others again. Claude Science first tries to save the environment's package list in `~/.claude-science/rebuilt-environments` (`%USERPROFILE%\.claude-science\rebuilt-environments` on Windows). Install only packages you know, because code that ran in the environment can add names to the list.
5253 
5354If the notice reads "Analysis is unavailable" instead, no Python or R code can run until Claude Science restarts. Fix the cause the notice names, then quit and reopen Claude Science. Closing the window or browser tab leaves Claude Science running, so quit it this way:
5455 
from line 61
6061 
6162This message appears in **Settings > Connectors** on a Featured connector marked **Failed** (hold the pointer over **Failed**) and on the connector's own page. The connector runs on your computer and failed to start five times in a row, so Claude Science stopped trying. Turn the connector off and on again in **Settings > Connectors**, or restart Claude Science.
6263 
64## Files in granted folders
65 
66Code that Claude runs can read but not change granted folders, even with **Read & write**. On Windows, it can write in folders whose own permissions let all sandboxed apps write (see [Sandbox](https://claude.com/docs/claude-science/core-concepts.md#sandbox)). Before version 0.1.73, it could write in **Read & write** folders.
67 
68### Claude's code can't write in a granted folder
69 
70The error can include `Read-only file system` on Linux, `Operation not permitted` on a Mac, or `Access is denied`, `Access to the path`, or `Permission denied` on Windows. Asking for access again doesn't change it. Your local-command connectors can't write there either, with one Windows exception (see [Custom connectors](https://claude.com/docs/claude-science/custom-connectors.md)).
71 
72* **To get a result into the folder**: ask Claude to save it there. It saves finished files such as CSVs, PNGs, SVGs, PDFs, and notebooks by itself. In a **Read-only** folder, a card first asks you to choose **Read & write**. Claude makes the file in the session's workspace folder, inside the folder **Settings > Storage > Data location** shows, then copies it to your folder, so a large result needs free space in both. Before a large run, check **Available on disk** in **Settings > Storage > Disk usage**.
73* **To get source code into the folder**, such as a `.py` or `.R` file: ask Claude to save it there. In [auto mode](https://claude.com/docs/claude-science/auto-mode.md), it saves most source code without asking. Otherwise, a card asks first, and nothing is saved if nobody answers within 10 minutes. **Allow in this repo** or **Allow in this folder** lets Claude save most source code there without asking until the session ends or Claude Science restarts.
74* **For a file Claude doesn't save by itself**, such as a shell script or a JSON, `.zip`, or `.rds` file: tell Claude in a message to put it in the folder. If Claude keeps it as an artifact instead, tell it again. A card asks first and shows the file's text, except for an archive, a saved object, or a JSON file over about 65,000 characters. After three such cards, or one you decline or don't answer, Claude can't show another until your next message.
75* **If such a file is too large for a card**: ask Claude to keep it as a downloadable artifact. The limits are about 65,000 characters of text, and 2 GiB for archives, saved objects, and most JSON files. Claude can save a refused long JSON file as CSV or `.jsonl` instead.
76* **Other binary files Claude doesn't save by itself, such as `.xls`, `.psd`, or `.whl`**: ask Claude to keep them as downloadable [artifacts](https://claude.com/docs/claude-science/artifacts.md), which aren't cleared when the session ends.
77* **To get a many-file result into the folder**, such as a Zarr store or genome index: tell Claude in a message to put it there as one archive, such as a `.tar` file. If Claude keeps it as an artifact instead, tell it again. A card asks first. The card can't show what's inside, and Claude can't unpack the archive there, so do that yourself in a terminal outside Claude Science. List it with `tar -tvf`, move it to a new, empty folder, and run `tar -xf` there, because unpacking replaces files with the same names. Saved file by file, the result can be incomplete, because Claude doesn't save some kinds of file.
78* **On a Mac or Linux, Claude can't change some files**, such as executable or read-only ones, or another user's. Ask it to save under another name.
79* **If a save is refused because the file is open in another program**: close it there, such as in LibreOffice, Excel, or Word, and ask again. If it isn't open anywhere, delete the hidden lock file beside it, whose name starts with `.~lock.` or `~$`, or have Claude save under another name. For a database with a `-wal`, `.wal`, `-shm`, or `-journal` file beside it, have Claude use another name.
80* **On Windows, some saves are refused**: for example, over a file with its own permissions or one open in another program. Claude can't change a read-only file either. Download Claude's version from the session, or ask it to save under another name.
81* **To build, or to run a tool that writes beside its input**: ask Claude to copy the needed files to the session's [temporary](#a-file-that-claude-made-is-gone) workspace folder and work there. Do this before a long script run that writes into your granted folder, because the script fails at its first write there and can lose in-memory results.
82* **To commit changes**: see [Git in granted folders](#git-in-granted-folders).
83* **To add packages to an environment there**: see [Environments in granted folders](https://claude.com/docs/claude-science/tools-and-environments.md#environments-in-granted-folders).
84* **To open a SQLite database that won't open there**: ask Claude to copy it and its `-wal` file to the workspace folder. Claude can't replace one in your folder, so have it save changed `.sqlite` or `.duckdb` files under new names.
85 
86### A file with `.kept-` in its name
87 
88If the chat says a file was replaced and its old version kept, or you find a file such as `data.csv.kept-1a2b3c4d`, the new version has your file's name, and the old one is beside it, with `.kept-` in its name.
89 
90Claude Science keeps the old version when another program may be writing your file, when the disk with Claude Science's data folder has less than about 1 GB free and the old version takes up little of the room left on your file's disk, or in a few other cases. With so little room on that folder's disk, check that the new version is complete before removing the old one. On most network drives and Windows drives in WSL, it does this whenever Claude saves over your version, because it can't tell whether another program is writing.
91 
92A program that was writing goes on writing to the old version, so close that program before combining the two. Remove old versions yourself when you no longer need them. Until you do, a program that reads every file in your folder, such as a Parquet dataset reader, can take an old version for data without an error. A `.gitignore` line such as `*.csv` doesn't cover them, so add the line `*.kept-*` to keep `git add .` from adding them.
93 
94### Nothing saves into granted folders
95 
96On a Mac, the notice "Claude can't save files into folders you share with it, and some of its tools won't run, until Apple's Command Line Tools are installed" appears when the tools are missing or broken. Until they work, Claude can't save or change anything in granted folders. You or an administrator can install them in Terminal:
97 
98```bash theme={null}
99xcode-select --install
100```
101 
102Claude Science needs no restart. Until the tools are installed, ask Claude to keep a result as an [artifact](https://claude.com/docs/claude-science/artifacts.md), and download it. If a message mentions the Xcode license instead, see [Troubleshooting first launch](https://claude.com/docs/claude-science/get-started.md#troubleshooting-first-launch).
103 
104On Linux, the same happens without the notice if `/usr/bin/python3` is missing or older than Python 3.8. Install a newer Python 3 with your distribution's package manager, and check `/usr/bin/python3 --version` in a terminal.
105 
106### A file that Claude made is gone
107 
108Claude Science clears files Claude didn't save into your folder or as an [artifact](https://claude.com/docs/claude-science/artifacts.md). They're in a workspace folder: the session's, cleared about 12 hours after Claude's last reply, even if the session is still open, or a [delegated track](https://claude.com/docs/claude-science/core-concepts.md#delegation)'s own, cleared about 6 hours after the track ends.
109 
110From version 0.1.73, a workspace folder is kept up to 7 days after that reply or the track's end if a program is still writing a file in it. At most 50 folders are kept that long too if Claude saved or tried to save into your folders, ran code naming a **Read & write** folder, or asked for **Read & write** access, even if you declined. On a nearly full disk, that can be fewer, or none. If Claude Science's data folder is on a network drive, as on many clusters, only a program still writing from the same computer counts.
111 
112If Claude Science isn't running when the time is up, it clears the folder at its next start. To keep a file, have Claude save it as an artifact.
113 
114## Git in granted folders
115 
116The messages in this section appear when Claude runs git in the sandbox on a Mac or Linux. On Windows, git commands that write in a granted folder fail too, without these messages.
117 
118### Git can't write here: .git is read-only in the sandbox
119 
120Code that Claude runs can't change git repositories in granted folders (see [Files in granted folders](#files-in-granted-folders)). Write commands such as `git add`, `git commit`, `git checkout`, `git fetch`, `git pull`, `git config`, `git init`, and `git clone` fail.
121 
122`git log` still runs. `git status` and `git diff` do too, but some things can stop them or make them list changes nobody made, such as Git LFS files ("clean filter 'lfs' failed") and, on Linux, a checked-out submodule in a **Read & write** folder ("not a git repository") or a credential file git tracks, such as `.env` or `.npmrc` ("unsupported file type" from `git diff`).
123 
124None of this changes your files.
125 
126Don't run git yourself in a repository Claude made, because git outside the sandbox would run its hooks and settings. Check any `git config` command from Claude first, because a setting such as `core.hooksPath` points your git at programs that run outside the sandbox.
127 
128* **To commit changes**: run git yourself in a terminal outside Claude Science. In a **Read-only** folder, ask Claude for a diff, read it all, then `git apply` it at the repository's top. Look closely at scripts, build files, git hooks, and CI settings, which later run outside the sandbox.
129* **To get Git LFS contents**: run `git lfs checkout` or `git lfs pull` yourself in a terminal outside Claude Science. When Claude runs them in a granted folder, they don't bring in the real contents.
130* **To have Claude commit**: have it make a repository in the session's [workspace folder](https://claude.com/docs/claude-science/core-concepts.md#projects-and-sessions) or clone one there from its `https://` address. That folder is [temporary](#a-file-that-claude-made-is-gone), so before it's cleared, have Claude [push to GitHub](#git-and-github) or save the files you want.
131* **After a `git push` from a granted folder**: check the server before pushing again. See [Git and GitHub](#git-and-github).
132 
133### transport 'file' not allowed
134 
135Git run by Claude can't clone, fetch, pull, or push between local folders. Have Claude use the repository's `https://` address or copy only the files it needs.
136 
137`uv` stops with "transport 'file' not allowed" when installing from a git address, even `https://`, because it clones from its cache. Have Claude clone the repository into the session's [workspace folder](https://claude.com/docs/claude-science/core-concepts.md#projects-and-sessions) and install from there.
138 
63139## Git and GitHub
64140 
65141The messages in this section appear when Claude runs git in the sandbox on a Mac or Linux.
from line 148
72148 
73149* **A host other than `github.com`**: Claude Science has no built-in sign-in for it
74150* **A Git LFS repository**: Claude's commits can store LFS files as ordinary files, and a push from the sandbox may not upload them
151* **A granted folder**: Claude can push existing commits but can't make new ones. See [Git in granted folders](#git-in-granted-folders).
75152* **On Linux**: folders such as `.devcontainer` look empty in the sandbox, so git shows their files as deleted. Don't commit those deletions.
76153 
77154For a `github.com` repository that doesn't use Git LFS, follow these steps:
from line 163
86163 
871643. Select **Allow for this conversation** on the **Run a shell command?** [permission card](https://claude.com/docs/claude-science/core-concepts.md#permission-cards) if it appears, then on the **Credentials** card.
88165 
89 By default, the approval lasts for the conversation, and commands Claude runs there can use the token without asking again. To revoke the approval, go to **Settings > Permissions**, hold the pointer over each **GitHub** row under **Credentials**, and select **Revoke** (the ×).
166 By default, the approval lasts for the conversation, and Claude's commands there can use the token without another **Credentials** card. With auto mode on or off, a **Run a shell command?** card can still appear if [Claude Science's check](https://claude.com/docs/claude-science/auto-mode.md#what-auto-mode-checks) is unsure about a command that can use the token. Allowing it runs that one command, and the check still reviews the next such command, even after **Allow for this conversation**. To revoke the approval, go to **Settings > Permissions**, hold the pointer over each **GitHub** row under **Credentials**, and select **Revoke** (the ×).
90167 
91168Check GitHub for your commits, because git can print an error even when the push worked.
92169 

claude-science/cloud-storage Changed · +1 / -1 lines

from line 16
1616 
1717> [!WARNING]
1818>
19> Code that Claude writes can use a credential you add here only after you approve a **Credentials** card that names it. By default the approval lasts for the conversation. If a bucket should never be reachable from an analysis session, don't add its credential.
19> Code that Claude writes can use a credential you add here only after you approve a **Credentials** card that names it. By default, approval lasts for the conversation, but Claude Science can still ask about code that uses the credential. See [What auto mode checks](https://claude.com/docs/claude-science/auto-mode.md#what-auto-mode-checks). If a bucket should never be reachable from an analysis session, don't add its credential.
2020 

claude-science/compute-providers Changed · +1 / -1 lines

from line 24
2424 
2525> [!NOTE]
2626>
27> Closing the app doesn't cancel a running Modal job; it continues billing until it finishes or times out.
27> Closing the app doesn't cancel a running Modal job; it continues billing until it finishes or times out. Let running Modal jobs finish before you update. The first start after an update can rebuild the environment Claude Science uses for Modal, and a job ending meanwhile can lose its results if you close the app then or the rebuild exceeds about 10 minutes. Keep the app open until "Setting up environments…" disappears.
2828 
2929Cost controls: there's no spend ceiling. With **Once**, a card asks about each job Claude proposes. After you approve a job with a wider scope, later Modal jobs in that scope can start without a card, on any machine and with any time limit. **Concurrent jobs** (default 10, set on the Modal page under Settings > Compute) caps simultaneous containers that Claude Science on this machine can run. **Default container timeout** is 12 hours (maximum 23), enforced by Modal. Track spend on Modal's dashboard.
3030 

claude-science/run-on-remote-linux-server Changed · +2 / -0 lines

from line 24
2424>
2525> The sandbox requires bubblewrap 0.8.0 or later; check with `/usr/bin/bwrap --version`. Ubuntu 24.04 ships a new enough version, and Ubuntu 22.04 doesn't. If Claude Science can't set up the sandbox, it refuses to start rather than run code unsandboxed.
2626 
27For Claude to save to granted folders, the server also needs Python 3.8 or later at `/usr/bin/python3`. Check with `/usr/bin/python3 --version`.
28 
2729## Run Claude Science without administrator access
2830 
2931If you don't have administrator (root or `sudo`) access to a shared server or cluster, choose one of these:
Feedback