Docs · Learn
Copy as Markdown
Set up your AI assistant or harness
Tell your AI assistant or harness one sentence, and it installs UJN (UI Journey Notation) 0.1, a draft text notation for UI journeys, on your computer. It shows you its plan and waits for your yes before it downloads or changes anything.
UJN 0.1 draft · revision 23 · November 29, 2026 · Changes
Before you start#
You need:
- An AI assistant or harness on your own computer, such as Claude Code, Codex or Cursor, that can run shell commands and write files. In a cloud session, such as a Codex cloud task or Copilot's coding agent on github.com, the setup stops. claude_setup.txt also stops in a throwaway container.
- curl and tar. Windows 10 version 1803 and newer have both. If either is missing, the setup stops.
- Java 11 or newer, to draw and check journeys on the command line and in VS Code. The setup never installs Java. Without it, the setup still installs everything, and your assistant can still write journeys.
- Network access to ujn.b2bedge.com, where every file comes from.
A test build, for invited testers. The UJN module is not public, and there is no public build of it. This setup is how invited testers get a test build of PlantUML with the UJN module. It downloads plantuml-ujn-1.2026.11beta1-1ecebb45.jar (29.2 MB) and installs it as plantuml-ujn.jar in a folder named 1.2026.11beta1-1ecebb45 under your home folder. Please do not pass it on. A standard plantuml.jar cannot draw @startujn.
Pick your file#
Pick it by your harness, the tool that runs the AI model in your terminal or editor, not by the model.
| Assistant or harness | File |
|---|---|
| Claude Code | claude_setup.txt |
| Codex | codex_setup.txt |
| Kimi Code CLI | kimi_setup.txt |
| DeepSeek, in any tool | deepseek_setup.txt |
| Gemini CLI | agents_setup.txt |
| Antigravity CLI | agents_setup.txt |
| GitHub Copilot (Copilot CLI or VS Code) | agents_setup.txt |
| Cursor | agents_setup.txt |
| Windsurf | agents_setup.txt |
| OpenCode | agents_setup.txt |
| Kiro (the IDE or Kiro CLI) | agents_setup.txt |
| Another agent that reads AGENTS.md | agents_setup.txt |
A Kimi or DeepSeek model inside another tool, such as Claude Code, Codex or OpenCode: use that tool's file. For a DeepSeek model, deepseek_setup.txt also works. 4llm/README.txt has the same list as plain text, with Kiro under other agents that read AGENTS.md.
Tell your assistant one sentence#
Start your assistant in your project's folder (in an editor such as VS Code or Cursor, open that folder), then tell it this (here for Claude Code):
Download https://ujn.b2bedge.com/4llm/claude_setup.txt with curl, show me its plan, then follow it.For another assistant, put its file in place of claude_setup.txt, or copy its sentence on Goodies. The sentence names curl because a web-fetch or browse tool returns a summary of the page, not the file. Each setup file is plain text, so you can read it first.
What happens next#
- It reads the whole file, and stops if the last line is not
END OF UJN SETUP v1: the download was cut off. - agents_setup.txt and deepseek_setup.txt ask which tool you use (agents_setup.txt not if you named it already). For any tool but DeepSeek Harness (dsh), deepseek_setup.txt then downloads that tool's own setup file, checks its SHA-256 and follows it: your answer is the yes for that one download.
- It looks around, read-only: your folders, curl, tar, VS Code, Java and any earlier UJN install.
- It asks, in one message: this project only or all your projects; the draw.io shape library; and, if VS Code is installed, its PlantUML extension.
- It shows the plan and waits: each download with its SHA-256, and each file it creates or changes. Apart from step 2, and a copy of the setup file in your temp folder if the assistant's shell cut it short, nothing is downloaded or written until you say yes in your own message. If you change an answer, you get a new plan.
- It downloads with curl into a new staging folder in your temp folder. It checks the SHA-256 of the setup file, the kit and the jar against SHA256SUMS, and of the kit and the jar against the setup file too. Expect approval prompts for the downloads and the writes.
- It installs the files. The primer, the 20 example journeys, the draw.io library and a guide for editor previews (
README.md) go into a UJN folder, in the project or in your home folder. The skill is written with its paths filled in. The jar goes under your home folder, where every project shares it: one copy for Claude Code, one for all the other assistants. - It adds a pointer block to your assistant's instruction file, such as
CLAUDE.md,AGENTS.mdorGEMINI.md, between<!-- BEGIN ujn-setup v1 -->and<!-- END ujn-setup v1 -->. It points to the skill, the primer, the examples and the jar; nothing else in the file changes. - It sets up VS Code, if you said yes.
- It cleans up and sums up. It deletes the staging folder, writes
INSTALLED.txtwith what it changed, checks the install, and tells you where everything is and how to draw, update and remove.
It never changes your assistant's settings, permissions, sandbox or approval mode, never asks for a key, token or password, never uses administrator rights, never edits PATH or a shell profile, never installs Java, and never runs anything it downloaded.
Harness by harness#
~ is your home folder. "This project" is the git repository root, or the folder you started the assistant in if there is no repository. Claude Code always uses the folder you started it in.
The UJN folder is .claude/ujn (this project) or ~/.claude/ujn (all projects) for Claude Code. Every other assistant shares .agents/ujn or ~/.agents/ujn. In both scopes the jar is ~/.claude/ujn/plantuml/1.2026.11beta1-1ecebb45/plantuml-ujn.jar for Claude Code, and the same path under ~/.agents/ujn for the others. If a file the setup can use for that scope already has a UJN block, it replaces that block there; otherwise the block goes to the first file named below that applies. Copilot CLI, Cursor and OpenCode also read .claude/skills, so with the Claude Code setup installed too, they may list the skill twice.
Claude Code#
- This project: skill
.claude/skills/ujn-journeys, block in the first ofCLAUDE.md,.claude/CLAUDE.mdandAGENTS.mdthat exists, else in a newCLAUDE.md. - All projects: skill
~/.claude/skills/ujn-journeys, block~/.claude/CLAUDE.md. Not offered whenCLAUDE_CONFIG_DIRis set. - Writes to
.claudefolders ask for approval, or go to auto mode's checks. With the sandbox on, writes outside the project ask too. - Call the skill with
/ujn-journeys. To reload, run/reload-skillsor restart Claude Code.
Codex#
- For Codex on your computer: in a Codex cloud task, the setup stops.
- This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. - All projects: skill
~/.agents/skills/ujn-journeys, block~/.codex/AGENTS.md($CODEX_HOME/AGENTS.mdif you set CODEX_HOME). - A non-empty
AGENTS.override.mdgets the block instead, because Codex reads it in place of AGENTS.md. - Codex runs commands with network access off, so it asks before the downloads. It keeps the project's
.agentsfolder read-only, so it asks before writing there and before writing outside the project. In read-only mode, the setup stops. - In WSL, the files go into the Linux home, which Windows editors do not see.
- Call the skill with
$ujn-journeys, or pick it from/skills. To reload, restart Codex.
Kimi Code CLI#
- For Kimi Code CLI version 2 or newer:
kimi, with its data in~/.kimi-code. In the older Pythonkimi-cli(data in~/.kimi), the setup stops and points you to Kimi's migration guide. - This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. - All projects: skill
~/.agents/skills/ujn-journeys, block~/.kimi-code/AGENTS.md($KIMI_CODE_HOME/AGENTS.mdif you set KIMI_CODE_HOME). Kimi never reads CLAUDE.md. - Start kimi in its default mode, Always Ask. With
kimi -por--auto, nothing would ask first, so the setup stops. With--yolo, the plan still comes first. - Call the skill with
/skill:ujn-journeysor/ujn-journeys. To reload, run/reloador/new.
DeepSeek#
- Connecting your tool to DeepSeek is your job. The setup never asks for a DeepSeek API key, never runs DeepSeek's setup scripts and never edits a tool's model settings.
- For Claude Code, Codex, OpenCode or another agent that reads AGENTS.md, it follows that tool's setup file: see that tool's entry.
- For DeepSeek Harness (dsh), it installs UJN itself, after a notice: dsh is a developer preview, and its SAFETY.md says it has had no security audit.
- dsh, this project: skill
.agents/skills/ujn-journeys, blockAGENTS.md, never in CLAUDE.md. - dsh, all projects: skill
~/.agents/skills/ujn-journeys($DSH_AGENTS_HOME/skills/ujn-journeysif you set DSH_AGENTS_HOME), block~/.dsh/AGENTS.md($DSH_HOME/AGENTS.mdif you set DSH_HOME). - In dsh, ask for "ujn-journeys" to call the skill by name. To reload, start a new session; in the Web UI, with the project as its workspace.
Gemini CLI#
- This project: skill
.agents/skills/ujn-journeys, blockGEMINI.md. - All projects: skill
~/.agents/skills/ujn-journeys, block~/.gemini/GEMINI.md. - Since June 18, 2026, unpaid, Google One, Google AI Pro and Ultra, and Gemini Code Assist for individuals accounts get Antigravity CLI instead. Gemini CLI stays for paid API keys and Code Assist Standard and Enterprise. If your account moved, pick Antigravity CLI.
- To reload, run
/skills reloadand/memory reload.
Antigravity CLI#
- This project: skill
.agents/skills/ujn-journeys, blockGEMINI.mdif it exists, elseAGENTS.md. It reads both, so there is one block only. - All projects: skill
~/.gemini/config/skills/ujn-journeys, block~/.gemini/GEMINI.md. - In auto mode, commands in its sandbox run without asking, so the plan and your yes are the check. If the sandbox blocks a step, the setup stops. It never suggests
--dangerously-skip-permissions. - To reload, run
/skills reload.
GitHub Copilot#
- Copilot CLI, or Copilot in VS Code. The setup stops in Copilot's coding agent on github.com, which reads a committed project install but has no jar: it can write UJN, not draw it.
- This project: skill
.github/skills/ujn-journeys, blockAGENTS.md, or.github/copilot-instructions.mdif only that exists. - All projects: skill
~/.copilot/skills/ujn-journeys, block~/.copilot/copilot-instructions.md; if you set COPILOT_HOME, both go there instead. Whether VS Code reads that file is not confirmed. - Copilot CLI asks before each URL. To reload, start a new session (Copilot CLI) or a new chat (VS Code).
Cursor#
- Cursor, now Grok Build: the editor or the Terminal UI.
- This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. The Terminal UI does not read a project's.agents/skills, so in the Terminal UI, install for all projects. - All projects: skill
~/.agents/skills/ujn-journeys. The setup prints the block for you to paste into Customize > Rules (User Rules). - To reload, start a new chat.
Windsurf#
- Windsurf, now Devin Desktop.
- This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. - All projects: skill
~/.agents/skills/ujn-journeys, the folder Windsurf's skills page names. The setup prints the block for your global rules:~/.devin/global_rules.md, or Windsurf's own rules panel. Windsurf's FAQ names~/.codeium/windsurf/skillsinstead; if the skill does not show up, check there. The setup does not write to it. - To reload, start a new chat.
OpenCode#
- This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md, orCLAUDE.mdif only that exists. - All projects: skill
~/.agents/skills/ujn-journeys, block~/.config/opencode/AGENTS.md. - To reload, restart OpenCode.
Kiro#
- The Kiro IDE, or Kiro CLI (
kiro-cli;qstill works). The setup files do not list Kiro yet, so it takes the path for another agent that reads AGENTS.md. AddI use Kiro, an agent that reads AGENTS.md; its global rules file is ~/.kiro/steering/AGENTS.md.to the sentence, as the sentence on Goodies does, so the setup does not have to ask, and names that file when it prints the block. - Trust the workspace first: until you do, Kiro loads no steering files or skills from it. Use the default agent, because a custom agent loads steering files and skills only if its
resourceslist them. - This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. Kiro always includesAGENTS.mdat the root of the folder it works in, in the IDE and in Kiro CLI, so open the repository root in the Kiro IDE, or start Kiro CLI there. Kiro CLI 3.7.1 or newer also loads the skill. Kiro's docs name only.kiro/skillsand~/.kiro/skillsfor the Kiro IDE, so there the block, not the skill, sends Kiro to the primer. - All projects: skill
~/.agents/skills/ujn-journeys, which Kiro CLI 3.7.1 or newer loads. The setup prints the block: paste all of it, from the BEGIN line to the END line, into~/.kiro/steering/AGENTS.md, and create that folder and file if they are missing. Kiro includes it in every workspace. The setup does not keep track of that file: on an update, replace the old block there instead of adding a second one; to remove UJN, delete the block there, and the file if the block was all it held. - In Supervised and "Accept file changes" (called Autopilot before Kiro IDE 1.4.154), and in Kiro CLI, Kiro asks before curl and other commands unless a permission rule allows them. These prompts are normal: do not switch to "Approve for me",
--trust-all-toolsor/tools trust-all. - Not in a Kiro cloud session, Kiro Web or the autonomous agent: they run in a cloud sandbox, where the setup stops.
- To reload, restart the Kiro IDE or Kiro CLI.
Other agents that read AGENTS.md#
- This project: skill
.agents/skills/ujn-journeys, blockAGENTS.md. - All projects: skill
~/.agents/skills/ujn-journeys. The setup prints the block for the agent's global rules, if it has them. - An agent that does not read
.agents/skillsstill finds the primer through the block. To reload, restart the agent.
After the setup#
Ask for a journey in plain words, for example:
Write the UJN journey for our password reset.The ujn-journeys skill reads the primer first, then the closest example. You can also ask your assistant to draw a journey and fix its warnings, or to explain a warning.
Your assistant draws and checks with the jar. The setup's summary prints this command with your jar path:
java -jar "<jar path>" -tsvg journey.pumlIt writes journey.svg beside the file. --ujn-model also writes journey.ujn.json, with every node, arrow and warning. Warnings are not printed in the terminal: they show under the drawing and in the model, and they do not stop it. A syntax error does. Command line has more.
We have not measured how often assistants write UJN without mistakes, so check each journey: draw it, fix its warnings, and read it with the people who know the product. A journey with no warnings can still be the wrong journey.
To learn UJN yourself, read the primer, the same file your assistant reads, and the examples, the same 20 journeys the setup installs.
Previews in your editor#
VS Code#
If VS Code is installed, the setup offers the PlantUML extension by jebbs (jebbs.plantuml). On a yes, it installs the extension if needed and points it at the jar in your user settings: plantuml.jar, plantuml.render set to Local, and plantuml.java if it found Java only through JAVA_HOME. It first copies the file to settings.json.before-ujn-v1. If your settings file has comments or trailing commas, it changes nothing and prints the lines for you to add.
Open a .puml file with a @startujn journey and press Alt+D (Option+D on a Mac). The extension needs Java 11 or newer, on your PATH or set in plantuml.java. @startujn inside a Markdown file does not draw. Anything the jar prints to stderr makes the preview fail: run the java -jar command from After the setup in a terminal, and whatever it prints is the cause.
IntelliJ IDEA, PyCharm and other JetBrains IDEs#
The setup does not change your IDE. README.md in your UJN folder has the steps: install the plugin "PlantUML Integration" 7.14.0 or newer (IDE 2023.2 or newer), close the IDE, run the patch in jetbrains/ with Python 3.8 or newer, then enter the jar as a custom PlantUML jar in Settings, Languages & Frameworks, PlantUML. The plugin runs the jar inside the IDE, so it needs no separate Java. After a plugin update, run the patch again; --undo, with the IDE closed, puts the original back.
draw.io#
The UJN shape library is for drawing a journey by hand; draw.io does not check a drawing. The file is drawio/ujn-drawio-library.xml in your UJN folder.
- VS Code: if you said yes to draw.io, the setup adds the library to the draw.io extension (
hediet.vscode-drawio), and installs the extension if needed. For all projects the entry goes in your user settings. For this project it goes in the project's.vscode/settings.json, which VS Code uses only in a trusted folder. Open a.drawiofile; the shapes are under "UJN". - draw.io desktop: File > Open Library..., then pick the file.
- draw.io in a browser: File > Open Library from > Device, and pick the file. Or open app.diagrams.net with the UJN library (not tested yet). If it does not load, choose File > Open Library from > URL, and paste
https://ujn.b2bedge.com/4llm/v1/ujn-drawio-library.xml.
For a team#
Install for this project, and commit the UJN folder, the skill and the instruction file. Teammates who use the same assistant then get the skill and the pointer. The skill and the block use ~ or paths inside the project, so they work on a teammate's computer. INSTALLED.txt in the UJN folder lists your own full paths, for your own uninstall.
The jar is not in the project: never commit it or pass it on. Each teammate who has been invited tells their assistant the sentence once, to get the PlantUML build on their own computer.
Update or remove#
To update, tell your assistant the same sentence again. It finds the earlier install and shows its plan: the same version is a repair, an older one is updated. Old files that the new kit does not hold are deleted only if you say yes. A newer jar goes into a new folder; then point VS Code and your JetBrains IDE at it.
To remove UJN, ask your assistant to follow "Removing" in README.md in your UJN folder, or follow the list the setup printed at the end. INSTALLED.txt there lists what the setup changed. The JetBrains patch is undone first, and the jar goes only when no other UJN install uses it. If you pasted the block into your rules yourself, delete it there. Removing UJN from .agents folders or AGENTS.md removes it for every assistant that reads them.
Fixed copies of every file are in the folder 4llm/v1/ on the site, each listed with its SHA-256 in SHA256SUMS, and the setup downloads from there. The setup files in 4llm/ are always the same as the newest version there.
If something goes wrong#
- Java is missing or older than 11. The setup carries on and prints how to get Java, such as Eclipse Temurin from adoptium.net (
winget install EclipseAdoptium.Temurin.25.JDKon Windows,brew install --cask temurinon macOS, your distribution's Java package on Linux). Then open a new terminal, restart VS Code or your IDE, and checkjava -version. - The setup file was cut off. The assistant stops before it changes anything.
- A download fails, or a checksum does not match. The assistant deletes the staging folder, stops, and names the file and its URL. It never tries other URLs or mirrors.
- A step is blocked by a sandbox, a hook or a refused prompt. The assistant stops and says what is done and what is left. You can run that step's commands in your own terminal and tell it when you are done; it then checks the result. If only the temp folder is blocked, it asks whether to stage the downloads in the UJN
plantumlfolder in your home folder instead. - Approval prompts are normal. Each step runs as one command, so there are few.
- Something unexpected. A BEGIN line with no END line: the assistant changes nothing in that file, stops, and shows you those lines. A settings file that is not plain JSON, such as one with comments: it leaves the file and prints the lines for you to add by hand. A newer UJN install or a changed jar makes it stop and tell you. After a partial install, it gives you the list to remove what it wrote.
Set it up by hand#
An assistant can write UJN without the setup, but it cannot draw it or get the module's warnings: that needs the module, which is not public. The grammar kit checks the syntax only. To give an assistant UJN by hand:
- Paste the primer before you ask for a journey. The docs home has a button that copies it.
- Point it at llms.txt, or give it llms-full.txt, which holds the primer and the whole spec.
- Add the Agent Skill to an agent that supports Agent Skills.
- Paste the rules for AGENTS.md or CLAUDE.md into your repository's instruction file.