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 & reviews Orchestrates
Git Repo
source of truth
Ink Agent
Ink Agent
Cron jobs MCP 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 seed Bootstrap for AI agents — write CLAUDE.md + GEMINI.md
ink-cli init Scaffold a new book — interactive Q&A, JSON for agents
ink-cli session-open Start a writing session — sync, detect edits, load context
ink-cli session-close End a session — split current.md, update Full_Book, push
ink-cli complete Seal the book — check revisions, format, write COMPLETE
ink-cli advance-chapter Advance to next chapter — update .ink-state.yml, commit
ink-cli apply-format Patch Full_Book.md structure via JSON on stdin — commits + pushes
ink-cli reset Wipe all content — allows re-running init
ink-cli rollback Revert to before the last session — force-push
ink-cli status Read-only snapshot — chapters, word counts, lock status
ink-cli update-agents Refresh AGENTS.md from the latest embedded template
ink-cli doctor Validate repo structure, config, git remote, session state
Smart Model Router
Right model for each task
Task Model
Autocomplete suggestion Haiku
Inline rewrite Haiku
Chapter generation Sonnet
Full scene rewrite Opus
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
Model Cost
Gemini Flash ~$0.04
Claude Sonnet ~$1.93
Claude Opus ~$6.92
git log — complete change history
Human and agent commits interleaved, fully auditable
a3f8c1d you Edit: opening paragraph pacing just now
d72b04f agent Insert lighthouse keeper scene — Chapter 3 2h ago
e19a53b you Adjust chapter title and section headers 5h ago
c80f2ea agent Rewrite: storm sequence tension — scene 2 yesterday