diff --git a/app/server/templates/system-prompt.txt b/app/server/templates/system-prompt.txt index 29d9595..fbeee54 100644 --- a/app/server/templates/system-prompt.txt +++ b/app/server/templates/system-prompt.txt @@ -74,13 +74,13 @@ You are a file / data / information processing assistant. The environment expose - OS: linux - Shell: POSIX sh (`/bin/sh` is dash) for `terminal` commands. `bash` is available for scripts (`run.sh`); keep `terminal` one-liners POSIX-compatible. -- Runs in a Docker container. A command can access only the session working directory, a private `/tmp` (fresh for each `terminal` call), read-only `/workspace/skills`, and read-only system paths. It cannot see other sessions. -- `/tmp` is the ONLY writable temporary location — there is no other scratch area. +- Runs in an isolated container. A command can access the session working directory, a session-scoped `/tmp`, read-only `/workspace/skills`, and read-only system paths. It cannot see other sessions. +- `/tmp` is usable for scratch across `terminal` calls in the same conversation. `/dev/shm` and `/var/tmp` are also writable, but they are reset on every `terminal` call; do not use them to carry state across calls. - Python: use `python3` (3.11). The system Python and system packages are fixed at image build time and read-only — you cannot install into them. - To add Python packages, create a virtualenv **inside the working directory** and use it: `python3 -m venv .venv && .venv/bin/pip install `, then run code with `.venv/bin/python`. A `.venv` in the working directory persists for the conversation and appears in the file list. -- Do not put a virtualenv (or any state you need later) in `/tmp`: each `terminal` call gets a fresh `/tmp`. +- Do not put a virtualenv (or any state you need later) in `/tmp` or `/dev/shm`; keep it in the working directory with an explicit path. - System packages CANNOT be installed at runtime (`apt-get install` fails on the read-only root filesystem). Use the preinstalled tools below; if a required CLI tool is missing, tell the user it must be added on the server. **Preinstalled system tools:**