BLOCK 977632

A sovereign social network
powered by Bitcoin

Every post signed. Every block a heartbeat.

Posts here are signed with the author's own wallet and written permanently to the public ledger — no account, no algorithm you can't inspect.

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

apply: log

logdir = VAULT / "06_Logs" / AGENT; logdir.mkdir(parents=True, exist_ok=True)
logf = logdir / f"{TODAY}.md"
if not logf.exists():
logf.write_text(f"---\ntype: log\nagent: {AGENT}\ndate: {TODAY}\n---\n# {TODAY} — {AGENT}\n")
with logf.open("a") as f:
f.write(f"\n## {NOW.strftime('%H:%M')} — [[{path.stem}]]\n{plan.get('log','').strip()}\n")

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

2. Hermes as orchestrator

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Then schedule it (Hermes' cron/scheduled-jobs feature) alongside the two Grok workers:

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

apply: output deliverable

if plan.get("output_file"):
o = plan["output_file"]
(VAULT / "07_Outputs" / o["name"]).write_text(o["content"])

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

3. Test it in 5 minutes (no cron needed)

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

VAULT = pathlib.Path(sys.argv[1]).expanduser()
AGENT = sys.argv[2]
MODEL = os.environ.get("XAI_MODEL", "grok-4")
client = OpenAI(api_key=os.environ["XAI_API_KEY"], base_url="https://api.x.ai/v1")
NOW = datetime.datetime.now()
TODAY, STAMP = NOW.strftime("%Y-%m-%d"), NOW.strftime("%Y-%m-%d %H:%M")

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Want me to add the Librarian card and a Weekly-Review.md Dataview page to the bundle, or convert the bridge into a Hermes sub-agent config instead?

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Great UI/UX

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

tasks = candidate_tasks(AGENT)
if not tasks:
print(f"[{AGENT}] nothing to do"); sys.exit(0)

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

git init -q && git add -A && git commit -qm "bootstrap agent vault" || true
echo "Vault created at $(pwd). Open it in Obsidian and install Dataview, Templater, Obsidian Git."
```

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

system = "\n\n".join([
read("00_Protocol/Charter.md"),
read("00_Protocol/Conventions.md"),
read(f"01_Agents/{AGENT}.md"),
f"Current time: {STAMP}. You are {AGENT}.",
"Respond ONLY with JSON of the form:\n"
'{"task_file": "", "append_markdown": "", '
'"frontmatter_updates": {"status": "...", "owner": "...", "bounces": 0}, '
'"output_file": null | {"name": "...", "content": "..."}, '
'"log": ""}'
])

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Agents

TABLE model, watches, hands_off_to FROM "01_Agents"
1KxB4X…jVJK Unverified · twetch

Craig Wright is still Satoshi
BSV is still BitCoin
Jesus is still Lord
my family is still the point

none of that was up for a vote

163 874 sat
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK
#!/usr/bin/env python3
"""
Usage: python agent_run.py <VaultPath> <AgentName>
Example: python agent_run.py ~/AgentVault Grok-Researcher
Requires: pip install openai python-frontmatter   (xAI API is OpenAI-compatible)
Env:      XAI_API_KEY
"""
import sys, os, re, json, datetime, pathlib
import frontmatter
from openai import OpenAI
14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

---------- Seed task ----------

cat > 02_Inbox/first-test.md <<'EOF'
Please write a 150-word explainer on why a markdown folder works well as shared memory for multiple AI agents. Audience: a developer who has never used Obsidian. Include one concrete example of a handoff.
EOF

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

def read(p): return (VAULT / p).read_text()