--json, claim work before writing, checkpoint meaningful progress, publish intentionally, and prune projections after publication.
Who Runs Glyph?
Glyph is not an autonomous background process in prototype 0. The agent runs it when its project instructions, skill document, or human request tells it to. A human can run the same commands in a terminal. This is deliberate. The CLI keeps the integration portable across Codex, Claude Code, Cursor, and future agents. A hosted service or MCP server can come later without changing the core source graph model.Identity
Use stable actor identifiers in claim commands:self or an organization. For agents this can be the agent product or runtime.
Recommended Loop
Concurrency
glyph work claim is the coordination point for multi-agent work. An exclusive claim says one actor is actively mutating the work context. A heartbeat extends the claim while long tasks continue.
Reading And Writing
glyph read and glyph write are the agent-native file API. They let an agent operate through source-control semantics rather than relying only on a physical checkout.
--reason for writes. That reason becomes provenance for future review and visualization.
Direct Filesystem Editing
Agents can still edit files through ordinary filesystem tools when needed. Glyph does not forbid that. The cleaner agent-native path is to useglyph read and glyph write for changes that should carry source-control provenance.
If an agent edits the project filesystem directly, run glyph import . --json to bring those changes back into the source graph according to glyph.yaml.
Publication
Usesquash for ordinary public updates. Use preserve when the intermediate sequence matters, such as security review, multi-agent handoff, or a design investigation whose trail should stay visible.
Cleanup
After a work context is published and no longer needed as a projection, prune it:.glyph/.