chore(local): 提示词只指路,不教模型怎么装包

env-local 关于 Python 缺包那段从 7 行压到 3 行:只说「缺模块就装进
$AGENT_SKILLS_DEPS 再重试」,不提 pip/--target,也不提镜像源。
具体怎么装、走不走镜像,让模型自己判断;我们只负责给出那个
已经在 PYTHONPATH 上的路径,避免它装到别处或去动系统 Python。

docs/local-mode 4.13 与 local/README 同步措辞。
This commit is contained in:
2026-11-11 17:01:20 +08:00
parent 8764fedabc
commit c7394dc45f
3 changed files with 12 additions and 16 deletions
+2 -6
View File
@@ -3,9 +3,5 @@
and `/tmp` is the system temp directory (shared, never cleaned for you). Work
inside the working directory; treat everything outside it as the user's.
- `python3` may be missing; when the skills list below is empty it is not
available. Never install runtimes, system packages, or modify the user's Python
environment. If a skill fails because a Python package is missing
(`ModuleNotFoundError`), install just that package into the shared deps dir and
retry: `python3 -m pip install --target "$AGENT_SKILLS_DEPS" <package>` — that
dir is already on `PYTHONPATH`, and `--target` also works on externally-managed
Pythons (e.g. Homebrew) where a bare `pip install` is refused.
available. Never install runtimes or system packages. If a skill lacks a Python
module, install it into `$AGENT_SKILLS_DEPS` and retry.