Vibecoding with Jennifer

Jennifer

Set up an AI coding assistant that writes Jennifer which really runs: the language reference, one instruction file, and a check loop.

by @mplx

Powered by Jennifer's Cantrip - Markdown into slide decks, https://github.com/jennifer-language/cantrip
1 / 21

What vibecoding means

What you need:

PieceHere
The languagejennifer, installed
An editorVS Code™, or none at all
An assistantClaude™ Code, or another one
The rule bookJENNIFER.md
2 / 21

The assistant has never seen Jennifer

Asked for "say hello to three names", with no help:

names = ["Ada", "Linus", "Grace"]
for name in names {
    print("Hello, " + name)
}
$ jennifer run guess.j
guess.j: parse error at ~/vibe/guess.j:1:7: expected SEMI to
terminate statement, got ASSIGN ("=")
3 / 21

A better guess is still a guess

Told "it is a bit like PHP", it gets closer:

use io;

def names = ["Ada", "Linus", "Grace"];
foreach ($names as $name) {
    io.println("Hello, $name");
}
guess2.j: parse error at ~/vibe/guess2.j:3:11: expected AS after
variable name, got ASSIGN ("=")
4 / 21

JENNIFER.md: the rule book

Installed withJENNIFER.md is at
Arch™, Debian™, Docker™/usr/share/doc/jennifer/JENNIFER.md
Homebrew™$(brew --prefix)/share/doc/jennifer/
Windows™ installerbeside jennifer.exe
5 / 21

The project folder

hello/
  JENNIFER.md     the language, copied from the install
  AGENTS.md       how to work in this project
  CLAUDE.md       one line: @AGENTS.md
  hello.j         your program
mkdir hello && cd hello
cp /usr/share/doc/jennifer/JENNIFER.md .
6 / 21

AGENTS.md: the house rules

This project is written in Jennifer, a language you have not
seen in training. Read JENNIFER.md before writing any .j code,
and first follow its sync steps (compare its last line with
`jennifer version`).

After every change to a .j file:
1. jennifer fmt -w <file>
2. jennifer lint <file>, and fix every warning
3. jennifer run <file>, or jennifer test <file>_test.j

Never guess a library function: look it up in JENNIFER.md.
If lint says a function does not exist, it does not.
7 / 21

Keeping the rule book current

The last line of JENNIFER.md records the version it matches:

<!-- jennifer-md-synced-for: 0.26.0 -->
8 / 21

The check loop

CommandCatches
jennifer fmt -w f.jlayout; rewrites the file in the standard style
jennifer lint f.jsyntax errors, unknown functions, likely bugs
jennifer run f.jwhat the program really does
jennifer test f_test.jwhether it still does what it should

The assistant runs these itself, reads the output, and fixes the code.

9 / 21

Claude Code in the terminal

curl -fsSL https://claude.ai/install.sh | bash   # install
cd hello
claude                                           # start, sign in once
10 / 21

Let it run the checks without asking

.claude/settings.json in the project:

{
  "permissions": {
    "allow": [
      "Bash(jennifer fmt:*)",
      "Bash(jennifer lint:*)",
      "Bash(jennifer run:*)",
      "Bash(jennifer test:*)"
    ]
  }
}
11 / 21

VS Code: two extensions

  1. Jennifer syntax highlighting, from the Jennifer repository (see the talk Syntax highlighting for Jennifer)
  2. An assistant, from the Extensions view:
    • Claude Code: the same assistant, in a side panel
    • GitHub™ Copilot™, or another one you like

Open the project folder (File, Open Folder), not a single file.

12 / 21

VS Code: point the assistant at the rules

AssistantReads
Claude Code extensionCLAUDE.md, as in the terminal
GitHub Copilot.github/copilot-instructions.md (copy AGENTS.md there), recent versions also AGENTS.md
Othersusually AGENTS.md; otherwise paste "read AGENTS.md first"

Allow the integrated terminal: the check loop runs there.

13 / 21

The first request

Write wordcount.j: read sample.txt and print how many words it holds. Run the check loop until it is clean.

14 / 21

The loop at work: first try

for (def word in strings.fields($text)) {
    $count++;
}
io.println("{$count} words");
$ jennifer lint wordcount.j
~/vibe/wordcount.j:8:12: error: unexpected token PLUS ("+")
in expression [L002]
      $count++;
15 / 21

The loop at work: unknown functions

$ jennifer lint wordcount.j
~/vibe/wordcount.j:7:18: warning: function `strings.fields`
does not exist [L114]
~/vibe/wordcount.j:10:1: warning: function `io.println` does
not exist - did you mean `io.printf`? [L114]
16 / 21

The loop at work: clean

use io;
use fs;
use regex;

def text as string init fs.readString("sample.txt");
def count as int init 0;
for (def word in regex.split('\s+', $text)) {
    if ($word != "") {
        $count = $count + 1;
    }
}
io.printf("{$count} words\n");

jennifer run wordcount.j prints 8 words.

17 / 21

Your part: read and judge

18 / 21

Safety

19 / 21

When it goes wrong

What you seeWhat to do
Code that looks like PythonIt skipped JENNIFER.md: "read JENNIFER.md first"
pragma or "not defined" errors after an upgradeLet it sync JENNIFER.md again
The same error over and overStop it; ask it to explain the error first
It edits files you did not mentionSay which files it may touch
20 / 21

Where to go next

Based on Jennifer 0.26.0, November 2026.

21 / 21