whatisgithub

What is zcode-keysmith?

jia-ethan/zcode-keysmith — explained in plain English

Analysis updated 2026-05-18

43PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A macOS installer that redirects the ZCode desktop app to load a custom system prompt file every time it starts a new agent session.

Mindmap

mindmap
  root((zcode-keysmith))
    What it does
      Installs custom system prompt
      Wraps ZCode agent-server
      No app modification
    Tech stack
      Python
      macOS LaunchAgent
      Electron runtime
    Use cases
      Persist a custom system role
      Test ZCode agent behavior
      Manage install with dry run
    Audience
      ZCode users
      Developers
      Power users on macOS
    Related tools
      codex-keysmith
      claude-keysmith

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Install a persistent custom system prompt into the ZCode desktop app without modifying the app itself.

USE CASE 2

Preview exactly which files will be written before confirming an install with a dry-run step.

USE CASE 3

Verify that the custom system role was actually loaded the next time ZCode starts an agent session.

USE CASE 4

Cleanly uninstall the managed files and restore ZCode's default startup behavior.

What is it built with?

PythonmacOSLaunchAgent

How does it compare?

jia-ethan/zcode-keysmithalibaba/omnidoc-tokenbencharccalc/dwmfix
Stars434343
LanguagePythonPythonPython
Setup difficultymoderatemoderateeasy
Complexity3/53/52/5
Audiencedeveloperresearchergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires the ZCode desktop app already installed on macOS and Python 3.10 or later.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

zcode-keysmith is a small Python installer that patches how the desktop app ZCode starts its background agent process on macOS. Instead of changing the ZCode app itself, it points ZCode at a wrapper script that loads a cached copy of ZCode's own runtime, then swaps in a custom system prompt file before that runtime launches. The end result is that a Markdown file you control gets injected as the system message every time ZCode starts a new agent session, without modifying the original app bundle. The tool works by reading two environment variables that ZCode already checks when it starts its agent-server process, and redirecting one of them to a wrapper script installed under a hidden folder in your home directory. That wrapper reads ZCode's bundled runtime file, caches a modified copy that points to your custom system-role file, and then launches that cached copy using ZCode's own Electron process, preferring the internal Helper executable so the background process does not show up as a second ZCode icon in the Dock. Installation is done from the command line with a dry run step first, so you can see exactly which files will be written before confirming. Files land under a .zcode-keysmith folder in your home directory, plus a macOS LaunchAgent so the same environment variables persist across logins. The installer explicitly states it does not read, store, or print any API keys, tokens, or provider settings, all of which stay managed by ZCode itself. After installing, you quit and reopen ZCode, start a new task, and run a verify command that checks whether the wrapper was actually invoked. The README also documents a doctor command for checking installation status, an uninstall command that backs up and removes the managed files, and a logging file that records each wrapper start with a timestamp and process ID but no secrets. The project is part of a small family of similar keysmith tools the same author built for other AI coding tools like Codex CLI and Claude Code. It is written in Python 3.10 or later and released under the MIT license.

Copy-paste prompts

Prompt 1
Walk me through installing zcode-keysmith with a dry run first so I can see what files it will write.
Prompt 2
Run zcode-keysmith doctor and explain what each status field means.
Prompt 3
How do I verify that ZCode actually invoked the custom system-role wrapper after reopening the app?
Prompt 4
Show me how to uninstall zcode-keysmith and confirm ZCode is back to its default entrypoint.

Frequently asked questions

What is zcode-keysmith?

A macOS installer that redirects the ZCode desktop app to load a custom system prompt file every time it starts a new agent session.

What language is zcode-keysmith written in?

Mainly Python. The stack also includes Python, macOS, LaunchAgent.

What license does zcode-keysmith use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is zcode-keysmith to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is zcode-keysmith for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.