- Sign in with a Reddit web app; access tokens refresh automatically,
and an app-only token reads rules before sign-in.
- Reddit drafts: a title and text for one subreddit, chosen when
writing. The subreddit's guidelines and rules go into the prompt, which
asks for a community member's post that discloses the affiliation and
avoids marketing language.
- The Inbox shows the subreddit's rules (cached for a day, with Refresh)
and warns, without blocking, about promotion rules, restricted
subreddits, link-only subreddits, posting in the same subreddit within
a week, more than 1 in 10 recent posts linking to the company's sites,
and new accounts.
- Publishing makes a text post with the source link at the end, or a
link post where the subreddit takes only links.
- Migration 4 adds the draft's title and subreddit, and the rules cache.
Publishers now take a Post, which carries the title and subreddit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commits for parts 1 and 2, what still needs a real test, and the plan
for part 3 (Reddit) and part 4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Inbox: a top-level page, with a count in the menu, for everything
waiting for approval; Content's drafts are reviewed there. /drafts
redirects to it.
- Scheduling: publish a draft now or at a time (migration 3 adds
publish_at). A scheduler in the app publishes due drafts every 30
seconds. Posts more than 12 hours overdue, or refused before posting,
go back to the Inbox with the reason. Content gets Scheduled and
Published tabs.
- UTM tags on links to the company's own websites and product pages,
added when publishing; drafts stay untagged.
- The container runs in the computer's time zone, so times are shown
and read correctly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings back posting, which Phase 0 removed with the terminal interface.
- Content page: per inventory entry, fetch its X account, X hashtag
search, YouTube channel and RSS/Atom feeds (new), then select, dismiss
or restore the fetched items, which are kept in the database.
- Writing: one AI call returns a draft per channel (X and LinkedIn),
prompted from the company profile, the entry's relationship, talking
points and mention policy, and each channel's rules. Fetched text is
quoted as untrusted. An over-long X draft gets one request to shorten.
- Drafts page: edit with a live length counter that counts like X, then
publish each draft on its own. A draft is claimed before posting so it
can't go out twice; failures are kept on the draft for a retry; X
tokens are refreshed and saved.
- Migration 2 adds content_items and drafts, and turns queued posts into
drafts for the platforms they hadn't reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hermes runs in CoreDesktop's sandbox, with its own network, so it can't
reach 127.0.0.1:8470. The app now also serves MCP on a Unix socket in its
data folder (/data/mcp.sock), which Hermes reaches with socat. HTTP /mcp
with the bearer token remains for other agents.
hermes/setup.sh asks for the user's own hub token (the Core now issues
per-user tokens), checks it with the hub, and stores it in Hermes' .env.
The hub only speaks SSE, and Hermes' Streamable HTTP attempt can use up
its connect time, so the setup sets transport: sse. It also warns when
Hermes' gateway is still running with the old servers.
Check-ins store the hub's own tool names, without Hermes' mcp__mcphub__
prefix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the old Go TUI with a web app (port 8470) that runs in a
container as a CoreDesktop sibling:
- cmd/supermarket server with htmx web UI: dashboard, company profile,
inventory (partners/competitors), AI and credential settings, and a
Core & Hermes page
- SQLite storage and a secrets store under ~/.local/share/supermarket
- AI providers (Anthropic, OpenAI-compatible) behind one interface
- MCP server and a Hermes bridge to the Federated Core MCP hub
- Import of the old Coremarketing TUI's state
- install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the
bin/supermarket launcher and hermes/setup.sh
Posting is not wired back up yet; that comes in Phase 1. See PLAN.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>