Agent Workbench: Presets, Orchestration, and Context Governance

    A local agent that only chats can advise, but delivery quality depends on the execution layer after the model responds. This article explains how a local workbench governs workspace boundaries, reasoning depth, tool permissions, task presets, context compression and retrieval, skills, and subtasks so multi-step work stays auditable and recoverable.

    If a local agent stays inside a chat window, even a strong model can only offer advice. What actually determines delivery quality is the execution layer after the model produces output: whether tools can be called, how context is trimmed, how multi-step work is split, and whether a failed run can be resumed from the session. A common industry approach is to gather these capabilities into one local workbench instead of letting every project assemble its own scripts.

    What the execution layer must solve

    The model generates and reasons. The execution layer constrains that output and turns it into action. When those roles are unclear, small edits get pulled into heavy planning, while complex changes lack retrieval, a plan, and subtasks. Context keeps growing across a long conversation, and permissions are either too broad or interrupt the user too often. The value of a workbench is to turn these differences into switchable, auditable runtime policies rather than temporary prompt agreements.

    A usable execution layer should cover at least five things: the boundary between session and workspace, reasoning depth and tool permissions, capability presets for task types, compression and retrieval for long context, and extensible skills and subtasks. If any of these is missing, teams fall back to pasting the repository into the dialog.

    Workspace, session, and rebuildability

    A workspace should match a real engineering boundary: usually one repository, one service directory, or a related set of documents, not an unbounded local directory. A session is the execution record for a specific goal. Sidebar actions such as creating a session, switching workspaces, and keeping multiple sessions in the same workspace separate exploration from delivery. Experimental questions do not contaminate a formal change, and a formal change can still be reviewed for its plan, tool calls, and conclusions.

    Being able to rebuild a session matters more than merely keeping the chat history. A rebuildable session should answer: what the workspace root was, which reasoning level was used, which tools were allowed, which preset was enabled, and whether the key goal and plan were written to disk. Someone else, or the same person the next day, should not have to reconstruct the prompt from memory. In practice, write the goal, the plan, and non-sensitive tool summaries into task notes inside the workspace rather than leaving them only in interface state.

    Permissions should follow the workspace, not a momentary preference. Reading code, editing files, running tests, and accessing the network carry different risks. Default read-only access with explicit authorization to write fits engineering practice better than opening everything and regretting it later. Directories that contain secrets, production configuration, or production data should stay outside the default writable scope.

    Divide capability by presets, not by scenario labels

    Many tools split the interface into labels such as “everyday,” “office,” or “coding.” Those labels describe a person’s role, not the set of capabilities a task needs. Agent presets are more reliable: each preset explicitly turns compression, retrieval, skills, planning, subtasks, and plugin development on or off. Clear capability boundaries reduce both cost and mistakes.

    Task weight can be abstracted into four general presets. The names do not have to be fixed; the boundaries do.

    A minimal preset is for single-point edits, minimal verification, and teaching demos. It usually keeps only goal-style instructions and turns off compression, broad retrieval, a skill marketplace, automatic planning, and sub-agents. The path is short and the behavior is predictable, which suits changing one function, adding one test, or checking whether the toolchain works. Using it for a cross-module refactor will fail repeatedly because planning and retrieval are absent.

    A standard preset is for everyday development: reading a project, fixing defects, and doing local analysis. It enables conversation compression, goals, plans, and moderate retrieval, but it does not scan large numbers of files in parallel by default and does not encourage unbounded subtasks. Most daily work should stay at this level.

    A code-intensive preset is for large-scale retrieval, parallel reads, and multi-step automated handling, such as tracing a call chain, migrating interfaces in bulk, or fixing similar issues from a checklist. The risk is more tool calls and a wider surface for incorrect edits, so it must be paired with a stricter write scope and staged acceptance checks.

    A creation preset is for building new presets or plugins, not for editing business code directly. It may inspect extension points, write skill descriptions, and define commands, but its write permission should be isolated from the business repository so experimental automation is not applied directly to production code.

    Presets differ in their command surface, not in appearance. Standard, intensive, and creation modes can share commands such as compression, goal, and plan. Minimal mode keeps only the goal so light tasks are not slowed by a heavy process and so newcomers do not enable overly strong automation before they understand the boundary. A unified prefix in the input box for quickly selecting an instruction or skill makes capabilities visible and discoverable instead of hiding every switch inside a long prompt.

    An execution can be described as a policy rather than free text:

    1. workspace: service-billing
    2. preset: standard
    3. reasoning: high
    4. tools: read, test
    5. goal: locate the tax-calculation error at boundary amounts and add a regression test
    6. plan: retrieve the call chain first, make the smallest change, then run only the related tests

    This example is not tied to any product interface. It only shows the fields that should be declared explicitly before execution. Reasoning depth usually needs only a few levels, such as off, high, and highest. Off suits deterministic edits and formatting. High suits routine defect analysis. Highest suits cross-module reasoning. Higher levels generally increase latency and cost, so they should not be the default.

    Goals, plans, skills, and subtasks

    A goal command answers what “done” means. A plan command answers the order of work and how each step is accepted. An agent without a goal gets lost in retrieval. A long task without a plan tends to rewrite the requirements halfway through. Plans should be short, and each step should produce something that can be checked: a call relationship, a patch, or a set of failing tests that now pass.

    Skills are reusable process assets, such as “review the diff against team conventions,” “generate a migration checklist,” or “run tests only in a specified directory.” A skill should state its inputs, prohibitions, and completion criteria so it does not become another vague prompt. Subtasks or sub-agents fit parallel reads and analysis whose context does not depend on one another. Steps that share writable files should remain serial; otherwise conflicts and overwrites are hard to trace.

    Orchestration can follow one simple rule: do not open a new subtask when a command inside the preset can do the work; do not grant write access when a read-only retrieval is enough; and do not accept “it looks fixed” when acceptance can be measured. Bulk work should first produce a checklist and get a human confirmation of scope before automatic edits begin.

    Context governance

    Long tasks often fail not because the model cannot do the work, but because context is filled with unrelated files, repeated tool output, and outdated plans. Compression is not deleting memory. It promotes confirmed facts into a short summary: the current goal, verified conclusions, open questions, key file paths, and attempts that failed. The next turn should be able to cite that summary. Long original output can be reviewed when needed, but it does not have to be carried in full on every turn.

    Retrieval needs a budget. Parallel reads fit the code-intensive preset, but directory depth, file types, and the length returned in one call still need limits. Logs, dependency directories, and generated artifacts should be excluded by default. Conversation compression, restating the goal, and revising the plan should follow the same rhythm: compress after each plan step instead of waiting until the window is nearly full.

    Rebuildable sessions also mean repeatable context policy. The same preset should use the same exclusion rules and compression timing across projects. If the agent “gets worse in another repository,” the cause is often context-policy drift, not a change in model ability.

    Plugins and custom presets

    When built-in presets cannot express a team workflow, move to a creation-style preset instead of adding more verbal rules inside a business conversation. A custom preset should at least declare the tasks it applies to, the tasks it forbids, the available commands, the default tool permissions, whether subtasks are allowed, the compression policy, and the skill list. Writing, code review, and release checks can each be a preset, but each preset should solve one class of work. Avoid a “do-everything agent.”

    Plugins are suited to stable actions: calling an internal check script, emitting a review comment in a fixed format, or running a read-only query against logs and tickets. A plugin must declare its permissions. Network access and file writes must not be granted implicitly. On failure, a plugin should return diagnostic information rather than silently falling back to free-form model behavior. Extension points themselves should be versioned so old skills do not drift after a preset upgrade.

    How usage habits change

    Once the execution layer is mature, the habit shifts from “ask for an answer” to “ask for a controlled delivery path.” Simple edits use the minimal preset and refuse excess automation. Everyday defects use the standard preset, with emphasis on plans and tests. Broad investigation is the point at which to move up to the intensive preset. When the process itself is unstable, use the creation preset to turn that process into a product, then return to the business repository to execute it.

    A team can adopt this in four steps without enabling every capability at once. First, standardize workspace roots and ignore rules. Second, define how presets map to permissions, and do not temporarily enable every tool inside the minimal preset. Third, keep goals and plans in version-controlled notes. Fourth, use a real defect review to check whether compression preserved the key facts and whether a skill exceeded its authority. Object storage can archive session summaries, a container platform can reproduce a read-only check environment, and logs and monitoring can show tool-call volume and failure rates. These are general capabilities and do not have to be tied to one interface.

    Whether a workbench is effective is not measured by how many features it lists. It is measured by three things: whether light tasks stay light, whether heavy tasks have a plan and acceptance checks, and whether anyone can rebuild the execution policy from the record. The model thinks, presets set boundaries, sessions hold memory, and permissions act as the brake. When those four are aligned, an agent moves from a demo into everyday engineering.