Social media
for Claude CodeCodexOpenClawHermes

Your agent spots what goes viral and decodes why it works, then posts and A/B tests it on your own accounts. Everything runs through one treg key, no subscription.

Set up treg See how it works ↓

The social data your agent can pull.

$0.50=

20,000videos foundTikTok
1,428creator profilesTikTok
1,000comment sectionsTikTok
555creator profilesInstagram
265video transcriptsTikTok

Search viral posts.Real headphone review posts from Instagram and TikTok, pulled through treg. The green ones passed 500K views.

Prompt

Interview me first, one question at a time: my topic, which platforms (default: Instagram and TikTok) and any filters (default: 100K+ views, 100+ comments, last 30 days). Then search each platform through treg, paging until you have enough, and apply my filters yourself: search results come back ranked by relevance, not by date. Return a table: link, creator, views, likes, comments, date and the first line of the caption, sorted by views, with anything over 500K views marked viral.

>
100K+ views100+ commentsLast 30 days1K–5K followers
treg searching Instagram and TikTok…

Decode viral post structure.Your agent pulls the transcript, then marks the hook, the tension and the payoff.

Prompt

Ask me which post to decode (default: the most-viewed one). Use treg to get its transcript: captions first, audio transcription if there are none, and the caption if the video has no speech. Split it into hook, tension and payoff, with timestamps where the transcript carries them, and say in one line why each part works.

>
TranscriptHookTensionPayoff
treg pulling the reel’s transcript…

Hook

The reel's hook0:00–0:05
“I bought the XM4, XM5 and AirPods Max, so you don’t have to.”

Tension

The reel's tension0:12–0:19
“…but it gives me a massive raging headache.”

Payoff

The reel's payoff0:57–0:59
“…I’m probably gonna go with the XM5.”

Track the creators.Who made each viral post, how big the account is, and how far one post out-ran it.

Prompt

Ask me which posts to follow up (default: the top 5 viral ones). For each creator, use treg to pull their profile (followers, posts, bio, links) and their recent posts with views, and flag the posts that beat their median by 3x or more. Then search the other platforms I named for the same handle or name and add any matches. Return one card per creator. For a full teardown of one creator's content, follow https://treg.to/skills/rea-growth/SKILL.md in content mode.

>
Top 5 postsFollowersTheir last 30 postsOther platforms
treg reading creator profiles on Instagram and TikTok…
creatorfollowersviral postviews ÷ followers
@diegooatx8.4K1.6M193×
@kailawenn447K1.5M3.5×
@charlieputh19.7M1.5M0.1×
@danielsin519K1.2M2.3×
@lottiehalliwell2.4K1.1M464×

The creators behind the viral headphone posts above, with real counts pulled through treg. Green: the post out-ran the account by 10× or more.

Dissect the comments.What people compare it to, what they still ask, what they hate and what they love. A comment can count under more than one heading.

Prompt

Ask me which post's comments to read (default: the one we decoded), how many (default: up to 200) and whether I care about anything specific, like a competitor or a feature. Use treg to pull them, paging as needed. Tag each comment as competitor, question, complaint or praise (one comment can carry more than one tag), count each tag, list the top 3 themes under each, and quote 2 real comments per tag.

>
CompetitorsQuestionsNegativesPositives
treg reading all 61 comments…
61comments on this reel, read one by one

Auto post.Your agent posts both versions on your own accounts, then reads back how each one does.

  1. 1

    Connect your accounts

    In treg, sign in to Instagram, Facebook, TikTok, LinkedIn, YouTube or X. treg keeps the login; your agent never sees a password or token.

  2. 2

    Ask your agent

    In Claude Code, Codex or any agent with treg: post version B to my Instagram and TikTok at 6pm.

  3. 3

    It posts through treg

    Your agent shows you the post, waits for your yes, posts it, then reads back views, likes and comments.

Prompt

Ask me which of my accounts connected in treg to post to, when, and for the two versions to test, A and B, with a public link to any image or video. Show me both before anything goes out, and post only after I say yes. Post through treg where the platform allows; where it only takes a draft (TikTok's inbox), send the draft and tell me to finish it in the app. Then read back views, likes, comments and shares from my accounts at 1h, 6h, 24h and 48h, side by side.

Platformtreg callPriceGood to know
Instagraminstagram.instagram.media.container.create
instagram.instagram.post.publish
FreeBusiness or creator account. Up to 100 posts a day.
Facebook Pagefacebook.facebook.page.post.create
facebook.facebook.page.video.create
FreeText, photo, video or Reel on a Page you manage.
TikToktiktok.tiktok.video.inbox.initFreeThe video lands in your TikTok inbox; you tap publish.
LinkedInlinkedin.linkedin.user.post.createFreeText or link posts to your own feed.
YouTubeyoutube.youtube.video.uploadFreeGoogle’s quota allows about six uploads a day, shared by every connected channel.
Xx.x.post.create$0.015 a post$0.20 when the post has a link. X charges for every post.

Prices from the treg catalog.

Start mode with social media.

Search runs across the social platforms in the catalog; posting runs on the accounts you connect. No platform API keys to manage.

Social media on auto mode with Claude CodeCodexOpenClawHermes

paste this into your agent
set up treg - https://treg.to/llms.txt