r/Python • • 21d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

28 Upvotes

154 comments sorted by

View all comments

1

u/Empty_Pizza9768 5d ago

hermes-harness-clone: makes a coding-agent CLI run as your personal AI agent, with shared memory over MCP and a Telegram front end. MIT, I'm the author. https://github.com/acruz6421-bot/hermes-harness-clone

What My Project Does

  • Memory over MCP: a FastMCP stdio server gives the CLI (Google Antigravity's agy; Claude Code and Codex are experimental) the long-term memory and past sessions of Hermes Agent. What the CLI learns is written back into the same SQLite fact store.
  • Telegram bridge: one requests long-poll loop where each forum topic maps to one CLI conversation. It parses the CLI's stream-json events to show live tool status.
  • Personality: builds the CLI's instruction file from Hermes' personality files.

Target Audience: people already running Hermes Agent who also pay for a coding CLI and want one agent instead of two. It's a personal tool I run daily, not a library.

Comparison: existing Telegram wrappers for coding CLIs give you remote control. This also gives the CLI a persistent memory shared with another agent. Writes go through the memory plugin's own Python API, not raw SQL, so dedup, entities and history stay consistent. Near-duplicates are blocked before writing and possible conflicts are reported after.

Python bits that might interest someone:

  • Two interpreters: the MCP server runs in its own small venv (mcp>=1.2,<2, since 2.0 broke the FastMCP imports). Writes run in Hermes' venv through a subprocess, because the memory plugin needs Hermes' dependencies.
  • Conversation sync: the desktop app and the CLI store conversations as separate SQLite files with the same schema. They're copied with sqlite3.Connection.backup(), which gives a consistent snapshot even while the source is in WAL mode, and the copy never overwrites the side with more steps.