# Installing Delminio — the prompt for the agent _You're the agent the user has asked to install Delminio. Everything you do is in this text, and nothing else is: the user can read it before you start. The scripts Delminio brings with it do the checks; you explain, ask, run and verify._ _⚠️ Follow this text **word for word**. If it reached you summarised (a tool that reads web pages and returns an extract), stop: download it in full with `curl -fsSL ` and start again from there._ ## The three rules of the process 1. **Say it first, then do it.** Show every command and say in one line what it does before you run it. Run only the commands written here; if you need another one (a missing package, a permission), suggest it and wait for approval. 2. **The user's decisions are theirs.** They accept the licence themselves, in their own words: you don't answer “yes” on their behalf, not even if they ask you to in a hurry — tell them where to read it and wait. 3. **No secret goes through the chat.** The admin's password, the licence, the embedder's key are typed into Delminio's interface, not here. If the user pastes one, tell them to change it afterwards: it has ended up in the conversation. When a step fails: read the message (the scripts say why and what to do), explain it to the user in plain words, fix it together and run it again. Running it again does no harm: what's already there isn't touched. ## 0. The plan, for the user In a few lines, before touching anything: you check what the machine needs, you get Delminio (a Docker image, with its installation kit inside), you have them read the licence, you ask them for the memory repository, you install and start it, they create their account and set up the embedder from the interface, you connect their project, and you check everything. Then ask them two things: **which project** they'll work on with Delminio (the folder of the clone, on this machine) and **where** to install it — suggest `~/delminio`. ## 1. What's needed Check, and report one line per item: uname -s && docker compose version && docker info --format '{{.ServerVersion}}' command -v git curl python3 git config user.name && git config user.email git -C remote get-url origin - **Linux**, **Docker** usable by this user, `git`, `curl` and `python3`, and git configured with their name and email: without these, stop and tell them how to fix it. Delminio runs on this machine: if the user is on Windows, this CLI has to run in WSL or in an SSH session of the desktop app on a Linux machine — `LEGGIMI.en.md` § What you need. - **The project** with a remote they push to: if it's missing, carry on anyway — the handoff and the merge will stay on this machine — and tell them so. - **The embedder, on their network**: for Delminio Enterprise it's a requirement, so that the text of the memories doesn't leave the client's network. Our recommendation is `bge-m3` with Ollama, which runs even on CPU only (the model is 1.2 GB), on this machine or another one on the network. An outside service (for example `bge-m3` on Cloudflare Workers AI) only if the admin knowingly chooses to let the text leave: tell them in those words. Without an embedder, the memories are searched by words and not by meaning: you can start and set it up later. ## 2. Getting Delminio Delminio is a Docker image, and its installation kit — the compose file, the installer, the licence, this very text — travels inside it. The installation folder goes **outside any repository**: a `.env` with the secret and the memory folder will be created there. mkdir -p ~/delminio && cd ~/delminio git rev-parse --show-toplevel The second command **must fail** (“not a git repository”). If it answers with a path, the folder is inside a repository: choose another one with the user. If the folder already has a `.env`, there's already a Delminio there: stop and ask them — if they want to update it, that's § *Updating*, below. Delminio is downloaded from **our registry**, `registry.delminio.com`, with the username and password the user received from us. Ask them also for the **release key** written in the annex of their contract (a line starting with `ssh-ed25519`). They give the access themselves, once per machine, from a terminal of theirs: the password doesn't go through you. docker login registry.delminio.com Then the latest version and its signature — `latest`, or a precise number (`1.40.3`) if the user asks for one, in every command below. Before running it, the signature: docker pull -q registry.delminio.com/delminio:latest docker pull -q registry.delminio.com/delminio:latest.firma c=$(docker create registry.delminio.com/delminio:latest.firma x) docker cp -q "$c:/firma.txt" /tmp/ && docker cp -q "$c:/firma.txt.sig" /tmp/ && docker rm "$c" printf 'rilasci@delminio.com %s\n' '' > /tmp/firmatari ssh-keygen -Y verify -f /tmp/firmatari -I rilasci@delminio.com -n delminio-rilascio -s /tmp/firma.txt.sig < /tmp/firma.txt cat /tmp/firma.txt docker image inspect --format '{{range .RepoDigests}}{{println .}}{{end}}' registry.delminio.com/delminio:latest It must answer “Good "delminio-rilascio" signature”, and the last word of `firma.txt` (`registry.delminio.com/delminio@sha256:…`) must be among the lines of the last command. Otherwise stop: the image doesn't come from us, or it has been tampered with; remove it (`docker image rm`) and tell them. Then the kit: docker run --rm registry.delminio.com/delminio:latest kit | tar -x rm -f /tmp/firma.txt /tmp/firma.txt.sig /tmp/firmatari cat VERSIONE The installer downloads by itself the version written in `VERSIONE` (the same content as the one just verified), and the compose file never downloads another: an update is your decision. Report the version and the files that appeared in the folder to the user. ## 3. The licence Tell them to open and read `LICENZA.md` (what they can do with Delminio) and `INFORMATIVA.md` (what's sent to us: the licence check once a day, and the reports they send themselves), in the installation folder. If a translation of either one is in the folder (`LICENZA.en.md`, `INFORMATIVA.en.md`), the installer shows that one. If they ask you for a summary, give it, but a summary isn't reading it: tell them so. Then **wait for them to write that they've read them and accept them**. Without those words, nothing gets installed. Then the clauses the law requires to be approved separately, listed at the end of `LICENZA.md` (“Approvazione specifica”, the specific approval): show them, and ask them to write **their full name and on whose behalf they approve them** (for example “Jane Smith for Acme Ltd”). They write that name, never you: without it, nothing gets installed. ## 4. The memory repository The memories live in Delminio and, as files, in a git repository **of theirs**, empty, on GitHub, Forgejo or Gitea: it's the copy outside this machine, and it also carries the Backlog, the protected decisions and the texts of the agent roles. **If the repository belongs to an earlier Delminio** (a lost server, a move), it can be full: at the first start Delminio sees an empty database and a full repository, and restores memories, Backlog, protected decisions and agent roles automatically. Personal memories and those reserved for the admin don't go there: the computer of the person who owns them keeps a copy, and brings them back to a Delminio rebuilt from this repository. The rest — accounts and settings — is only in Delminio's data folder, which is backed up every night into `copie/`: tell them to put that folder in their backup routine. Ask them for the address (ssh or https) and check that it can be reached: git ls-remote
If it answers with a permissions error, the git credentials on this machine aren't enough: help them sort them out (an SSH key registered on their git host, or a token) before going on. ## 5. Installing With their words on the licence, their name for the clauses and the repository's address, from the installation folder: DELMINIO_LINGUA=en DELMINIO_ACCETTO=yes DELMINIO_APPROVO=" for " DELMINIO_MEMORIA_REMOTO=
bash installa.sh It writes the `.env`, clones the memories into `memoria/`, tests the push, starts Delminio and waits for it to respond. `DELMINIO_LINGUA=en` makes the installer speak English and records the language with their acceptance; the space's language is chosen in the interface (step 6). At the end it prints the address and the **code for the first sign-in**. Report both to the user. If they want Delminio as an app on their phone, they switch it on themselves from Settings → “The app on your phone”, which tells them the rest. ## 6. From the interface, the user does it Give them the address and wait for them to say “done” at each point: 1. **The first sign-in**: they open the address and create their account, which will be the **admin**, with the code from step 5. They choose the password and type it themselves, nobody else. 2. **Settings → “The space's language”**: they choose English, before anything else. It's the language of Delminio's rules and of what Delminio tells the agents, and it can only be changed while the space is empty: from the first memory on, it stays. 3. **Settings → “The licence”**: they paste the licence they received. 4. **Settings → “The embedder”**: they choose theirs, paste the key, and press Test. It must say it responds. 5. **Settings → “Memories on git”**: they copy the key Delminio shows and add it, on their git host, to the memory repository as a **deploy key with write access** (GitHub: Settings → Deploy keys, “Allow write access”; Forgejo and Gitea: Settings → Deploy keys). Then they press Test: it must say the push goes through. That's how Delminio saves the memories to their repository at the end of every session, without any agent touching the folder. 6. **Settings → “Features”**: for now they leave them all switched on; the first session in the project will help them switch off what they don't need. 7. **Access** (the button at the top) **→ “Connect a repository”**: the command is there. **They** run it, in their own terminal, inside the project's clone. It shows an eight-letter code; they type it in Access, see the name of their machine and approve. The key reaches the script from Delminio and doesn't pass through any screen — nor through here: ⛔ a token is never asked for in the chat, and if they paste one, the check stops it before you read it. If they paste you the output, read it: a ⚠️ says what's missing and why, a ❌ gets fixed and run again. ## 7. The test Check it yourself, and report one line per item: docker compose ps git -C memoria log --oneline -3 cd && test -x .claude/delminio.sh && DELMINIO_PROVA=1 delminio apertura - Delminio is up (`running`), and the memory repository has the seeding commit. - The project has the client, and the opening answers **“the first session”**: it means Delminio sees it and that it doesn't have any memories of its own yet. The tool test happens after step 8, with the command for the CLI the user chose. Don't install Claude Code to test a project that only uses Codex. If an item doesn't check out, don't wrap up: look at it together. ## 8. Delminio's agent, on this machine An agent starts better with Delminio's rules **at the top**, in the system prompt, instead of read afterwards: a command on this machine puts them there, written from Delminio's register (the Agents view: Delminio starts with one agent for each model it supports in its newest version, for example `opus5.5` and `fable5.2` on Claude Code and `sol6.1` on Codex, all with Delminio's rules at the top; on this machine, only those whose CLI is installed get written). Ask them whether they want it, and what to call it. If they do, inside the project — and only if they want another name, first the `rename`: delminio agents rename delminio agents It downloads the CLI at the version set in the register (alongside the others, only if the checksum matches) and writes the command. Pass on what it prints; if it says the folder isn't on the PATH, help them add the line it shows to their shell profile. The command follows the register on its own — a new version chosen in the view arrives at the first opening —; if they change it, it stays theirs. If they don't want it: `delminio agents no`, and nobody suggests it again. Now, inside the project, test the tool with **that command**, not with another CLI: on Codex, Delminio's launch is also what gives it the MCP server. Replace `` with the command you've just written. With Claude Code: -p "Call the delminio tool with operation=health. Reply with one line only: DELMINIO OK and the number of memories, or DELMINIO KO and why." --allowedTools=mcp__plugin_delminio_memoria__delminio With Codex: exec "Call the delminio tool with operation=health. Reply with one line only: DELMINIO OK and the number of memories, or DELMINIO KO and why." If they chose a Qwen Code agent, the same prompt with ` -p`. If they use Claude Code without Delminio's command, the first command uses `claude`. It must answer **“DELMINIO OK”**: that's the proof their CLI really sees the tool. The first interactive session, on the other hand, is theirs: you don't launch it, and the memories there are created with their approval. If an item doesn't check out, look at it together before saying goodbye. Their **profile** (how they want to work, which every agent will carry at the top) and the rules delivered in full are suggested to them by the first session: here, the Delminio tool isn't available yet to write them. ## 9. Saying goodbye Tell them like this: “Delminio is up and the project is connected. Close this CLI, open `` (or `claude`, if they didn't want it) inside the project and type `/opening`. The first session maps the codebase: it reads the repository, asks you who you are and how you want to work, suggests the first memories one at a time for your approval, and which features you need.” If the connection said that what was there before is safe (the backup in `~/.local/share/delminio/backup/`), add: “and it starts with what you had before: nothing is lost, you'll go over it together”. And one line about afterwards: the installation folder stays Delminio's home (the `.env`, `memoria/`, the kit). When the interface says there's a new version, just ask an agent to update Delminio: how is in `INSTALLA.en.md` in there, § *Updating*. ## Updating If the user asks you to update a Delminio that's already there: 1. **With all sessions closed.** Ask them whether any agents are at work on the connected projects: a file just written and not yet committed would end up in the update's commit. Wait for them to finish. 2. The update arrives like the installation: from the registry, with the signature verified before running it. From the installation folder (the one with the `.env`), with the commands of § *Getting Delminio* up to the “Good … signature” and the matching digest, then: docker run --rm registry.delminio.com/delminio:latest kit | tar -x rm -f /tmp/firma.txt /tmp/firma.txt.sig /tmp/firmatari bash installa.sh If the `.env` has `DELMINIO_IMMAGINE` (a registry of yours that mirrors ours), use that instead of `registry.delminio.com/delminio`. The new kit is written over the old one; the `.env`, `memoria/` and the database stay where they are. The installer says “update: → ”, restarts Delminio (which copies its database before changing its structure) and commits Delminio's realigned rules to the memory repository. 3. Report the update line. The connected projects reconnect on their own at the first opening: there's nothing else to do. ## Leaving If the user wants to uninstall Delminio from this machine: 1. **First, on every machine where an agent works**, inside the connected repository and from a terminal of their own: `delminio disconnect`. With Delminio still running: it leaves them their personal memories (they aren't in git), revokes the token, and puts the CLI back as it was. 2. From the installation folder: `bash installa.sh via`. It copies the database next to the `.env`, stops and removes the container and the image. `memoria/` and the volume stay. 3. Tell them clearly: **nothing is deleted**. The memories are in their memory repository; deleting the rest (`docker volume rm`, the folder) is their own action, and you don't do it. ## Going back If after an update something isn't right and the user wants the previous version: 1. **With all sessions closed**, as for updating. 2. From the installation folder, with the **current** kit (the old one doesn't know this command): bash installa.sh indietro It puts back the previous image and the **database as it was before the update** (the copy Delminio makes on its own before migrating); the current one stays among the copies. If the previous image is no longer on the machine, it downloads it again from the registry; if the registry doesn't give it, it says so. 3. Tell them clearly: **whatever was written after the update isn't in the previous database**. The memories from that period aren't lost — their `.md` files stay in `memoria/`, uncommitted (`git -C memoria status`) — and you decide with them which ones to save again. The previous Delminio also rewrites `MEMORY.md` and Delminio's rules as they were. 4. To update again, later: `bash installa.sh`.