Skip to content
langwatchPublic

About

Content writing framework for agents: a process your agent follows to write copy people read, with tools and research to pick up along the way.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Inkling's icon: a plush sloth at a small wooden desk writing with a dip pen beside a blue inkwell, a yellow INKLING tag stitched to the desk

Inkling

Inkling: content writing framework for agents.

Agents are great at writing code now, but still terrible at copy. This framework gets you and your agent to treat writing text like writing code: which tests can validate it? What would the audience reading it think? What is the goal we are trying to convey?

Agents stop once copy is accurate, because no test fails on it. You get a writing process your agent follows, tools it can pick up along the way, and the research behind both.

Inkling changes often. Agents that used it before run inkling whatsnew to see what to do differently, from the changelog.

Floor and ceiling

The floor is what a model writes by default: grammatical, average, AI slop. Inkling's lints and rules are a ratchet: as the piece climbs, they keep it from sliding back down. They don't lift it. The ceiling comes from contest: fresh writers start from different places, readers pick, and a draft gets thrown away when a better one wins.

Breaking the model's own default habits is the main point. Breaking an Inkling rule is allowed only with a strong reason, written into the draft as a waiver and checked by a judge that never saw the writer, because models skip rules they disagree with.

Watch the lesson

Title frame of the Inkling lesson video: the Inkling icon and the line a content writing framework for agents

A narrated video (6:50) on the six ways AI writing goes wrong and how this process fixes them, with chapters, captions and the full rule list. It opens in the team's Laze workspace.

The process

When your agent writes something people will read, it goes through nine steps:

  1. Who reads. A line on the reader: who they are, where they come from, what they know, what they are deciding. Readers come from the product's declared audience, and a reader file without one is refused.
  2. Which mind. Pick the mind the reader needs: a seller, an engineer, a lawyer, an investor, or more than one.
  3. The claim. The one thing the piece has to land, and what this reader would not expect.
  4. Reader tests first. Before any draft, write what each reader must take away.
  5. Directions. Fresh writers, each with one lens, write first screens that start from different places. Readers pick, and the best one or two grow into full drafts. The budget sets how many: one for a quick piece, five for one worth an hour.
  6. Draft. Explain it to one reader who asked, the way you would say it, in the reference voice, from memory and with no outline. Then shape it for the reader and trim whole repeats, never the "so" and "because".
  7. Check. Look for the phrasing reviewers rejected before: hedges, slogans, contrast formulas, crammed headlines.
  8. Reader test. Simulated readers read the draft as the person they play, knowing only what that person knows, and say what they would do next, where they would stop and which names they would have to look up. Fix what stopped them. When the feedback is about the piece rather than its lines, throw the draft away and go back to directions.
  9. Stop. Stop when the readers pass, or when the time you set runs out, and keep what readers still asked for the next piece.

Start

In Claude Code, Codex or any agent that can run commands, paste this:

Run npx -y @langwatch/inkling@latest docs process/README and follow that writing process to write

Then say what you want written. The agent reads the process from the package, and the same command gets it every page and tool it needs (npx -y @langwatch/inkling@latest docs lists them). It needs Node 22 or newer. If the agent can't tell who will read the piece, it asks you before it drafts.

@latest means the agent always runs the newest Inkling. An agent that used an older version runs inkling whatsnew to see what changed. If you installed it with npm install -g @langwatch/inkling, Inkling checks npm at most once an hour and prints one line when a newer version is out; it says nothing if the check fails, and INKLING_NO_UPDATE=1 turns it off.

In a chat app such as Claude or ChatGPT, turn on web access and paste this instead:

Follow the writing process at https://github.com/langwatch/inkling to write

Tools

The agent can pick these up at any step. None of them is required to follow the process.

Tool What it does Cost
Lint flags the phrasing reviewers rejected, with line, reason and fix free, under a second
Judge asks Jev, a small paid model, one yes or no question per rule and line, for problems a pattern cannot see about 0.0003 USD a paragraph, needs an application programming interface (API) key
Directions one fresh writer per lens writes a first screen, readers pick, the best grow into full drafts Claude subscription
Reader panel runs simulated readers from your reader tests, grades their answers, compares versions unlabelled, then one clean-eyes round Claude subscription
Waivers checks each deliberate rule break: a fresh judge must accept the reason, and readers must notice the line working Claude subscription
Predict flags a headline or lead that a model with only the brief would write too Claude subscription
Budget sets the time, stops at the best version, lists what is open free
Owner judge approves or rejects a title the way the person who signs off copy would, and passes nothing until it agrees with his held-out verdicts Claude subscription
Calibration measures the rules on lines people already approved and rejected free

Run them from any folder. They need Node 22 or newer:

npx -y @langwatch/inkling@latest check draft.md --mode ads --audience "founders who just searched for an agent sandbox"
npx -y @langwatch/inkling@latest judge draft.md --mode ads        # needs TYPESAFE_API_KEY and Python 3
npx -y @langwatch/inkling@latest readers panel start draft.md draft.readers.yaml --out runs/launch

The reader panel runs on a Claude subscription, through Claude Code subagents or claude -p, and refuses to start when a paid model provider key is set. The judge is the only tool that needs a paid key.

Use @latest so each run gets the newest rules. Once an hour Inkling also checks for a newer version and prints one line on stderr when there is one, then inkling whatsnew tells you what changed; INKLING_NO_UPDATE=1 turns the check off. For a clone instead (git clone https://github.com/langwatch/inkling && cd inkling && npm link), the line says when origin/main is ahead, and you pull.

A reviewer rejected the first three of these four titles:

inkling check examples/sandbox-titles/titles.md --mode ads \
  --audience "founders who just searched for an agent sandbox, deciding whether to click"
examples/sandbox-titles/titles.md:3:14  contrast/doesnt-need-needs
  > Your agent doesn't need a sandbox. It needs a team.
  why: "Doesn't need X. It needs Y." contrast formula.
  fix: Keep one flat claim: "You don't need an agent sandbox".

examples/sandbox-titles/titles.md:5:24  numbers/number-in-title
  > Dashboards come with 77 ready-made questions
  why: A bare count in the title reads as a listicle.
  fix: Title the claim; carry the count in the body with its comparison.

2 findings from 2 rules.

The first title crams two claims into one headline. That is a question of meaning, so the lint leaves it to the judge, which flags it as jev/crammed_claims. The fourth title, "You don't need an agent sandbox", gets no finding. The full output is in output.txt, and the Jev judge on the same titles is in judge-output.txt.

For a landing page, --mode landing --page <ad|home|product|guide|job> picks the kind: an ad page, the home page, a product page, a guide, or a page with one job such as pricing. Each kind has its own reader and structure checks, and all of them keep the problem short, without a button, and never show the same visual twice; see landing pages. Blog posts use --mode post.

A message to people who share your context (chat, a thread reply, an email to a teammate) uses --mode message, so it doesn't come out as a memo; see messages. A priced proposal for one buyer who asked for it uses --mode proposal; see proposals. For a text in another language, --lang pt-BR (or lang: in the front matter) switches the word lists, and language: in the readers file makes readers and grader answer in it. Readers are cold by default; set stance: warm only for an audience that knows us.

For a narrated lesson or video, --mode script --minutes 3, inkling voice and inkling readers listen check the script by ear; see spoken scripts and the talking-voice profile.

More tools: scenarios (checks Inkling itself: does a fresh agent reach the conclusions a person reached), reverse brief (how far Inkling's output is from a person's own writing, and where), preference judge, surprise, images, known false positives, LangWatch (every evaluation run kept as a LangWatch experiment, with a trace per row).

A company's own product names, figure components and audience words live in its house, outside the core; this repo ships the LangWatch house.

Research

What works today

The lint, judge, directions, reader panel, budget and calibration tools work and have tests (npm test). The preference judge is advisory until its pair set reaches 30 held-out pairs. Surprise is a design with a prototype. No preset is calibrated yet. The self-check records Inkling run on its own docs; see also the roadmap and credits.

About

Content writing framework for agents: a process your agent follows to write copy people read, with tools and research to pick up along the way.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages