AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 14, 2026, 16:00 JST

Zenn writer lets AI agent draft every post via GitHub pull request

Send on LINE
Zenn writer lets AI agent draft every post via GitHub pull request

3 Key Points

  1. What happened

    The author linked a private GitHub repository to Zenn, had the agent draft the setup and a CLAUDE.md rule file, and published this very article as the first agent-written pull request.

  2. Why it matters

    Publication stays a human call, since articles must start as published: false and only a person can flip them to published: true — a guardrail the author says would vanish if agents published on their own.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The author's starting point was a habit of building something new before checking what already existed, so this time the options were listed first: writing in Zenn's web editor, pushing hand-written posts to a linked GitHub repository, or letting an agent write them. Zenn already offers an official GitHub integration, so the only missing piece was an agreement on what to delegate to the agent and what to keep for a person — and that agreement became a file.

The setup keeps one source of truth: a private repository holding articles, books, and images. A phone is where the author talks with the agent, a PC is where display is checked, and the repository lets any environment start from the same state without moving a conversation between devices. The first commit went straight to main because an empty repository has no branch to open a pull request against.

The rules also set boundaries on content: no information from the author's employer or work, no personally identifying details, no API keys or passwords, and no copying of others' text. Articles must distinguish things actually tried from things merely researched, and product specs must carry the date they were checked. Conversation logs tend to carry personal details, so the agent strips them at the draft stage — but the author kept the final check as human work, on the reasoning that handing publication to the agent would remove that checkpoint.

FAQ
How does the agent's draft reach Zenn before it is merged?
Zenn's "deploy drafts via PR" option is enabled, so a pull request arrives in Zenn's article dashboard as a draft that can be previewed before it is merged.
What caused the connection trouble when the agent tried to reach the repository?
Permissions given to Zenn and permissions given to the agent are separate, so the repository also had to be authorized on the agent's side of the GitHub integration.
What has not been verified yet?
The author has not yet checked previewing with the Zenn CLI on a PC, or whether a regularly scheduled agent can submit drafts under the same rules.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next article40% of game devs use generative AI, but 55% call it harmful