Skip to content

feat(agent-tools): add X tools for agents to post, like, repost, read the home timeline and mentions, and search posts - #1034

Merged
croffasia merged 1 commit into
mainfrom
feat/agent-tool-x
Nov 28, 2026
Merged

croffasia merged 1 commit into
mainfrom
feat/agent-tool-x

Conversation

@croffasia

Copy link
Copy Markdown
Owner

What

Adds an X integration to the agent tools. An agent can publish posts and replies with images or a poll, delete its posts, like and repost with undo, read its profile, another account, a post, an account's posts, its mentions and its home timeline, and search posts from the last 7 days.

Why

Agents can already publish to Threads and Instagram, and X is the other network teams ask an agent to post to and react on.

How to test

  1. In the X Developer Console, open an app with Read and write permissions. On its Keys and tokens page, copy the Consumer Key and Consumer Secret, and generate the access token and secret.
  2. In team settings, add an X credential with these four values. It is checked against X when saved.
  3. Enable the X tools on an agent, then ask it to read the home timeline, like a post and publish a reply with an image.
  4. cd packages/agent-tools && bun test src/tools/x

X bills every request from the app's credits, so each step costs a little.

Checklist

  • bun run typecheck passes
  • bun run lint and bun run format:check pass
  • Developed with an AI agent: tidy, code-review and security-audit from .agents/skills/ ran on the new code
  • Tests added or updated for the changed behaviour
  • Database schema changed: migration generated with bun run db:generate and committed
  • New environment variables documented in .env.example
  • Docs updated (README.md or docs/). AGENTS.md changed only as docs/dev/agents-md.md allows

Screenshots

None.

… the home timeline and mentions, and search posts
@croffasia
croffasia merged commit 845d892 into main Nov 28, 2026
7 checks passed
@croffasia
croffasia deleted the feat/agent-tool-x branch November 28, 2026 22:20
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants