进阶 zcode.z.ai 2026-11-25 14:51:22 · 0 阅读

第58章 ADE Tools

IntegrationADE Tools ZCode is not only an Agent prompt box. It is a full Agent Development Environment for real development work. You can manage tasks, organize conversations by workspace, enter remote development environments, preview pages, select browser elements as context, and review Agent-generated changes in one window. Here is a typical working session: ZCode Agent has just edited a page, the terminal runs a local preview, and the built-in browser on the right shows the result live. Click a number to jump to its section. 1234561Chat and changesReplies, file cards, and a change summary you can undo2ComposerProject, permission mode, model, and reasoning effort3TerminalRun commands and servers in the project folder4Built-in browserPreview local and live pages at any device size5Select elementPick a page element and send it as context6New tabOpen Files, Terminal, Review, Sites, and more Side Pane and New Tab Click the side pane button at the top right of the window to expand the right pane, then click + in the tab bar to open a New tab. It gathers ZCode's development tools: Files: pick a file from the navigation to preview it. Browser: browse websites and preview apps; see Built-in browser. Terminal: run commands and view output; see Terminal and Debugging. Review: review code changes and diffs from the task. Sites: view ZCode Sites sites, deployments, and usage; see Deploying a Website. Side conversation: continue a separate conversation in the side pane without interrupting the current task. Enabled app plugins such as PDF, Presentations, Spreadsheets, and Documents are listed below and open in the side pane too. Keep several tabs open and switch between them in the tab bar. Workspace and Task List The left sidebar follows the current workspace and shows your projects and tasks. The top row has New task, Search, Automations, and Plugin Marketplace entries, while the project and task sections organize conversations below. The composer toolbar also exposes project, context, execution mode, model, and thinking-effort controls. Once a task produces changes it shows +/- line counts, so you can quickly see how much the Agent touched in each task. The Filter view button at the top right of the task list switches how tasks are organized: By project, By group, Recently updated, and Unread. In By group view you can click New group and organize related tasks into custom groups — handy for collecting long-running tasks by project, requirement, or topic. Archived Tasks Tasks that are no longer active can be archived and collapsed out of the main list. Archived tasks live in Settings → Archive management (in the Data and statistics group): the list is grouped by project, can be searched, filtered by project, and sorted by Updated time or Created time, and each task offers Unarchive and Permanently delete. Unarchive an old task whenever you need to revisit it, and delete it permanently once you are sure it is no longer needed. The same page has an Auto-archive old sessions switch that archives tasks whose last activity is older than the retention window; pinned and running tasks are never affected. Command Center Press Command + K (or click the search entry in the top bar) to open the Command Center and reach common actions and navigation from one panel. It covers actions, tasks, and files at once: new task, open workspace, search files, settings, previous / next task, find tasks, back / forward, switch theme, MCP servers, personalization, toggle terminal, and more — all runnable without hunting through menus. Remote Development (SSH / WSL / Docker) Remote development is useful when you want ZCode Agent to work inside a server, development machine, or container environment, so the Agent reads files, runs commands, and advances tasks in the real runtime. First add a device with New connection in Settings → Remote devices. The connection types are SSH, WSL, and Docker: SSH is for remote servers or development machines, WSL enters a Linux distribution on Windows (shown only on the Windows desktop app), and Docker enters a running local container. Once the device is connected, click New project next to Projects in the sidebar and choose the Device and Source folders to create a project. Remote DevelopmentRead about SSH, WSL, and Docker connections, the connection log, and the FAQ. Built-in browser ZCode has a built-in browser panel for opening local dev servers or live pages inside the app. It has an address bar plus back, forward, reload, and DevTools buttons, and handles http, https, and file URLs. Below the address bar you can switch to a device size such as Phone and Fit to window to check mobile layouts. Besides browsing it yourself, you can let the Agent drive it. The browser panel is desktop-only. Turn page elements into context Open a Browser tab, enter a URL, then click the element picker button in the toolbar to enter picker mode. Selecting elements requires the built-in Design plugin, which is off by default; if it is not enabled, a "Design plugin required" prompt appears, and Open plugin page takes you to the plugin page to turn it on. Click a button, card, heading, or any other element on the page. ZCode captures the page title, URL, element text, selector, position, and a safe HTML summary, adds it to the composer as a chip, and outlines the selected element on the page: You can then ask the agent to "make this chip orange" or improve "this button copy" without describing where it sits on the page. In some cases an adjust panel also opens in the browser, showing the element's layout, appearance, and text; it is view-only, so make changes by telling ZCode Agent in the composer. Let the agent drive the browser With built-in browser control enabled, the agent can open URLs, click, fill forms, and verify results, and you can watch it happen in the panel. The switch, Chrome data import, and cleanup all live under Settings → Browser Use — see Browser Automation for the full details. Computer Use: Desktop App Control Beyond pages inside the built-in browser, ZCode also offers Computer Use. Once authorized, the Agent can observe and operate visible desktop applications and windows. This is useful for native desktop workflows outside the browser, such as opening system tools, reading window state, clicking controls, and verifying a cross-application flow. Open Settings → Computer Use to inspect the current status. On macOS, first-use requires Accessibility and Screen Recording permissions. ZCode guides you through authorization with a standalone ZCode Computer Use.app, instead of handing high-privilege access directly to the ordinary renderer process. If permission is missing, finish the onboarding flow before retrying the Agent action. For the full guide to the toggles, permissions, and limitations, see Computer Use. Browser UsePages and elements in ZCode's built-in browserOpen URLs, click, fill forms, read the DOMWatch it live in the side paneVerify pages and front-end flowsComputer UseVisible apps and windows on this computerOperate native apps, read screen stateNeeds Accessibility and Screen RecordingDesktop workflows outside the browserSSH / WSL / DockerA remote host, WSL distribution, or containerRead and write files, run commands and tests thereOnly decides where code and commands runDevelop in the real runtime These are separate paths: opening a remote workspace decides where code and commands run; it does not move local desktop-control capability into an SSH host or container. Computer Use has broader desktop permissions, so enable it only for trusted tasks and applications. When desktop-level interaction is unnecessary, prefer files, the terminal, MCP, or Browser Use. Previewing Files and Content Clicking a file in the file tree opens it in the preview pane on the right, and several common formats beyond code render natively. PDFs open with page navigation, jump-to-page, and zoom — Command / Ctrl + scroll zooms around the pointer. You can select and copy text, but not edit or annotate. HTML files open through the file tree's right-click menu via Open in built-in browser, which renders them in a new browser tab. This menu item appears for local workspaces only, not remote ones. With Open HTML files in the built-in browser on click turned on in Settings → Browser Use, clicking a local .html file in the file tree also opens it straight in the built-in browser. Content inside the conversation has its own viewers: Mermaid diagrams: mermaid code blocks in a reply render as diagrams. Click the expand button in the corner or double-click the diagram to open it full size, with zoom and drag-to-pan; Esc closes it. While a message is still streaming you'll see the source, which switches to the diagram once it finishes. Images: Markdown images open in a preview overlay, and consecutive images group into a gallery you can page through with the arrow buttons or arrow keys. Zoom, pan, and download the current image are all available. Tables: Markdown tables come with a toolbar to copy them as Markdown, download them as CSV, or open a larger preview where the header sticks while you scroll. Wide tables can also expand their scroll area to claim more horizontal space, and collapse back with a second click. Terminal and Debugging Use the terminal button in the upper-right corner or Command + J to open the terminal panel. You can run builds, tests, development servers, and logs inside the same workspace, then continue the conversation with the Agent. The terminal is also available as a tab inside the preview panel, so you can watch a preview and run commands side by side. The built-in browser also includes a DevTools entry for frontend debugging, so preview, DOM inspection, console output, and Agent work stay close together. Running Long Commands in the Background For long-running commands like starting a dev server or running a full test suite, the Agent can push execution to the background: the command keeps running, the current turn doesn't wait for it, and you can keep asking questions or move on to something else, checking the output when you need it. Subagents support background execution too. Enhanced Find and Grep Searching a large repository can be slow, and results vary with whichever versions of find and grep happen to be installed on your machine. ZCode bundles faster replacements and the Agent uses them by default, so searches are quicker and behave the same everywhere. The switch is Settings → Behavior and tools → Enhanced Find and Grep, on by default. Changes apply to new sessions — conversations already open keep their current behavior. On Windows only grep is replaced. Remote workspaces (WSL / SSH / Docker) aren't covered yet. Remote Access ZCode remote access splits into two kinds. Remote development decides which machine runs your code and commands, while Remote Control and Bot Channel are entry points for operating from away — both drive a session that already exists on the desktop. Remote DevelopmentOpen a project on an SSH host, WSL distribution, or Docker container so the Agent runs in the target environment.Remote ControlConnect to the current ZCode workspace from your phone.Bot ChannelOpen a workspace from chat tools through Bot Channel. Next Steps Keyboard ShortcutsLearn the most useful shortcuts for faster navigation.FAQQuick answers to common usage questions.

评论 (0)