From 1732bbd58f269094d7bc6df29c0ef9a9b699a703 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Aug 2026 13:44:59 +0530 Subject: [PATCH] feat: add stub-agent example for pub/sub change notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A runnable stand-in for a production agent: reads its prompts by address, subscribes to change pushes, and acts on the semantic diff verdict that rides along with each notification — hot-reloading a minor edit or localized tweak, holding a structural change until a human reviews it. Uses the existing PromptClient.subscribe(); no new dependencies. Subscribes per URI rather than by wildcard because the notification body carries {version, classification} but not the URI, so a wildcard subscriber cannot tell which prompt changed. --- stub-agent.js | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 stub-agent.js diff --git a/stub-agent.js b/stub-agent.js new file mode 100644 index 0000000..ea84f9d --- /dev/null +++ b/stub-agent.js @@ -0,0 +1,111 @@ +#!/usr/bin/env node +// stub-agent.js — a stand-in for a production agent that reads its prompts from +// priompt by address instead of hard-coding them, and reacts to change pushes. +// +// node stub-agent.js