CODE MODE

Code Mode
for coding agents

Code Mode brings PHIROK's verifiable memory into the coding workflow. When an agent changes code, the decision behind the change stays recorded — with its sources and its receipts — so a later question can be answered with evidence, not recollection.

THE PROBLEM

Code changes. The reasons behind them disappear.

An agent that writes code can change a file in seconds. The reason for the change — which decision it followed, which source it relied on, which policy was active — usually lives only in a chat transcript, if it lives anywhere at all.

Weeks later, when someone asks why the code is the way it is, there is nothing inspectable to consult. The chat is gone, the context is gone, and the only answer left is to trust the change or redo the work.

WHAT CODE MODE ADDS

Memory where the code is

Code Mode puts the project's memory next to the code it describes. Decisions recorded in PHIROK — source, context, policy and receipt reference bound together — are available to the agent while it works, not only to a reviewer afterwards.

The agent answers from the record, and the record answers back:

  • Decisions searchable in the project's memory, not buried in chat transcripts.
  • Sources consulted before an answer is given, not cited afterwards.
  • Receipts verified against a trusted reference, so a changed record is detectable.
  • Evidence returned with the answer, so the answer can be inspected instead of trusted.

AN ILLUSTRATIVE WALKTHROUGH

A walkthrough, not a live demo

This walkthrough is illustrative. It shows how Code Mode is meant to work; it does not run end to end yet. Read it as the shape of the workflow, not as a working demonstration.

An agent is asked why a project's retry policy changed, and answers from memory:

  • Step 1 — Search: the agent searches the project's memory for decisions about the retry policy.
  • Step 2 — Consult: it opens the sources behind those decisions — the recorded context and the policy that was active.
  • Step 3 — Verify: it checks the receipts against a trusted reference, so a record changed since it was stored would be detected.
  • Step 4 — Answer: it returns the answer together with the evidence that supports it — source, context, policy and receipt reference.

CODE MODE AND MCP

MCP carries it. The record proves it.

Code Mode works alongside MCP: MCP defines how the agent reaches tools and context, while PHIROK's memory layer defines what is recorded, what can be verified, and what the answer can be traced to.

How that history is checked is a separate question, and it has its own page: the BLAKE3 guide explains how hash-linked history makes silent changes detectable.

CAPABILITIES AND LIMITS

What Code Mode does not claim

Code Mode is a way of working with recorded evidence; it does not write code by itself, review code, or guarantee that a change is correct. A hash check detects change against a trusted reference — it does not prove content true — and a receipt is a hash-linked reference, not a digital signature.

This page makes no availability claim, no time or effort savings claim, and no claim about any specific coding agent, editor or integration. The walkthrough above is illustrative, and the evaluation route is an evaluation brief, as elsewhere on this site.

RELATED GUIDES

Continue with another guide

How the history is verified

The BLAKE3 guide explains how hash-linked history makes silent changes detectable.

Read BLAKE3 and memory integrity

YOUR NEXT DECISION

Build with memory.
Stand behind the evidence.

Give consequential AI a history you can inspect.