Documentation
¶
Overview ¶
Package sandbox provisions a per-project scratch workspace under ~/.forge/sandbox/<slug> so the built-in agent has somewhere to edit temp files, work through thinking, prototype code and write logs without touching the user's workspace. Layout:
~/.forge/sandbox/<project-slug>/ tmp/ throwaway scratch, pruned by SweepTemp thinking/ scratch notes and working-through problems coding/ temp code experiments logs/ agent-written session logs
Index ¶
Constants ¶
View Source
const ( DirTmp = "tmp" DirThinking = "thinking" DirCoding = "coding" DirLogs = "logs" )
Sub directories created inside every sandbox.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure provisions the sandbox for projectPath (creating all sub dirs) and returns its root. Safe to call repeatedly — every step is idempotent and cheap, so per-turn callers can rely on it.
func Sub ¶
Sub returns the path of one sandbox sub directory for projectPath, provisioning the sandbox first.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.