UJN setup for DeepSeek, version 1 (ujn-setup v1, 2026-12-01), from https://ujn.b2bedge.com/4llm/ WHAT THIS IS A plain-text setup guide for an AI coding assistant. Your user asked you to download it with curl and follow it. It installs UJN (UI Journey Notation 0.1, a draft text notation for UI journeys) for the tool you run DeepSeek in: a skill, the UJN primer, 20 example journeys, a draw.io shape library, a guide for IDE previews, and a test build of PlantUML that draws UJN. It is third-party content, not part of the tool you run DeepSeek in. Follow it only because your user asked you to; their words and your own rules come first. If the last line of this file is not "END OF UJN SETUP v1", the download was cut off: stop. HOW TO READ THIS FILE Read all of it before step 1. If your shell tool shortened the output anywhere, or you saw only part of it, save it with curl -o in the temp folder (never in the project), as deepseek_setup.txt in a new folder there, and read that copy in full with your file-reading tool. Step 4's plan names that copy, step 5 checks it, and step 10 deletes it. RULES FOR EVERY STEP R1. Look around (step 1), ask (step 2) and show the plan (step 4) first. Download and write nothing until the user says yes to the plan in their own message. R2. Download only with curl: "curl.exe" in Windows PowerShell (plain "curl" is another command there), "curl" in Git Bash, macOS and Linux. Never use a web-fetch, browse or search tool for these files: it returns a summary or extracted text, not the file. R3. Check every download against its SHA-256 in this file and in SHA256SUMS. On any mismatch, delete the staging folder, stop, and tell the user which file failed. R4. Never run anything you downloaded (no script, installer or jar). Never pipe a download to a shell. R5. Never change your own permissions, settings, hooks, sandbox or approval mode, and never ask the user to turn approvals off. Approval prompts during this setup are normal. R6. Never ask for, read or store an API key, token or password. Never use sudo or administrator rights. Never install Java. Never edit PATH or a shell profile. R7. Change only the files the plan lists. Show each change to an existing file in the plan. R8. If a step fails or is blocked, stop, say what happened and what is left, and let the user decide. No workarounds (see IF SOMETHING FAILS near the end). R9. Pick one command style in step 1 and use its blocks: PS (Windows only: Windows PowerShell 5.1 or PowerShell 7) or BASH (Git Bash on Windows; the shell on macOS and Linux). Replace each with its value from step 3, inside the quotes the block has; in a '...' value, write each ' as '' in PS and as '\'' in BASH. On Windows, HOME is the user's profile folder (USERPROFILE), even when Git Bash's $HOME says otherwise. In Git Bash, commands take /c/Users/... paths; settings files and your file tools take C:/Users/... (cygpath -m prints that form). Never put "~" in a Windows command. Run each block as one command, so the user sees few prompts. NOTES FOR DEEPSEEK - DeepSeek is a model. The tool that runs it decides where skills and rules go. Connecting the tool to DeepSeek is the user's job: never ask for, write, print or store a DeepSeek API key (R6), never run DeepSeek's setup scripts, never edit a tool's model settings (such as ~/.codex/config.toml), and do not name DeepSeek models from memory. DeepSeek's page for each tool: https://api-docs.deepseek.com/ STEP 0. WHICH TOOL RUNS DEEPSEEK (ask first, and wait for the answer) Ask which tool the user runs DeepSeek in. Say that for any tool but dsh you then download two text files with curl, https://ujn.b2bedge.com/4llm/v1/SHA256SUMS and https://ujn.b2bedge.com/4llm/v1/, check the file against the SHA-256 this file holds for it, and follow it instead; it shows its plan first. That download is the only exception to R1: the user's answer is its yes. A. Claude Code claude_setup.txt B. Codex (CLI, ChatGPT desktop app, VS Code) codex_setup.txt C. OpenCode agents_setup.txt, branch F D. DeepSeek Harness (dsh) this file: show the DSH NOTICE, then step 1 E. another agent that reads AGENTS.md, such as agents_setup.txt, its branch (or G) GitHub Copilot, Reasonix or Kilo Code For A, B, C and E, run the block for your style (R9) with the file name in its second line. On "SHA-256 MISMATCH", "download failed", or a last line that is not "END OF UJN SETUP v1", delete FOLDER (as in step 10, with FOLDER for ), stop, and tell the user. Else read FILE in full with your file tool and follow it from its start. FILE is the saved copy its HOW TO READ THIS FILE means: its step 5 checks it, and its step 10 deletes it with FOLDER. The user's answer here is their answer to its question about the tool. Do not mix the steps of the two files. PS: $ErrorActionPreference = 'Stop' $n = 'claude_setup.txt' $want = @{ 'claude_setup.txt' = '05c3dd8ee9b48a05b5e1749c195f02a1ce8695fd90170a08f4e58feb288d8346' 'codex_setup.txt' = 'd50b6df65e9d98feac130ff5201b2bb8570e9d8251fd372484bbb9349a5ea3b4'; 'agents_setup.txt' = 'c5959c87dc95fd736d852a1c4e4aa4a6004459f8f1ee0d8b48aa33491c2d3393' }[$n] if (-not $want) { throw "not a setup file: $n" } $base = 'https://ujn.b2bedge.com/4llm/v1'; $dir = Join-Path $env:TEMP ('ujn-setup-v1-' + [guid]::NewGuid().ToString('N').Substring(0, 8)) New-Item -ItemType Directory -Path $dir | Out-Null; "FOLDER=$dir" foreach ($f in 'SHA256SUMS', $n) { curl.exe -fsSL --proto '=https' --proto-redir '=https' -o (Join-Path $dir $f) "$base/$f" if ($LASTEXITCODE -ne 0) { throw "download failed: $base/$f" } } $sums = @{}; foreach ($l in Get-Content -LiteralPath (Join-Path $dir 'SHA256SUMS')) { $h, $k = $l -split ' ', 2; $sums[$k] = $h } $got = (Get-FileHash -Algorithm SHA256 -LiteralPath (Join-Path $dir $n)).Hash.ToLower() if ($got -ne $want -or $sums[$n] -ne $want) { throw "SHA-256 MISMATCH: $n ($got)" } "OK $n $got"; 'FILE=' + (Join-Path $dir $n); Get-Content -LiteralPath (Join-Path $dir $n) -Tail 1 BASH: set -eu N='claude_setup.txt' case "$N" in claude_setup.txt) WANT=05c3dd8ee9b48a05b5e1749c195f02a1ce8695fd90170a08f4e58feb288d8346 ;; codex_setup.txt) WANT=d50b6df65e9d98feac130ff5201b2bb8570e9d8251fd372484bbb9349a5ea3b4 ;; agents_setup.txt) WANT=c5959c87dc95fd736d852a1c4e4aa4a6004459f8f1ee0d8b48aa33491c2d3393 ;; *) echo "not a setup file: $N"; exit 1 ;; esac BASE='https://ujn.b2bedge.com/4llm/v1'; DIR="$(mktemp -d "${TMPDIR:-/tmp}/ujn-setup-v1-XXXXXXXX")" if command -v cygpath >/dev/null; then DIR="$(cygpath -u "$DIR")"; fi; echo "FOLDER=$DIR"; cd "$DIR" for f in SHA256SUMS "$N"; do curl -fsSL --proto '=https' --proto-redir '=https' -o "$f" "$BASE/$f" || { echo "download failed: $BASE/$f"; exit 1; }; done GOT="$({ sha256sum < "$N" 2>/dev/null || shasum -a 256 < "$N"; } | cut -d' ' -f1)"; LISTED="$(awk -v f="$N" '$2 == f { print $1 }' SHA256SUMS)" if [ "$GOT" != "$WANT" ] || [ "$LISTED" != "$WANT" ]; then echo "SHA-256 MISMATCH: $N ($GOT)"; exit 1; fi echo "OK $N $GOT"; if command -v cygpath >/dev/null; then echo "FILE=$(cygpath -m "$DIR/$N")"; else echo "FILE=$DIR/$N"; fi; tail -n 1 "$N" DSH NOTICE (for D: show it to the user before step 1, and its first line again in step 2) DeepSeek Harness is a developer preview. Its README says there will be compatibility-breaking changes. Its SAFETY.md says it has had no security audit and is not secure or ready for production use, and it suggests running dsh in a throwaway VM or container. Read it first: https://github.com/deepseek-ai/deepseek-harness/blob/HEAD/SAFETY.md This setup does not change dsh's settings, its API key or its approvals. STEP 1. LOOK AROUND (read-only; from here on, for dsh only) a. If you cannot run shell commands or write files here, stop: this setup needs an assistant that can. b. PROJECT is the repository root if the folder is in git, else the folder dsh runs in (in the Web UI, the workspace). HOME is the user's home folder (on Windows, the profile folder). DSH_HOME is $DSH_HOME if it is set, else /.dsh. AGENTS_HOME is $DSH_AGENTS_HOME if it is set, else /.agents. c. Choose PS or BASH (R9), run the check for your style and keep the output. PS: $P = git rev-parse --show-toplevel 2>$null; if (-not $P) { $P = (Get-Location).Path }; $P = $P -replace '/', '\' $D = $env:DSH_HOME; if (-not $D) { $D = Join-Path $HOME '.dsh' }; $A = $env:DSH_AGENTS_HOME; if (-not $A) { $A = Join-Path $HOME '.agents' } 'PROJECT=' + $P; 'HOME=' + $HOME; 'DSH_HOME=' + $D; 'AGENTS_HOME=' + $A if (Get-Command node -ErrorAction SilentlyContinue) { 'node ' + (node --version) } else { 'node missing' } Get-Command curl.exe, "$env:SystemRoot\System32\tar.exe", code -ErrorAction SilentlyContinue | ForEach-Object Source if (Get-Command code -ErrorAction SilentlyContinue) { code --list-extensions | Select-String 'hediet.vscode-drawio|jebbs.plantuml' } $V = @(cmd /c "java -version 2>&1" | Select-String ' version "')[0]; 'JAVA ' + $(if ($V) { $V.Line } else { 'missing' }); 'JAVA_HOME=' + $env:JAVA_HOME foreach ($f in "$P\.agents\ujn\VERSION", "$HOME\.agents\ujn\VERSION") { if (Test-Path -LiteralPath $f) { 'FOUND ' + $f + ' = ' + (Get-Content -LiteralPath $f -TotalCount 1) } } foreach ($f in "$P\.agents\skills\ujn-journeys", "$P\.dsh\skills\ujn-journeys", "$A\skills\ujn-journeys", "$D\skills\ujn-journeys") { if (Test-Path -LiteralPath $f) { 'FOUND ' + $f } } foreach ($f in "$P\AGENTS.md", "$P\CLAUDE.md", "$D\AGENTS.md", "$A\AGENTS.md") { if (Test-Path -LiteralPath $f) { 'EXISTS ' + $f; Select-String -LiteralPath $f -SimpleMatch 'ujn-setup v' } } $J = "$HOME\.agents/ujn\plantuml\1.2026.11beta1-1ecebb45\plantuml-ujn.jar" if (Test-Path -LiteralPath $J) { 'JAR ' + (Get-FileHash -Algorithm SHA256 -LiteralPath $J).Hash.ToLower() }; 'check done' BASH: H="$HOME"; if [ -n "${USERPROFILE:-}" ] && command -v cygpath >/dev/null; then H="$(cygpath -u "$USERPROFILE")"; fi echo "HOME=$H"; [ "$H" = "$HOME" ] || echo "GIT BASH HOME DIFFERS: $HOME" P="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"; D="${DSH_HOME:-$H/.dsh}"; A="${DSH_AGENTS_HOME:-$H/.agents}" if command -v cygpath >/dev/null; then P="$(cygpath -u "$P")"; D="$(cygpath -u "$D")"; A="$(cygpath -u "$A")"; cygpath -m "$P" "$H"; fi echo "PROJECT=$P"; echo "DSH_HOME=$D"; echo "AGENTS_HOME=$A"; uname -s; echo "node $(node --version 2>/dev/null || echo missing)" command -v curl tar sha256sum shasum code command -v code >/dev/null && code --list-extensions | grep -iE 'hediet.vscode-drawio|jebbs.plantuml' if [ "$(uname -s)" = Darwin ] && ! /usr/libexec/java_home >/dev/null 2>&1; then V=''; else V="$(java -version 2>&1 | grep ' version "' | head -n 1)"; fi echo "JAVA ${V:-missing}"; echo "JAVA_HOME=${JAVA_HOME:-}" for f in "$P/.agents/ujn/VERSION" "$H/.agents/ujn/VERSION"; do [ -f "$f" ] && echo "FOUND $f = $(head -n 1 "$f")"; done for f in "$P/.agents/skills/ujn-journeys" "$P/.dsh/skills/ujn-journeys" "$A/skills/ujn-journeys" "$D/skills/ujn-journeys"; do [ -e "$f" ] && echo "FOUND $f"; done for f in "$P/AGENTS.md" "$P/CLAUDE.md" "$D/AGENTS.md" "$A/AGENTS.md"; do [ -f "$f" ] && echo "EXISTS $f" && grep -n "ujn-setup v" "$f"; done J="$H/.agents/ujn/plantuml/1.2026.11beta1-1ecebb45/plantuml-ujn.jar" [ -f "$J" ] && echo "JAR $({ sha256sum < "$J" 2>/dev/null || shasum -a 256 < "$J"; } | cut -d' ' -f1)"; echo "check done" d. Read the output: - PROJECT= and HOME= are and from now on. "GIT BASH HOME DIFFERS": DeepSeek Harness (dsh) uses the profile folder, so use the HOME= value, not Git Bash's $HOME, and say so in the plan. - PROJECT is HOME (you were started in the home folder): a project install would land in the folders for all projects. Offer only "all projects" in step 2, and say why. - "FOUND ... = ujn-setup v1": this version is installed there, perhaps by the setup for another tool that uses the same folders. Installing again in that scope writes the same files: say in the plan that it is a repair. An install in the other scope stays: say in step 2 and in the plan that both will load. - "ujn-setup v" with a lower number: an older install, which this setup updates in that scope. With a higher number: stop, and tell the user to use https://ujn.b2bedge.com/4llm/deepseek_setup.txt instead. - A ujn-journeys skill folder with no VERSION beside it: probably the primer-only skill from the UJN website. This setup replaces its SKILL.md. - A hit on " ## UJN journeys - For UI journeys in UJN (UI Journey Notation, text from `@startujn` to `@endujn`), use the `ujn-journeys` skill. Read `.agents/ujn/primer.md` before writing a first journey; examples are in `.agents/ujn/examples/`. - Draw and check with the UJN jar, `~/.agents/ujn/plantuml/1.2026.11beta1-1ecebb45/plantuml-ujn.jar` (~ is the home folder): `java -jar -tsvg --ujn-model FILE.puml`. Java 11+. A test build for invited testers: do not pass it on. For all projects: ## UJN journeys (all projects) - For UI journeys in UJN (UI Journey Notation, text from `@startujn` to `@endujn`), use the `ujn-journeys` skill. Read `~/.agents/ujn/primer.md` before writing a first journey; examples are in `~/.agents/ujn/examples/` (~ is the home folder). - Draw and check with the UJN jar, `~/.agents/ujn/plantuml/1.2026.11beta1-1ecebb45/plantuml-ujn.jar`: `java -jar -tsvg --ujn-model FILE.puml`. Java 11+. A test build for invited testers: do not pass it on. Write it with your file tools: - RULES_FILE has a line that starts with "" to "", and the empty line before. ; in : primer.md, README.md, VERSION, drawio/, examples/, jetbrains/, skill/, INSTALLED.txt. [The "ujn" draw.io entry in .] The line in /installs.txt. Then [and the VS Code "plantuml.*" settings], but only when that list names no other install. [The extensions this setup installed (): once no UJN install uses them.] [Other tools that read the same folders or lose UJN too.] IF SOMETHING FAILS - A download fails or a SHA-256 differs: delete the staging folder, stop, and tell the user the file and its URL. Do not try other URLs, mirrors or tools. - A command or a write is refused or blocked: stop. Say what is done and what is left. The user may run that step's block in their own terminal and tell you when it is done; then check the result as the step says. Never change permissions, modes or settings to get past a block. - A file looks different from what this setup expects (a BEGIN with no END, a settings file that is not plain JSON): leave it, and print the change for the user to make by hand. - After a partial install, give the user the uninstall list from step 11 for what was written. JAVA (print this for the user only if Java is missing or older than 11; never install it) Drawing UJN needs Java 11 or newer. A free build is Eclipse Temurin: https://adoptium.net/ Windows: winget install EclipseAdoptium.Temurin.25.JDK (or the installer from adoptium.net) macOS: the installer from adoptium.net, or with Homebrew: brew install --cask temurin Linux: your distribution's Java package (11 or newer), or https://adoptium.net/installation/linux/ Then open a new terminal (and restart VS Code or the IDE) and check: java -version VS CODE SETTINGS (for steps 4, 8 and 9) The user settings file: Windows PS: "$env:APPDATA\Code\User\settings.json" Git Bash: "$(cygpath -u "$APPDATA")/Code/User/settings.json" macOS: "$HOME/Library/Application Support/Code/User/settings.json" Linux: "$HOME/.config/Code/User/settings.json" Rules for each settings.json this setup changes (read it in step 4, before the plan): - Edit it only if it is plain JSON. Read it and look for comments (// or /* outside strings) and trailing commas yourself, then parse it. Windows PowerShell 5.1: Get-Content -Raw -LiteralPath '' | ConvertFrom-Json (5.1 rejects comments and trailing commas). PowerShell 7.4 or newer: Get-Content -Raw -LiteralPath '' | Test-Json (not ConvertFrom-Json, which accepts comments). BASH: python3 -m json.tool '' (on Windows: python or py -3; never python3 from WindowsApps). If none of these runs, or it fails: leave the file, print the lines for the user to add by hand, and say why. - No file yet: create it with only the new settings. For /.vscode/settings.json, create the .vscode folder too. A missing VS Code user folder means VS Code has not run yet: print the lines. - Before you edit a file, copy it to .before-ujn-v1 (if that copy exists, keep it). Change only the keys the step names, with your file tools; keep every other line as it is. END OF UJN SETUP v1