x-agent-kit
Allows cross-posting generated posts to Bluesky alongside X and LinkedIn.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x-agent-kit draft a tweet from my latest commit and schedule it for tomorrow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
If x-agent-kit saves you time, star the repo. It's how other builders find it, and it keeps the project going.
See it in action
Terminal to timeline: agents draft from your repo → the validator fixes mistakes → you approve → it ships. Watch the full 30-second explainer with music (MP4) · Voiceover script
Related MCP server: ilo
Why x-agent-kit
You ship great code. Then nobody hears about it, because posting well on X every day is a second job.
The problem | What x-agent-kit does |
You forget to announce releases | Every GitHub release is announced automatically, with highlights pulled from the notes |
Blank page, then "Excited to share…" | Agents find the stories in your commits and write hooks that stop the scroll |
You don't know what the algorithm wants | Drafts are shaped and scored against X's published ranking signals |
Posting daily takes an hour a day | The daily autopilot writes and schedules posts from real activity |
Basic vs Premium formatting is confusing | Every post comes in the right format for your tier: 280-character posts and threads, or 25,000-character long posts |
281-character fails, link-first threads, bait | A validator blocks what X rejects or down-ranks before anything ships |
Locked into one AI tool or a paid SaaS | Works with Claude, ChatGPT, Gemini, Kimi, DeepSeek, Cursor, Copilot and local models. Self-hosted and MIT licensed |
Who it's for
The benefits
Consistency without the grind. One setup, then a post every day from work you already did.
Reach, earned honestly. Hooks, questions and structure tuned to what X's ranking rewards: replies and dwell time, not likes.
Protection for your account. No duplicates, no bait, no bursts, no automated follows, likes or DMs.
You stay in control. Dry run by default, review-mode PRs, and preview before every manual post.
Your stack, your model, your data. Runs free on GitHub Actions with any LLM, or with no LLM at all.
Quick start
Pick a path. Each takes about two minutes.
/plugin marketplace add karthikrshet/x-agent-kit
/plugin install x-agent-kit@x-agent-kitYou get 13 skills, 8 agents, 6 slash commands and the MCP server. Claude Code asks for your X keys and stores them in your keychain. Dry run is on by default.
/x-agent-kit:post "we shipped dark mode" # finished posts for basic + Premium
/x-agent-kit:thread README.md # README → validated thread
/x-agent-kit:announce v1.2.0 # release notes → announcement
/x-agent-kit:plan-week # a week of posts, scheduled
/x-agent-kit:launch # X + HN + Reddit + LinkedIn launch plan
/x-agent-kit:autopilot # set up daily auto-postinggit clone https://github.com/karthikrshet/x-agent-kit{
"mcpServers": {
"x-agent-kit": {
"command": "node",
"args": ["/ABSOLUTE/PATH/x-agent-kit/server/x-agent-kit-mcp.mjs"],
"env": {
"X_API_KEY": "...", "X_API_SECRET": "...", "X_ACCESS_TOKEN": "...", "X_ACCESS_SECRET": "...",
"X_ACCOUNT_TIER": "basic",
"X_DRY_RUN": "true"
}
}
}
}No npm install: the server is one self-contained file. Your client now has 13 tools and 9 growth prompts. Per-tool guides: integrations/.
pip install openai mcp
export MOONSHOT_API_KEY=... X_DRY_RUN=true
python integrations/llm_bridge.py --provider kimi --model <kimi-model-id> --tier premium \
"Read my README and write a launch post"The bridge gives the model the full growth playbook and all 13 tools. Posting tools ask for confirmation in the terminal.
Paste prompts/x-growth-system-prompt.md into custom instructions, a custom GPT, a Gemini Gem, or the first message. Then ask: "Write a Premium long post about our v1.2 release."
on: { release: { types: [published] } }
permissions: { contents: read }
jobs:
announce:
runs-on: ubuntu-latest
steps:
- uses: karthikrshet/x-agent-kit@v1
with:
mode: release
x-api-key: ${{ secrets.X_API_KEY }}
x-api-secret: ${{ secrets.X_API_SECRET }}
x-access-token: ${{ secrets.X_ACCESS_TOKEN }}
x-access-secret: ${{ secrets.X_ACCESS_SECRET }}Every published release becomes a post: name, version, top highlights, link.
Create a project and app at developer.x.com.
Under User authentication settings, set permissions to Read and write.
Under Keys and tokens, copy the API key and secret, then generate the access token and secret. Generate the token after switching to Read and write, or posting returns 403.
Put them in GitHub Secrets, your MCP config, or a local
.env(see.env.example).
Posting needs an X developer account. Search, mentions and metrics depend on your API plan.
How it works
flowchart LR
A[Your repo<br/>commits · releases · notes] --> B[Growth strategist<br/>finds post angles]
B --> C[Skills + playbook<br/>hooks · algorithm · tier format]
C --> D[Post architect<br/>basic + Premium versions]
D --> E{Validator + score}
E -- fix --> C
E -- clean --> F[You approve<br/>or review-mode PR]
F --> G[X · Bluesky · LinkedIn]
G --> H[Community manager<br/>reply drafts]
G --> I[Weekly report<br/>learns what works]
I --> BUnderstand: agents read your repo and find the stories in it.
Write: the playbook shapes each post for your tier around the signals X's ranking rewards.
Check: the validator blocks errors and the scorer flags weak hooks. The agent fixes them and retries.
Approve: you see the exact text, or review the day's drafts as a pull request.
Ship: post now, or schedule in
x-queue.yaml. A GitHub Action publishes on time and cross-posts.Learn: reply drafts keep conversations going, and weekly analytics steer what gets written next.
Daily autopilot
Turn it on once, and your project posts every day from real work.
Time | Step | What happens |
07:00 | Gather | New |
Write | Any LLM, or built-in templates with no key, using the hook and algorithm rules for your tier | |
Check | Validator + reach score. Weak drafts are rewritten or dropped | |
Schedule | Today's free slots in your timezone, at least 30 minutes apart | |
09:30 | Post | X, plus Bluesky and LinkedIn if enabled |
Monday | Learn | Weekly report on engagement by content kind. The autopilot leans into what works |
Two modes:
autoposts on its own.reviewopens a pull request every morning, and merging it is your approval.Never invents: no new material means an evergreen tip or no post. Nothing is posted twice.
LinkedIn → X: drop in your LinkedIn data export, and each post is rewritten natively for X.
pip install git+https://github.com/karthikrshet/x-agent-kit
x-autopilot init # creates x-agent-kit.yml and content/inbox/
x-autopilot plan # preview today's postsFull guide: docs/autopilot.md. In Claude Code: /x-agent-kit:autopilot.
Basic and Premium posts
Every tool knows your account tier. Set X_ACCOUNT_TIER (or tier: in the autopilot config).
Basic | Premium | |
Length per post | 280 weighted characters (links count 23, emoji count 2) | up to 25,000 characters |
What the feed shows | the whole post | about the first 280 characters, then "Show more" |
Longer content | a 4-8 post thread | one skimmable long post (600-2,000 ideal), or a thread |
How x-agent-kit formats it | hook → detail → question; threads with the link in the last post | the first 280 characters hook and promise; short paragraphs and bullets follow |
Bold and italic | not available | in X's composer only. Tools publish plain text and list suggested bold phrases |
Ask any connected model for a post and you get a complete post package:
TIER: premium
FORMAT: long post
HOOK OPTIONS:
1. I cut our CI from 14 minutes to 3 with one cache key.
2. Our CI was the slowest part of shipping. Here's the 3-line fix.
3. 14 minutes → 3 minutes. Same tests, same runner.
POST:
I cut our CI from 14 minutes to 3 with one cache key. Here's the exact setup:
…
FIRST REPLY: Full workflow file: https://github.com/…
MEDIA: Screenshot of before/after run times. Alt text: "CI duration dropped from 14m to 3m"
MANUAL FORMATTING: bold "one cache key"
HASHTAGS: #DevOps
BEST TIME: Tue-Thu, 9-10am in your audience's timezone
WHY IT WORKS: concrete number in the hook; question at the end earns replies; link in the reply protects reachWorks with every AI
Three layers make x-agent-kit universal:
MCP server: 13 tools, 9 growth prompts, and every skill as a readable resource, in any MCP client.
Function calling:
tools.openai.json/tools.anthropic.json, plus a universal bridge for any tool-calling model.Plain prompts:
prompts/x-growth-system-prompt.mdfor chat apps, andAGENTS.md, which coding agents read automatically.
Tool or model | How it connects | Guide |
Claude Code | Plugin: skills, agents, commands, MCP | |
Claude Desktop / claude.ai | MCP + skills upload | |
Cursor · Windsurf · Cline · Zed · Continue · Goose | MCP | |
VS Code + GitHub Copilot | MCP (agent mode) | |
OpenAI Codex CLI · OpenAI API · Agents SDK | MCP / bridge | |
Gemini CLI · Gemini API | MCP / bridge | |
Kimi (Moonshot) API and CLI | Bridge / MCP | |
DeepSeek · Groq · Mistral · OpenRouter · Together | Bridge | |
Ollama · LM Studio (fully local) | Bridge / MCP | |
LangChain · LangGraph · LlamaIndex | MCP adapters | |
ChatGPT · Gemini Gems · any chat app | System prompt |
MCP prompts available in every client: x_viral_post · x_thread · x_premium_long_post · x_rewrite · x_repurpose_linkedin · x_quote · x_reply · x_dm_cta · x_system_prompt
What's inside
Skill | What it does |
| Any idea → a finished post package for your tier |
| Premium long posts that hook before "Show more" |
| 12 hook patterns for builders: five options, then the best honest one |
| Scores drafts against X's published ranking weights and rewrites them |
| README, blog post or notes → a tight thread |
| Changelog → a benefit-focused release post |
| Commits, PRs, blog posts, talks and LinkedIn posts → native X posts |
| Plans and schedules a realistic week of posts |
| Triages mentions, drafts replies for approval |
| What worked, what didn't, three actions for next week |
| A bio, pinned post and header that convert profile visits |
| Finds the hook patterns and formats that perform in your niche |
| A low-pressure DM call-to-action, plus reply drafts you send by hand |
Agent | Role |
| Any input → basic and Premium versions, checked and scored |
| Mines your repo for 10+ post angles and builds a two-week plan |
| Studies what performs in your niche and turns it into three data-backed moves |
| A ruthless edit: hook, specificity, validator, before/after score |
| Four controlled variants, scored, with a fair test plan across days |
| Mentions → triage → reply drafts → GitHub issues from repeated feedback |
| Readiness check, then an X + Show HN + Reddit + LinkedIn + Product Hunt timeline |
| Blocks duplicates, spam signals, rule violations and leaked secrets |
x_format_post · x_preview_thread · x_count · x_post · x_post_thread · x_delete · x_queue_add · x_queue_list · x_release_post · x_search_recent · x_mentions · x_metrics · x_whoami
pip install git+https://github.com/karthikrshet/x-agent-kit
x-validate queue x-queue.yaml
x-validate --tier premium thread launch.thread.md
x-validate score "Excited to share my project!!! #ai #ml #dev"
# Reach score: 42/100 (grade D)
# → Drop the weak opener and lead with the outcome.
# → End with a genuine question to invite replies…It catches over-length posts (X's weighted counting), duplicate posts and IDs, missing timezones, posts scheduled too close together, link-first threads, hashtag stuffing, engagement bait, ALL CAPS and unskimmable Premium walls of text. It outputs text, JSON or inline GitHub PR annotations, and ships as a pre-commit hook and an Action (mode: validate).
pip install "x-agent-kit[agent] @ git+https://github.com/karthikrshet/x-agent-kit"
x-draft README.md --goal "launch thread" --out launch.thread.md # Claude
x-draft README.md --provider kimi --model <kimi-model-id> # Kimi
x-draft CHANGELOG.md --provider ollama --model <local-model> # fully localIt drafts, runs the validator, sends the errors back to the model, and repeats until the draft is clean.
# x-queue.yaml: your content calendar, reviewable like code
posts:
- id: launch
at: 2026-12-01T09:30:00+05:30
text: "Shipping v1.0 today: …"
also: [bluesky, linkedin]The scheduled workflow publishes due items every 15 minutes and commits the live URLs back.
Cross-posting: after X, the post goes to Bluesky (a thread, with clickable links) and LinkedIn (a thread becomes one post). One network failing never blocks the others.
Weekly report:
x-reportranks last week's posts, breaks results down by content kind, opens an optional issue, and updates the autopilot's weights.
node server/x-agent-kit.mjs preview examples/launch-thread.md
node server/x-agent-kit.mjs thread examples/launch-thread.md --dry-run
node server/x-agent-kit.mjs post "Hello from the terminal"
node server/x-agent-kit.mjs queue add "Monday post" --at 2026-12-01T09:30:00+05:30 --also bluesky
node server/x-agent-kit.mjs release --repo you/proj --tag v1.0.0 --url https://… --notes-file CHANGELOG.mdResearch, costs and no-API mode
x-research --search '"mcp server" -is:retweet lang:en' --max 50 # with the X API
x-research pasted-posts.txt # without: paste posts + "likes: 120 replies: 14"Every post is classified (hook pattern, format, length, link, question ending, number in the first line) and compared with the median, so you see which patterns run above average and what to try next. The x-researcher agent turns the result into a plan and post ideas.
x-autopilot cost
# 60 posts without a link $0.81
# 6 posts with a link $1.20 ← a link costs ~13x more via the API
# Total ~$2.58 / month at 2 posts a dayPrices come from X's pay-per-use pricing (dated and sourced in docs/x-api-facts.md), and you can override them in the config.
Feature | With the API | Without it |
Research |
| paste posts into a file |
Posting | MCP tools, queue, autopilot | autopilot |
Metrics |
| type numbers from X Analytics into a CSV: |
Profile | n/a |
|
# x-agent-kit.yml
account:
niche: "open-source developer tools"
audience: "developers who build with AI"
goals: ["GitHub stars", "contributors"]
avoid: ["politics"]
autopilot:
banned_words: ["guaranteed", "100x"]Every writer (the autopilot, agents and prompts) uses the profile, and the validator blocks banned words (--ban-file, or X_BANNED_WORDS for the MCP server).
Since February 2026, API replies are allowed only to posts whose author mentioned or quoted you. x-agent-kit replies to mentions and gives you drafts for everything else. If X stops a thread partway, you get the posted URLs and the remaining posts to paste by hand. Scheduling, bio edits and bold text aren't in the API, and x-agent-kit works around each. Details: docs/x-api-facts.md.
Built on X's published ranking signals
In 2023 X open-sourced its "For You" ranking. Its heavy ranker weighted predicted actions like this:
Action | Weight |
Reply that the author engages with | +75 |
Reply | +13.5 |
Profile click → engagement | +12 |
Click into conversation → engagement | +11 |
Dwell 2+ minutes in conversation | +10 |
Repost | +1 |
Like | +0.5 |
"Show less", mute or block | −74 |
Report | −369 |
Conversation beats likes, and negative feedback is brutal. That's why x-agent-kit writes hooks that earn replies, keeps links out of the main post, helps you reply to your replies, structures Premium posts for dwell time, and blocks engagement bait. X's ranking has evolved since 2023, so treat these as the clearest public guide, not a promise of virality.
How it compares
Posting by hand | Typical scheduling SaaS | x-agent-kit | |
Writes posts from your repo activity | No | No | Yes |
Hook and algorithm guidance | Your memory | Varies | Built in |
Basic and Premium formatting | Manual | Varies | Automatic |
Pre-publish validation and reach score | No | Rarely | Yes |
Daily autopilot with a learning loop | No | No | Yes |
Works with any AI model | n/a | Usually one vendor | Any, or none |
Content calendar in git, reviewed in PRs | No | No | Yes |
Cost | Your time | Monthly subscription | Free, MIT |
Your data stays in your repo | Yes | No | Yes |
Responsible by design
Human in the loop: previews, approval prompts and review-mode PRs. The reply assistant never sends on its own.
Dry run by default in the plugin, guides and examples.
No growth hacks that get accounts banned: no mass follows, likes or DMs, no auto-replies to strangers, no duplicate posts.
Secrets stay secret: keychain (plugin), GitHub Secrets, env vars. The Action passes user text through env vars to prevent shell injection.
Hardened repo: CodeQL, Dependabot, read-only workflow tokens, CI on Node 18-24 and Python 3.10-3.13, end-to-end MCP tests.
Follow X's automation rules. This kit is for your own posts.
FAQ
Project structure
x-agent-kit/
├── .claude-plugin/ plugin.json + marketplace.json (Claude Code)
├── skills/ 13 Agent Skills (SKILL.md)
├── agents/ 8 subagents
├── commands/ 6 slash commands
├── prompts/ portable system prompt for any LLM
├── server/ bundled MCP server + CLI (zero install)
├── src/ TypeScript: X client, playbook, formatter, queue, networks, MCP, CLI
├── python/x_agent_kit/ validator, reach scorer, research, x-draft, autopilot, report, costs
├── integrations/ 20+ tool guides, tool schemas, llm_bridge.py
├── examples/ drop-in workflows, queue, thread drafts
├── docs/ autopilot guide, X API facts, video script
├── x-agent-kit.yml autopilot config (this repo dogfoods it)
├── action.yml GitHub Action: autopilot · queue · release · post · validate · report
└── AGENTS.md instructions for any AI coding agentRoadmap
MCP server, CLI, GitHub Action, git-based queue
Python validator, reach scorer and self-correcting drafting agent
Daily autopilot with weekly learning
Bluesky and LinkedIn cross-posting
Basic and Premium formatting, plus growth prompts for any MCP client and any LLM
Niche research, no-API mode, account profile, brand-safety words, cost estimator
Image and video uploads
Polls
Mastodon and Threads adapters
Remote (HTTP) MCP server for ChatGPT connectors
npm and PyPI packages
Want one of these sooner? Upvote the issue or open a PR.
Contributing
PRs are welcome, from typo fixes to new skills, agents and integration guides. Start with CONTRIBUTING.md and the good first issues. Please follow the Code of Conduct. For security issues, see SECURITY.md.
Star history
License
MIT © 2026 Karthik Rajesh Shet. Free to use, modify and distribute, commercially or not. Just keep the copyright notice.
Available Tools
13 toolsx_countA
Count a draft's weighted length the way X does (URLs=23, emoji=2) against the account tier's limit (basic 280, premium 25,000).
Inputs: text (required).
x_deleteC
Delete one of your posts by ID.
Inputs: id (required).
x_format_postA
Shape text into a ready-to-post X format for the account tier (basic: 280 per post, threads; premium: long posts up to 25,000) and check it against what X's ranking rewards (hook, question, link placement, hashtags, bait, skimmability). Does not post.
Inputs: text (required), tier, format.
x_mentionsB
Fetch recent mentions of the authenticated account (for drafting replies; never auto-reply).
Inputs: max.
x_metricsB
Get public metrics (likes, reposts, replies, impressions where available) for post IDs.
Inputs: ids (required).
x_postA
Publish a single post to X. Only call after the user approved the exact text. Note: X only allows API replies (reply_to) to posts whose author mentioned or quoted you; for anyone else, give the user a draft to paste.
Inputs: text (required), quote, reply_to.
x_post_threadB
Publish a thread. Pass either posts (already split) or text (auto-split). Only after user approval.
Inputs: text, posts, reply_to, numbering.
x_preview_threadA
Split long text into thread posts WITHOUT posting. Use '---' on its own line to force a break. Always show this preview to the user before x_post_thread.
Inputs: text (required), numbering.
x_queue_addB
Schedule a post in the git-friendly queue file (x-queue.yaml). The GitHub Action publishes due items.
Inputs: at (required), text (required), id, also, +1 more.
x_queue_listA
List scheduled posts in x-queue.yaml.
Inputs: no named parameters.
x_release_postA
Draft an announcement post from GitHub release notes (does not post).
Inputs: tag (required), url (required), repo (required), name, +2 more.
x_search_recentB
Search posts from the last 7 days (X API search syntax, e.g. '"my-repo" -is:retweet').
Inputs: query (required), max.
x_whoamiB
Return the authenticated X account.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The posting tools are well separated: x_post vs x_post_thread vs x_queue_add are clearly distinguished by single/thread/scheduled, and x_search_recent vs x_mentions target different data. The main overlap is between x_format_post and x_count (both assess length/format) plus x_preview_thread, which all sit in the 'draft-prep, no posting' space, but descriptions resolve the confusion.
Consistent 'x_' prefix and mostly a verb_noun pattern (format_post, preview_thread, post_thread, search_recent, queue_add, queue_list, release_post). A few are noun-like or bare (whoami, count, mentions, metrics), a minor deviation but still uniformly readable.
13 tools is squarely in the well-scoped range for a Twitter/X engagement kit. Each tool covers a distinct operation—identity, prep, publish, delete, search, mentions, metrics, queue—so none feel redundant or filler.
The lifecycle is largely covered: whoami, draft/format, publish, delete, search, mentions, metrics, and a scheduled queue. Gaps remain around queue management (x_queue_list exists but no queue removal or cancel) and no thread-specific delete or own-timeline retrieval, but agents can work around these via x_delete on individual IDs.
Maintenance
Related MCP Connectors
Draft, schedule and publish posts on X, Threads and Bluesky from ChatGPT, Claude or any MCP client.
Publish and schedule tweets and threads on X (Twitter) from your AI assistant.
Schedule, draft and publish social posts from Claude, ChatGPT or any MCP client, with approvals.
Schedule and publish social posts across 9 platforms (Instagram, LinkedIn, X, TikTok, Facebook, Threads, Pinterest, Bluesky, Mastodon) straight from Claude, ChatGPT, Cursor, or any MCP client. Create, edit, and reschedule posts, upload media, and pull account and post analytics, follower demographics, and best-time windows. 20 tools, free on every plan.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to post, search, and manage tweets on X (Twitter) via the MCP protocol.102-
- AlicenseNot gradedqualityAmaintenanceA local-first MCP server for social publishing on X (Twitter), enabling draft management, scheduling, and posting via CLI or AI agents.41 npm5MIT
- FlicenseNot gradedqualityDmaintenanceEnables MCP-based interaction with the X (Twitter) API v2, supporting reads like timeline, mentions, and search, and writes through a two-step draft-and-confirm process that ensures human-visible previews before any public post.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to post, schedule, thread, delete, and analyze social media posts across platforms like X, Bluesky, LinkedIn, and Instagram through a single MCP interface.MIT