Skip to content
TauwhoPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Meta engine

Trend-driven Threads content for Vietnamese audiences. A scheduled Claude Code task (on a Claude subscription, no API key) reads what Vietnam is searching and reading today, researches it, writes short Vietnamese posts, reviews them, and publishes through the official Threads API.

trends (Google Trends VN + VN news RSS)
  -> write   (agent job: research + draft N posts, sources required)
  -> review  (agent job: fact-check + hard rules + score; pass / fix / reject)
  -> pending -> `meta approve` (only while publish.require_approval is true)
  -> approved -> `meta publish` (posting window, gap, expiry) -> text post, or image post with a text card
     (card PNG pushed to the public Tauwho/meta-media repo, cloned at ./media) -> optional reply
     every post carries a Threads `topic_tag` (topic feed reach); ~1 in 4 text posts carries a `poll`
  -> `meta track` (views, likes, replies, reposts, quotes, shares) -> fed back into the next write job

Setup

python -m venv .venv; .venv\Scripts\python -m pip install -e ".[dev]"
git clone https://github.com/Tauwho/meta-media.git media   # public image hosting for cards
.venv\Scripts\meta auth A      # one-time per account; see docs/RESEARCH.md for the Meta app
.venv\Scripts\pytest

Commands

Command What
meta trends today's trend signals
meta agent next / submit <id> / abandon <id> job protocol for the scheduled Claude session (docs/AGENT_RUN.md)
meta queue drafts, pending and approved posts with their text and sources
meta approve <id...>|all, meta reject <id...> your gate
meta publish [--dry-run] at most one due post per active account
meta track pull insights for posts from the last 14 days
meta status counts by state
meta auth / whoami / refresh / recent A|B Threads tokens (refresh before 60 days); recent lists the latest live posts
meta clear <id> poll|card|topic_tag|quote_post_id drop a feature the API rejects from a queued post

Files

Path What
config/meta.yaml accounts + personas, cadence, approval switch, review threshold, trend feeds
prompts/ system.md (voice + hard rules), write.md, review.md
src/meta_engine/card.py, media.py text-card renderer (4:5, Segoe UI) and public hosting via media/
data/posts.jsonl every post with state, sources, review, Threads ids and insights
docs/POLICY.md what the engine must never post, and why
.env app id/secret and per-account tokens (gitignored)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages