x-agent-kit
<div align="center">
<img src="assets/banner.png" alt="x-agent-kit: your AI growth team for X, built for open source" width="100%"/>
<h1>x-agent-kit</h1>
<p><b>X agents · X automation · Twitter automation · AI social media manager · MCP server for X</b></p>
<p><b>The open-source AI growth team for X (Twitter).</b><br/>
It turns your commits, releases, notes and LinkedIn posts into hooked, validated posts for basic and Premium accounts, and publishes them every day, from any AI model.</p>
<p>
<a href="https://github.com/karthikrshet/x-agent-kit/actions/workflows/ci.yml"><img src="https://github.com/karthikrshet/x-agent-kit/actions/workflows/ci.yml/badge.svg" alt="CI"/></a>
<a href="https://github.com/karthikrshet/x-agent-kit/actions/workflows/codeql.yml"><img src="https://github.com/karthikrshet/x-agent-kit/actions/workflows/codeql.yml/badge.svg" alt="CodeQL"/></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-black" alt="MIT license"/></a>
<img src="https://img.shields.io/badge/version-1.0.0-1d9bf0" alt="version 1.0.0"/>
<a href="https://github.com/karthikrshet/x-agent-kit/stargazers"><img src="https://img.shields.io/github/stars/karthikrshet/x-agent-kit?style=flat&color=f5a623" alt="GitHub stars"/></a>
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-2ea44f" alt="PRs welcome"/></a>
</p>
<p>
<img src="https://img.shields.io/badge/MCP-13%20tools%20%C2%B7%209%20prompts-6f42c1" alt="MCP: 13 tools, 9 prompts"/>
<img src="https://img.shields.io/badge/skills-13-0a7cff" alt="13 skills"/>
<img src="https://img.shields.io/badge/agents-8-ff6b00" alt="8 agents"/>
<img src="https://img.shields.io/badge/Node-%E2%89%A518-339933?logo=nodedotjs&logoColor=white" alt="Node 18+"/>
<img src="https://img.shields.io/badge/Python-%E2%89%A53.10-3776ab?logo=python&logoColor=white" alt="Python 3.10+"/>
<img src="https://img.shields.io/badge/GitHub%20Actions-ready-2088ff?logo=githubactions&logoColor=white" alt="GitHub Actions ready"/>
</p>
<p>
<img src="https://img.shields.io/badge/Claude-supported-d97757?logo=anthropic&logoColor=white" alt="Claude"/>
<img src="https://img.shields.io/badge/OpenAI-supported-412991?logo=openai&logoColor=white" alt="OpenAI"/>
<img src="https://img.shields.io/badge/Gemini-supported-8e75b2?logo=googlegemini&logoColor=white" alt="Gemini"/>
<img src="https://img.shields.io/badge/Kimi-supported-111111" alt="Kimi"/>
<img src="https://img.shields.io/badge/DeepSeek-supported-4d6bfe" alt="DeepSeek"/>
<img src="https://img.shields.io/badge/Copilot-supported-000000?logo=githubcopilot&logoColor=white" alt="GitHub Copilot"/>
<img src="https://img.shields.io/badge/Cursor-supported-000000" alt="Cursor"/>
<img src="https://img.shields.io/badge/Ollama-supported-000000?logo=ollama&logoColor=white" alt="Ollama"/>
</p>
<p>
<a href="#see-it-in-action"><b>Demo</b></a> ·
<a href="#quick-start"><b>Quick start</b></a> ·
<a href="#daily-autopilot"><b>Autopilot</b></a> ·
<a href="#basic-and-premium-posts"><b>Basic & Premium</b></a> ·
<a href="#works-with-every-ai"><b>Integrations</b></a> ·
<a href="#whats-inside"><b>Features</b></a> ·
<a href="#research-costs-and-no-api-mode"><b>Research</b></a> ·
<a href="#faq"><b>FAQ</b></a>
</p>
</div>
> [!TIP]
> **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
<div align="center">
<img src="assets/demo.svg" alt="Animated demo: agents draft a post from your repo, the validator catches a mistake and fixes it, you approve, and posts land in the feed" width="100%"/>
<sub><b>Terminal to timeline:</b> agents draft from your repo → the validator fixes mistakes → you approve → it ships.</sub><br/>
<sub><a href="docs/x-agent-kit-explainer.mp4">Watch the full 30-second explainer with music (MP4)</a> · <a href="docs/video-script.md">Voiceover script</a></sub>
</div>
---
## 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
<table>
<tr>
<td width="33%" valign="top"><b>Open-source maintainers</b><br/>Releases, contributors wanted, changelogs and build-in-public posts, without leaving GitHub.</td>
<td width="33%" valign="top"><b>Indie hackers and founders</b><br/>A daily posting habit from real progress, cross-posted to X, Bluesky and LinkedIn.</td>
<td width="33%" valign="top"><b>DevRel and dev-tool teams</b><br/>Review-mode PRs, a git-tracked content calendar, weekly reports and compliance checks.</td>
</tr>
<tr>
<td valign="top"><b>Students and job seekers</b><br/>Turn projects and learnings into posts that show what you can build.</td>
<td valign="top"><b>AI and agent builders</b><br/>A production-grade MCP server, prompts and agents to learn from or extend.</td>
<td valign="top"><b>Anyone on X Premium</b><br/>Long posts that hook before "Show more" and stay skimmable to the end.</td>
</tr>
</table>
### 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.
<details open>
<summary><b>A. Claude Code: everything in one command</b></summary>
```
/plugin marketplace add karthikrshet/x-agent-kit
/plugin install x-agent-kit@x-agent-kit
```
You 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-posting
```
</details>
<details>
<summary><b>B. Any MCP client: Cursor, VS Code, Codex, Gemini CLI, Kimi CLI, Windsurf, Claude Desktop</b></summary>
```bash
git clone https://github.com/karthikrshet/x-agent-kit
```
```json
{
"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/](integrations/).
</details>
<details>
<summary><b>C. Any model API: Kimi, OpenAI, DeepSeek, Gemini, Groq, Mistral, OpenRouter, Ollama</b></summary>
```bash
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.
</details>
<details>
<summary><b>D. Any chat app: ChatGPT, Gemini, Kimi web</b></summary>
Paste [`prompts/x-growth-system-prompt.md`](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."*
</details>
<details>
<summary><b>E. No AI at all: GitHub Action that announces releases</b></summary>
```yaml
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.
</details>
<details>
<summary><b>Getting X API keys</b></summary>
1. Create a project and app at [developer.x.com](https://developer.x.com).
2. Under **User authentication settings**, set permissions to **Read and write**.
3. 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.
4. 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.
</details>
---
## How it works
```mermaid
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 --> B
```
1. **Understand:** agents read your repo and find the stories in it.
2. **Write:** the playbook shapes each post for your tier around the signals X's ranking rewards.
3. **Check:** the validator blocks errors and the scorer flags weak hooks. The agent fixes them and retries.
4. **Approve:** you see the exact text, or review the day's drafts as a pull request.
5. **Ship:** post now, or schedule in `x-queue.yaml`. A GitHub Action publishes on time and cross-posts.
6. **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 `feat`/`fix`/`perf` commits, releases, merged PRs, good first issues, inbox notes, LinkedIn export, blog feeds |
| | 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:** `auto` posts on its own. `review` opens 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.
```bash
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 posts
```
Full guide: [docs/autopilot.md](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 reach
```
---
## Works with every AI
Three layers make x-agent-kit universal:
1. **MCP server:** 13 tools, 9 growth prompts, and every skill as a readable resource, in any MCP client.
2. **Function calling:** [`tools.openai.json`](integrations/tools.openai.json) / [`tools.anthropic.json`](integrations/tools.anthropic.json), plus a universal [bridge](integrations/llm_bridge.py) for any tool-calling model.
3. **Plain prompts:** [`prompts/x-growth-system-prompt.md`](prompts/x-growth-system-prompt.md) for chat apps, and [`AGENTS.md`](AGENTS.md), which coding agents read automatically.
| Tool or model | How it connects | Guide |
|:--|:--|:--|
| Claude Code | Plugin: skills, agents, commands, MCP | [claude-code.md](integrations/claude-code.md) |
| Claude Desktop / claude.ai | MCP + skills upload | [claude-desktop.md](integrations/claude-desktop.md) |
| Cursor · Windsurf · Cline · Zed · Continue · Goose | MCP | [integrations/](integrations/) |
| VS Code + GitHub Copilot | MCP (agent mode) | [vscode-copilot.md](integrations/vscode-copilot.md) |
| OpenAI Codex CLI · OpenAI API · Agents SDK | MCP / bridge | [codex-cli.md](integrations/codex-cli.md) · [openai-chatgpt.md](integrations/openai-chatgpt.md) |
| Gemini CLI · Gemini API | MCP / bridge | [gemini-cli.md](integrations/gemini-cli.md) |
| Kimi (Moonshot) API and CLI | Bridge / MCP | [kimi.md](integrations/kimi.md) |
| DeepSeek · Groq · Mistral · OpenRouter · Together | Bridge | [guide](integrations/deepseek-groq-mistral-openrouter.md) |
| Ollama · LM Studio (fully local) | Bridge / MCP | [ollama-lmstudio.md](integrations/ollama-lmstudio.md) |
| LangChain · LangGraph · LlamaIndex | MCP adapters | [langchain-llamaindex.md](integrations/langchain-llamaindex.md) |
| ChatGPT · Gemini Gems · any chat app | System prompt | [prompts/](prompts/) |
**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
<details open>
<summary><b>13 skills: the know-how</b></summary>
| Skill | What it does |
|:--|:--|
| `x-post-formatter` | Any idea → a finished post package for your tier |
| `x-premium-longform` | Premium long posts that hook before "Show more" |
| `x-viral-hooks` | 12 hook patterns for builders: five options, then the best honest one |
| `x-algorithm-optimizer` | Scores drafts against X's published ranking weights and rewrites them |
| `x-thread-writer` | README, blog post or notes → a tight thread |
| `x-release-announcer` | Changelog → a benefit-focused release post |
| `x-repurpose` | Commits, PRs, blog posts, talks and LinkedIn posts → native X posts |
| `x-content-calendar` | Plans and schedules a realistic week of posts |
| `x-reply-assistant` | Triages mentions, drafts replies for approval |
| `x-analytics-review` | What worked, what didn't, three actions for next week |
| `x-profile-optimizer` | A bio, pinned post and header that convert profile visits |
| `x-niche-research` | Finds the hook patterns and formats that perform in your niche |
| `x-dm-funnel` | A low-pressure DM call-to-action, plus reply drafts you send by hand |
</details>
<details open>
<summary><b>8 agents: the team</b></summary>
| Agent | Role |
|:--|:--|
| `x-post-architect` | Any input → basic and Premium versions, checked and scored |
| `x-growth-strategist` | Mines your repo for 10+ post angles and builds a two-week plan |
| `x-researcher` | Studies what performs in your niche and turns it into three data-backed moves |
| `x-thread-editor` | A ruthless edit: hook, specificity, validator, before/after score |
| `x-ab-tester` | Four controlled variants, scored, with a fair test plan across days |
| `x-community-manager` | Mentions → triage → reply drafts → GitHub issues from repeated feedback |
| `x-launch-coordinator` | Readiness check, then an X + Show HN + Reddit + LinkedIn + Product Hunt timeline |
| `x-compliance-reviewer` | Blocks duplicates, spam signals, rule violations and leaked secrets |
</details>
<details>
<summary><b>13 MCP tools: the hands</b></summary>
`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`
</details>
<details>
<summary><b>Validator and reach scorer (Python)</b></summary>
```bash
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`).
</details>
<details>
<summary><b>x-draft: a drafting agent that fixes its own mistakes</b></summary>
```bash
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 local
```
It drafts, runs the validator, sends the errors back to the model, and repeats until the draft is clean.
</details>
<details>
<summary><b>Git-based post queue, cross-posting and weekly report</b></summary>
```yaml
# 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-report` ranks last week's posts, breaks results down by content kind, opens an optional issue, and updates the autopilot's weights.
</details>
<details>
<summary><b>CLI</b></summary>
```bash
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.md
```
</details>
---
## Research, costs and no-API mode
<details open>
<summary><b>Find what works in your niche</b></summary>
```bash
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.
</details>
<details>
<summary><b>Know your X API bill before it arrives</b></summary>
```bash
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 day
```
Prices come from X's pay-per-use pricing (dated and sourced in [docs/x-api-facts.md](docs/x-api-facts.md)), and you can override them in the config.
</details>
<details>
<summary><b>No X API? Everything still works</b></summary>
| Feature | With the API | Without it |
|:--|:--|:--|
| Research | `x-research --search` | paste posts into a file |
| Posting | MCP tools, queue, autopilot `auto` | autopilot `review` mode or any model's post package. Paste it into X |
| Metrics | `x-report` | type numbers from X Analytics into a CSV: `x-report --manual metrics.csv` |
| Profile | n/a | `x-profile-optimizer` drafts. You apply them in the app |
</details>
<details>
<summary><b>Stay on-brand: account profile and banned words</b></summary>
```yaml
# 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).
</details>
<details>
<summary><b>Honest about X API limits</b></summary>
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](docs/x-api-facts.md).
</details>
---
## 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](https://help.x.com/en/rules-and-policies/x-automation). This kit is for **your own** posts.
---
## FAQ
<details>
<summary><b>Is it free?</b></summary>
Yes. x-agent-kit is MIT licensed and runs on GitHub Actions' free tier. You pay only for what you choose: X API access, and an LLM API if you don't use templates or a local model.
</details>
<details>
<summary><b>Do I need X Premium?</b></summary>
No. Basic accounts get 280-character posts and threads. Set <code>X_ACCOUNT_TIER=premium</code> if you have Premium, and you'll get long posts up to 25,000 characters.
</details>
<details>
<summary><b>Can it post completely automatically?</b></summary>
Yes, with the autopilot in <code>auto</code> mode. Start in <code>review</code> mode for a week: drafts arrive as a pull request, and you merge to approve.
</details>
<details>
<summary><b>Will it make things up?</b></summary>
No. Every post is written from real material (commits, releases, your notes, your LinkedIn export, your feeds). The prompts forbid invented metrics, users or quotes. With no new material, it posts an evergreen tip you wrote, or nothing.
</details>
<details>
<summary><b>Which AI model is best?</b></summary>
Any capable model works: Claude, GPT, Gemini, Kimi, DeepSeek, or a local model through Ollama. The playbook and validator do the heavy lifting, so even templates (no model) produce valid posts.
</details>
<details>
<summary><b>Can it read my LinkedIn automatically?</b></summary>
LinkedIn's API doesn't let apps read your posts, so the autopilot uses LinkedIn's own data export (<code>Shares.csv</code>), or notes you paste into <code>content/inbox/</code>. Posting <i>to</i> LinkedIn is supported.
</details>
<details>
<summary><b>What does the X API cost?</b></summary>
X's API is pay-per-use: about $0.015 per post, and about $0.20 if the post contains a link (Nov 2026). Two posts a day costs roughly $2-3 a month. Run <code>x-autopilot cost</code> for your setup. Without an API key, use review mode and paste posts yourself.
</details>
<details>
<summary><b>Is this the same as other projects called x-agent-kit?</b></summary>
No. This is an independent, MIT-licensed project by Karthik Rajesh Shet, with its own code. Anything you see here, you can use, fork and build on.
</details>
<details>
<summary><b>Will this get my account suspended?</b></summary>
It's built to stay within X's automation rules: your own original posts, steady volume, no duplicates, no automated engagement. Following the rules is still your responsibility.
</details>
---
## 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 agent
```
---
## Roadmap
- [x] MCP server, CLI, GitHub Action, git-based queue
- [x] Python validator, reach scorer and self-correcting drafting agent
- [x] Daily autopilot with weekly learning
- [x] Bluesky and LinkedIn cross-posting
- [x] Basic and Premium formatting, plus growth prompts for any MCP client and any LLM
- [x] 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](CONTRIBUTING.md) and the [good first issues](https://github.com/karthikrshet/x-agent-kit/labels/good%20first%20issue). Please follow the [Code of Conduct](CODE_OF_CONDUCT.md). For security issues, see [SECURITY.md](SECURITY.md).
<a href="https://github.com/karthikrshet/x-agent-kit/graphs/contributors"><img src="https://contrib.rocks/image?repo=karthikrshet/x-agent-kit" alt="Contributors"/></a>
## Star history
<a href="https://star-history.com/#karthikrshet/x-agent-kit&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=karthikrshet/x-agent-kit&type=Date&theme=dark"/>
<img alt="Star history chart" src="https://api.star-history.com/svg?repos=karthikrshet/x-agent-kit&type=Date"/>
</picture>
</a>
---
## License
[MIT](LICENSE) © 2026 [Karthik Rajesh Shet](https://github.com/karthikrshet). Free to use, modify and distribute, commercially or not. Just keep the copyright notice.
<div align="center">
<sub>Built in Bengaluru for builders everywhere · <a href="https://karthikrajeshshet.vercel.app">karthikrajeshshet.vercel.app</a> · If it helps you, <a href="https://github.com/karthikrshet/x-agent-kit/stargazers">star it on GitHub</a></sub>
</div>
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.