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.
59 lines
1.9 KiB
JSON
59 lines
1.9 KiB
JSON
[
|
|
{
|
|
"model": "smoke-model",
|
|
"system": "{{system}}",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "Complete the first isolated Python SDK process turn."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"toolNames": [
|
|
"cordis_inspect_list",
|
|
"cordis_inspect_query",
|
|
"job_kill",
|
|
"job_list",
|
|
"job_output",
|
|
"subagent",
|
|
"workflow"
|
|
]
|
|
},
|
|
{
|
|
"model": "smoke-model",
|
|
"system": "{{system}}",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": [
|
|
{
|
|
"type": "text",
|
|
"text": "Complete the second isolated Python SDK process turn."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"text": "<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n</system-reminder>"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"toolNames": [
|
|
"cordis_inspect_list",
|
|
"cordis_inspect_query",
|
|
"job_kill",
|
|
"job_list",
|
|
"job_output",
|
|
"subagent",
|
|
"workflow"
|
|
]
|
|
}
|
|
]
|