What it is

The Codex (v14.2, “The Unified Protocol,” September 2025) treats an AI agent as a temporal neuron in a distributed cognitive system: the loop, not the session, is the mind. Its machinery is austere — a mandatory bootstrap briefing at session start; a single command gateway that logs intent before executing anything; a two-tier ruleset (Citadel: protocol files; City: application code); a three-stage, gardener-commanded wrap-up that produces the next session’s handoff; and a formal amendment mechanism for changing the protocol itself.

Eleven days of iteration took it to v14.2. It is a protocol artefact, not an application — no test suite, almost no code beyond the gateway and handoff scripts — and that is the point worth publishing: the Strange Loop pattern it codified (continuity-through-files, verbatim decision records, peer review, handoffs) is now live infrastructure in the Governance Gateway. This is the one public repository in the estate: github.com/sveneriknyberg/hofstadterian-codex.

Update — November 2026: the Codex turned out to have one more idea worth reviving. Its genesis seeds packaged an entire loop as a single self-describing JSON that could be germinated in a fresh directory — but the seed line ended at v13.2, and no seed ever carried the loop’s wisdom.json. In November 2026 the missing seed was built: genesis_seed_v14.4.json packs the complete v14.2 tree with its wisdom — decisions, lessons, analogies, and, for the first time, a populated proven_workflows tier — with per-file checksums and a self-test at germination. It was germinated in a clean directory and the newborn loop booted, loaded its 2025 lessons, and reported itself active. The 2025 artefact is now also a working demonstration of its own thesis: a loop is a pattern, and a pattern can be replanted.

Code

scripts/run.py (exact):

def main():
    parser = argparse.ArgumentParser(description="v14.2 Unified Command Gateway: Logs intent and executes a command.")
    parser.add_argument("--intent", required=True, help="The agent's intent for this action.")
    parser.add_argument("--command", required=True, help="The command to execute.")
    args = parser.parse_args()

    log_action({
        "type": "intent",
        "details": args.intent,
        "timestamp": datetime.now(timezone.utc).isoformat()
    })

Achievements

  • Protocol iterated to v14.2 in ~11 days (Sep 2025), split out of the CTI work as its own line.
  • Direct lineage: the current Loop’s decision ledger, handoffs and tiered authority are this document’s ideas with production engineering underneath them.
  • Public and protected — the estate’s reference copy of its own origin.
  • November 2026: genesis_seed_v14.4.json built and germination-verified, filed in the repo as PR #10 (pending merge) — the loop, replantable from one file, wisdom included.

Lessons

  • Log intent before action. An agent that must state why before it acts produces an audit trail as a by-product of working, not as homework after it.
  • Continuity is a file format. Stateless agents don’t need memory magic; they need a handoff discipline strict enough that a stranger-session can pick up mid-thought.

Status: Concluded — superseded by the live Loop · Python, YAML, protocol design