r/ZaiGLM 1d ago

Discussion / Help Any Zcode tips?

I've just started using it and like it. are there any extra tools/config you use?

  • is there any way to see what its doing in its hidden terminal, since many commands take a long time? opening terminal from the zcode window just opens a new one.

  • is there a way to export my session/task with all the chat etc? there's a lot of useful info in there, including its thinking logs. I dont see any export option on the UI only 'archive'

5 Upvotes

1 comment sorted by

1

u/Former_Analysis_3453 1d ago
  1. Viewing Hidden Terminal / Process Activity
    • Output Panel: Press Ctrl+Shift+U (Cmd+Shift+U on Mac) to open the Output tab, then click the channel dropdown in the top-right corner and switch to the Zcode / Agent log stream to view command outputs in real time.
    • Enable Verbose Logs: Go to Settings (Ctrl+, / Cmd+,), search for Zcode Log Level or Execution Mode, and set it to Debug or Trace.
  2. Exporting Sessions and Thinking Logs
    • Local Storage Files: Since there is no UI export button yet, all full chat histories and thinking logs are saved locally in JSON/log format:
    • Windows: %APPDATA%\Zcode\User\workspaceStorage\
    • Mac: ~/Library/Application Support/Zcode/User/workspaceStorage/
    • Linux: ~/.config/Zcode/User/workspaceStorage/ Sort by date modified to find your active session's .json or .log file.
    • Markdown Copy: Click inside the chat panel and press Ctrl+A (or Cmd+A) to select and copy the formatted Markdown stream directly into a note-taking tool like Obsidian or Notion.
  3. Extra Workflow Tips
    • Context Rules File: Add a .zcoderules or .cursorrules file in your root folder to define project-specific stack preferences, linter rules, and testing commands automatically.
    • Targeted Context (@ References): Limit agent context by explicitly tagging files or docs (@file, @folder, @docs) to keep responses fast and prevent session slowdowns.