Agent workspace on a workstation
One machine-local folder holds agent-operated utilities and disposable scratch files.
Harness spill (oversized tool output the IDE writes) stays in native paths such as .cursor/projects/<slug>/agent-tools — not in this tree.
- Architecture context
-
Harness-neutral architecture (
$CODE_ROOT/harness.md,$CODE_ROOT/machine.md). - Sibling patterns
-
Bitwarden CLI (agents) (utilities example).
Vocabulary
| Term | Meaning |
|---|---|
Agent workspace |
Root tree on disk for agent utilities + temp (not the code hive, not spill) |
Scratch / temp |
Files the agent authors (redirects, probes, migration plans) under |
Utilities |
Scripts and helpers the agent runs ( |
Spill |
Harness-written overflow files — do not move into the workspace |
Discoverability link |
Short path under home pointing at the canonical workspace root (junction or symlink) |
Layout
AGENT_WORKSPACE_ROOT/ # canonical (see harness)
README.md
utilities/<topic>/ # AGENT_UTILITIES_ROOT
temp/ # AGENT_TEMP_ROOT
README.md
harness-registry.json5 # optional: one spill *root pattern* per harness
scratch/YYYY-MM-DD/
Optional registry file indexes where each harness spills (patterns only — not a per-repo file catalog). Concrete spill paths usually appear in tool output when overflow happens.
Canonical root vs home link
Keep the canonical tree where the OS expects app state; add a link so humans can open ~/AgentWorkspace or %USERPROFILE%\AgentWorkspace without duplicating data.
| OS | Canonical default | Discoverability link |
|---|---|---|
Windows |
|
Directory junction → |
Linux / macOS |
|
Symlink |
Record in $CODE_ROOT/harness.md:
AGENT_WORKSPACE_ROOT = …
AGENT_WORKSPACE_LINK = …
AGENT_TEMP_ROOT = …/temp
AGENT_UTILITIES_ROOT = …/utilities
Copy keys from harness.example.mdunchecked.
Agent behaviors (skills)
| Skill | When |
|---|---|
|
Writing scratch files, |
|
User asks for a machine-global or profile-root agent script — route to |
|
Legacy profile litter, flat |
Portable sources (PR upstream here, not duplicated prose in product repos):
-
general/agent-workspace.mdunchecked -
general/agent-temp.mdunchecked -
general/agent-workspace-migrate.mdunchecked
Inventory and install: Skills catalog · Usage.