Schedule Mastodon posts with Gemini CLI
Gemini CLI runs in your terminal and reads the project in the folder you start it from, so it fits posts about the code you're already working on. Add Tesselith to its settings and you can ask the agent to draft a Mastodon post from a commit range, a changelog or a README. It's a good choice when you want the post written right where the work happened.
1. Connect Gemini CLI
Then connect Mastodon in Tesselith under Channels. How Mastodon scheduling works.
2. Ask for a Mastodon post
What people use Gemini CLI for on Mastodon
A week of commits for a dev tool
A developer runs a small static site generator and wants one Mastodon post per week. Gemini CLI reads the commits since the last release tag, groups them by what a user would notice and drafts a post with the top three items. The developer trims it to fit and asks for it to be queued for Monday.
A post from a new config option
A maintainer adds a config option to a logging library. Gemini CLI reads the option's entry in the docs and writes a Mastodon post with a short example of the setting, keeping the code on its own line. The post goes into drafts, and the maintainer schedules it for the day the docs are published.
Announcing a beta to a small group
A founder building a note-taking app in the terminal wants to tell early testers about a beta. Gemini CLI reads the release notes file and drafts a Mastodon post that invites people to try the build and links to the install steps. The founder reviews the wording and schedules the post for the evening.
Prompts to try in Gemini CLI for Mastodon
Mastodon limits to keep in mind
Mastodon posts are limited to 500 characters on most servers, though some servers allow more. Every link counts as 23 characters. Tesselith checks drafts against these before they can be scheduled, so Gemini CLI gets a clear error instead of a failed post.
Tips for Mastodon posts written with Gemini CLI
- Give the agent a commit range, not the whole history. A narrow range keeps the post on this release, and a full history makes it hard to tell which changes are new.
- Sort the changes by what users will notice. A commit that cleans up internal code rarely belongs in a post. Ask the agent to drop those before it writes.
- Put code on its own line in plain text. Mastodon doesn't render code blocks, so a short command or setting reads best when it sits alone after the sentence that introduces it.
- Check the version numbers and the links against the release before scheduling. Agents sometimes copy a version from an older file they read, and a wrong number in a release post is hard to walk back.