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

第26章 Task & File Management

Core FeaturesTask & File Management The left sidebar provides the task list. The Files pane to the right of the conversation contains the workspace file tree and file previews. Use By project, By group, Recently updated, or Unread to find tasks, pin and archive tasks to organize the list, and browse workspace files, check Git status, or reference files in chat. The sidebar provides New task, Automations, and Plugin Marketplace above the task list. Search and Filter view appear beside the Task list heading. Choose Filter view → By project / By group / Recently updated / Unread to organize tasks. Pinned tasks appear in the Pinned section in By project and By group views. Task Views Choose a view based on how you organize your tasks: ViewEntry pointOrganizationBy projectFilter view → By projectTasks are listed under their workspaceBy groupFilter view → By groupTasks are listed in custom groups, with ungrouped tasks shown in the same listRecently updatedFilter view → Recently updatedTasks are listed by update time, newest first, grouped under dates such as Today and Yesterday, with their workspace indicatedUnreadFilter view → UnreadOnly tasks with unread messages are listed, newest first, grouped under dates In By project view, the Tasks section contains conversations that are not associated with a project. These tasks also support pinning, grouping, and archiving. See ZCode Agent for creating a conversation without a project. By projectBy groupRecently updated Create and Manage Projects Create a project Click New project (+) next to Projects in the sidebar. In Create project, enter a name, choose the device, and add Source folders.A project can include several folders on the same device. The first folder you add is marked Primary; click Set as primary next to another folder to switch.After you click Create project, confirm that you trust these folders: ZCode can read and edit their files and run commands within your current permission settings. To create a project on a remote device, see Remote Development. Manage projects Open Settings → Project Management to see every project's device, session count, and last activity. You can search by name, folder, or device, and sort by Last active, Name, or Sessions. ZCode marks the following projects as Looks unused and summarizes them at the top of the page. Pinned projects are never marked. MarkWhenFolder missingThe project's primary folder was moved or deletedNo sessionsThe project has no sessions and was created more than 7 days agoIdle N monthsThe last activity was more than 90 days ago Click Review in the summary to switch to Looks unused with those projects selected, then click Remove. Removing a project only takes it out of the sidebar and the project picker. Its sessions stay in Recent and search, and folders on disk are not touched.Projects on this computer can be brought back from Removed projects at the bottom of the page with Restore. A remote project is removed from this computer only; add it again from its device when you need it.When you remove projects on this computer that have sessions, you can also check Also delete their ZCode data to delete their sessions, session files, file checkpoints, and memory. You confirm by typing “delete”, and the data can't be restored. Your folders and app logs are never deleted. Pinning and Archiving Pin: right-click a task and choose Pin task to display it in Pinned at the top of the list. Unpin task returns it to the regular task list. Recently updated: choose Filter view → Recently updated to find tasks by update time, newest first. Archive: right-click a task and choose Archive task to remove it from the active list; stop a running task first. In Settings → Archive management, archived sessions are grouped by project. You can search them, filter by project, and sort by Updated time or Created time. Each session has Unarchive and a permanent-delete button, and the ⋯ menu on a project group offers Unarchive all and Permanently delete all. Auto-archive: enable Auto-archive old sessions in Settings → Archive management. ZCode periodically archives sessions whose last activity is older than the retention window; pinned and running sessions are never affected. Archive retention can be set to 3, 7, 14, or 30 days. Archiving preserves the task record so it can be restored later. Permanent deletion removes records you no longer need and cannot be undone in the app. Before deleting, ZCode checks and lists the scope: what will be deleted (the conversation, its child sessions, input history, and private attachments), what will be kept (for example independent forks, attachments still referenced by other sessions, and published share links), and what cannot be deleted now (for example a task that is still running). Workspace files, Git and worktrees, directory-level memory and checkpoints, exports, backups, and app logs are outside the deletion scope. Task Groups Choose Filter view → By group to organize tasks into your own groups. Create and manage groups Click New group (the # icon) above the list, enter a name, and select a color. Right-click a group header and choose New task in group, Rename, Change color, or Ungroup. Click the group header to collapse or expand its tasks. Groups support seven colors: gray, red, orange, yellow, green, blue, and purple. The color appears on the group icon and the marker beside each task. Ungroup removes only the group; its tasks remain as ungrouped tasks. Group menuChange color Organize tasks Reorder: drag tasks into a group or reorder them within a group. Drag group headers to change the group order. Move tasks: in By group view, right-click a task and select a destination under Move to group, or choose Remove from group. Move to top places the task first in its group. Collapse the list: click a group header to collapse or expand its tasks, or use the button above the list to expand or collapse all groups. Task Actions Right-click a task to access the following actions: ActionPurposeRename taskChange the name displayed in the task list; you can also double-click a task row to rename itMark as unreadMark a task for later reviewOpen in FinderOpen the corresponding location in the system file manager Additional menu actions include Go to config, copying paths and session IDs, View model trajectory, and Report issue. Use the copy actions to retrieve the task location, log path, or session ID when investigating an issue. Task menuMove to group Quick Actions Click Search in the sidebar, or use a default shortcut to open the unified search panel: ⌘K or ⇧⌘P on macOS, and Ctrl+K or Ctrl+Shift+P on Windows / Linux. Enter keywords to search actions, tasks, and files. Select Actions, Tasks, or Files to limit the search, or All to search across categories. The panel provides recent tasks, Suggested actions such as New task, Open workspace, and Settings, and Panels actions for showing or hiding the sidebar, terminal, or preview. Available shortcuts appear beside each action. The actions shown depend on the current workspace. Workspace File Tree Hover over a project in the left sidebar and click Show files to open its Files pane to the right of the conversation. You can also select Add tab (+) → Files in the right-hand pane. Within this pane, the directory tree is on the left and the preview is on the right. Use Hide file navigation / Show file navigation at the left end of the title bar to hide or show the tree. The file tree has no dedicated default shortcut. To show or hide the right-hand pane, use ⌥⌘B on macOS or Ctrl+Alt+B on Windows / Linux. Click a file in the directory tree to preview its contents in the same pane. This example shows a README.md preview and the directory tree. Browse and search Search files: enter a file name or path in the search box to filter files as you type. Results include the containing folder. Refresh file tree: click the refresh button above the tree to reload the file list. Show changed files only: in a Git workspace, use the change filter beside the project name to show files with Git changes. Click it again to restore the full list. Git status marks: status letters appear beside files, such as M for modified and U for untracked. A dot beside a folder indicates changes inside it. Changed files onlySearch by pathFile menu Open and reference ActionHow to use itPreview a fileClick a file, or focus it and press Enter, to preview it in the Files pane. For Markdown, use the ⋯ menu to switch between Preview / Source or copy the file pathOpen in an editorRight-click a file, choose Open with, and select an installed editorAdd files as contextDrag a file into the composer, select it with @, or choose Add to chat from the context menu. A file tag appears in the composerLocate or copy pathsChoose Open in Finder (File Explorer on Windows), Copy absolute path, or Copy relative pathPreview HTMLRight-click an HTML file and choose Open in built-in browser Add to chatPreview / Source Git Graph When creating a task in a Git project, open the branch menu above the composer and select Git Graph. This read-only view displays commit history, branches, and merge relationships so you can trace branch origins and merges. Click a commit node to view its subject, full hash, author, date, and parents below the graph. Merge commits can list multiple parents. Select Load more commits to view earlier history. Git Graph shows commit relationships and does not support switching branches or viewing file diffs. Use the branch menu to switch or create branches. If the workspace contains uncommitted changes, follow the prompts to commit your changes before switching. Next Steps ZCode AgentLearn how to start tasks, choose execution modes, and use goal mode.Edit HistoryRevise the latest instruction and rerun the task.CommandSave frequently used prompts as reusable commands.

评论 (0)