Alpha available

Your manuscript,
with a little help from AI

A collaborative Human-AI framework for writing books and novels. The agent runs writing sessions autonomously on any schedule, while the human review, author and instruct.

Ink Agent writing · Chapter 3
The lighthouse keeper had not spoken to another soul in forty-seven days. She kept a tally on the wall beside the foghorn controls — not out of loneliness, but as a kind of scientific observation. How long before silence becomes its own language?
Git as source of truth·MCP over SSE·Rust API·Open source

Set up in two commands

Install the CLI, then register the MCP server with your AI client. Your editor and the agent will share the same repo from the start.

1
Install the CLI
$ curl -fsSL https://raw.githubusercontent.com/\
    Philippe-arnd/Ink-Gateway/main/install.sh | bash
2
Add the MCP server — Claude Code
$ claude mcp add ink-gateway -- \
    ~/.local/bin/ink-gateway-mcp

Human and agent, same repository

Highlight passages you want reworked, set the agent's rules once, and every change lands as a git commit — yours and the agent's, side by side.

Human Writer
authors & reviewsOrchestrates
Git Repo
source of truth
Ink Agent
Ink Agent
Cron jobsMCP tools
Select to rework
Highlight any passage for the agent to rework with you instructions. The agent sees your selection and rewrites it in full manuscript context — no copy-paste.
Programmable rules
Define tone, style, and constraints once. The agent follows your rules on every call — consistent voice across all chapters.
Full git history
Human and agent commits coexist in the same repo. Diff, review, or revert any change with standard git tools.

Everything a writer needs, nothing more

Ink-Gateway is ruthlessly focused — a clean prose canvas and an agent that actually modifies your document. No formatting clutter, no distractions.

ink-cli commands
Available to any AI agent via MCP
ink-cli seedBootstrap for AI agents — write CLAUDE.md + GEMINI.md
ink-cli initScaffold a new book — interactive Q&A, JSON for agents
ink-cli session-openStart a writing session — sync, detect edits, load context
ink-cli session-closeEnd a session — split current.md, update Full_Book, push
ink-cli completeSeal the book — check revisions, format, write COMPLETE
ink-cli advance-chapterAdvance to next chapter — update .ink-state.yml, commit
ink-cli apply-formatPatch Full_Book.md structure via JSON on stdin — commits + pushes
ink-cli resetWipe all content — allows re-running init
ink-cli rollbackRevert to before the last session — force-push
ink-cli statusRead-only snapshot — chapters, word counts, lock status
ink-cli update-agentsRefresh AGENTS.md from the latest embedded template
ink-cli doctorValidate repo structure, config, git remote, session state
Smart Model Router
Right model for each task
TaskModel
Autocomplete suggestionHaiku
Inline rewriteHaiku
Chapter generationSonnet
Full scene rewriteOpus
Book Structure
Plain git repo, no magic
Global Material/
·Soul.mdvoice & tone
·Outline.mdplot arc
·Characters.mdprofiles & arcs
·Lore.mdworld-building
·Summary.mdsession log
·Config.ymllengths, structure
Chapters material/
·chapter outlines only
·.ink-state.ymlengine state
Review/
·current.mdrolling prose
Changelog/
·YYYY-MM-DD-HH-MM.md
Current version/
·Full_Book.mdvalidated prose
·COMPLETEwritten when done
Cost per 200-page book
Bring your own API key
ModelCost
Gemini Flash~$0.04
Claude Sonnet~$1.93
Claude Opus~$6.92
git log — complete change history
Human and agent commits interleaved, fully auditable
a3f8c1dyouEdit: opening paragraph pacingjust now
d72b04fagentInsert lighthouse keeper scene — Chapter 32h ago
e19a53byouAdjust chapter title and section headers5h ago
c80f2eaagentRewrite: storm sequence tension — scene 2yesterday