Remove the model-facing working_directory tool and the cwd parameter of the
subagent tools, so only Host operations move a Session's directory. Every
change the service records carries `workspace: true`, and the workspace root
is the directory of the last marked change, or the original project. The
anchor field, the anchor list, relocate, inherit, and anchorsOf are gone;
get, ensure, set, and rootOf remain.
A change without the marker, recorded while the model could move the
directory, moves only the current directory, so stored Sessions keep the
root they had.
- worktree: create enters the checkout through set; exit returns the Session
to the source checkout of the recorded worktree that contains its directory,
and exit_worktree exposes it to the model.
- subagent: a child starts in the parent's workspace root or a Host-chosen
directory through set.
- SDK: the working-directory methods return { cwd } again and
getWorkspaceRoot / get_workspace_root are removed.
- Recorded sessions: the worktree scenario leaves through exit_worktree and
covers recovery from a removed worktree; the two scenarios that only drove
the removed tool are deleted; three compaction scenarios lower their tuned
context window by the removed tool-schema tokens.
29 lines
1021 B
YAML
29 lines
1021 B
YAML
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
# After editing either side, bring the other along and re-record with:
|
|
# pnpm run verify-translation-pairing --write python/sdk/examples/README.md
|
|
/python-sdk-example:
|
|
en: c97ffc5ce0f7db05
|
|
zh: bdd91202075498a3
|
|
/python-sdk-example/run-the-minimal-agent:
|
|
en: 9807fc909be30878
|
|
zh: 9cef470f85212250
|
|
/python-sdk-example/compact-a-full-sdk-session:
|
|
en: 6325ac9aaf9b9b67
|
|
zh: 004a0ba5c2ff341b
|
|
/python-sdk-example/change-session-permissions:
|
|
en: 1fe5e06c6842a53b
|
|
zh: ff0836d8cffaeef7
|
|
/python-sdk-example/review-a-plan:
|
|
en: 7a6d2d7929724240
|
|
zh: 8a938c71a827f09b
|
|
/python-sdk-example/run-a-goal:
|
|
en: 59f62e70dc508bd6
|
|
zh: bb10e2db241a2e92
|
|
/python-sdk-example/manage-full-profile-plugins-with-approvals:
|
|
en: 654011a3ca04a691
|
|
zh: c33714237e9d5c64
|
|
/python-sdk-example/add-plugins:
|
|
en: 5e1e30dac13f6c9e
|
|
zh: 0af98ebb75c88f43
|