Release Themiz: Codex parity, local maintenance and Pantheon guides

This commit is contained in:
Зарубин Филипп
2026-09-08 23:33:39 +03:00
parent caa5af345f
commit e52e76d4ea
147 changed files with 17382 additions and 97119 deletions
+73 -60
View File
@@ -1,109 +1,122 @@
# Themiz: install by conversation
# Themiz: installation by conversation
<p align="center"><img src="assets/pantheon/emblem.png" alt="The Themiz emblem in white marble: scales and a lowered sword against a classical column" width="100%"></p>
<p align="center"><img src="assets/pantheon/emblem.png" alt="The Themiz emblem: marble scales and a sword by a column" width="100%"></p>
<!-- owner-greeting:start -->
Hello. I am Fil, a lawyer in Kazan, and I wrote Themiz for myself.
Hello. I am Fil, a lawyer. I created Themiz for my practice.
The mechanics of a case ate my evenings: two hundred pages of scans, checking dates, verifying
citations. Necessary work, but not the work anyone joins the profession for. Themiz took the
mechanics and left me the decisions.
I needed order in case materials, sources, and drafts. Themiz brings those stages together in one
workflow with a separate review. I make the legal-position and filing decisions.
I will walk you through the install step by step. Before each step I say what happens to your
machine, and I stop where the choice is yours. If something breaks, open an Issue: I read them.
Next, I will guide you through the installation. Before each action, I will tell you what will
change on your computer and what access is needed. If something does not work, write in Issues
what you ran and the response you received. Do not attach client materials there.
- Filipp Zarubin
<!-- owner-greeting:end -->
## Step 1: I look at what your machine already has
## Step 1: I check what is already on your machine
**What I do:** check the macOS version, Python 3.11 or newer, Xcode command line tools and
whether an agent CLI is installed. I install nothing here, I only look.
**What I do:** check the macOS version, whether Python 3.11 or newer is present, Xcode command
line tools, and an installed agent. I install nothing; I only inspect.
**Why:** scan recognition runs through Apple Vision, which lives only on a Mac. Better to learn
that now than halfway through.
**Why:** scan recognition uses Apple Vision, which is available only on a Mac. It is better to
learn that now than halfway through installation.
**What changes on disk:** nothing. This is reading.
**What changes on disk:** nothing. This is read-only.
**What you get:** a short list of what is missing, with one command per item.
**What you get:** a list of missing components and ways to install them.
**Fork:** no Mac at hand. Themiz still runs elsewhere, but it cannot read scans: recognition
drops out and everything else stays. Tell me whether we go that way or you come back with a Mac.
**Fork:** if you do not have a Mac, Apple Vision is unavailable. A full installation on Windows
and Linux has not yet been verified. We can separately check text extraction on your system or
continue on a Mac.
## Step 2: I install the dependencies
**What I do:** run `bash install.sh`. The installer moves in seven steps: Python packages, the
PT Serif font for court documents, Apple Vision recognition, ffmpeg for transcribing recordings,
script permissions, working directories and the agent CLI.
**What I do:** run `bash install.sh`. The installer has seven steps: Python packages, the PT
Serif font for court documents, Apple Vision recognition, ffmpeg for transcribing recordings,
script permissions, working directories, and an agent CLI.
**Why:** this is the body of Themiz. Without the packages no document is assembled, without the
font it will not look like a document, without ffmpeg a hearing recording stays unreadable.
**Why:** these components extract text and assemble documents. Audio also needs ffmpeg and a
local Whisper model. Local operations do not require a paid model API.
**What changes on disk:** Python packages into the project environment, the font into the system
font directory, working folders `cases/_logs`, `cases/_assets`, `knowledge` and an inbox folder
on your desktop. The installer asks permission before every step.
**What changes on disk:** Python packages in the project's `.venv`, the font in the user font
directory, working folders `cases/_logs`, `cases/_assets`, `knowledge`, and an inbox folder on
the desktop. Before running it, I explain what the installation includes. Access to the selected
agent and its subscription are configured separately.
**What you get:** a working install and a report on each of the seven steps.
**What you get:** the installer report. A check error or timeout remains in that report; a
successful package installation alone does not confirm that every external service is ready.
## Step 3: we choose how you will work
## Step 3: we choose how to run it
**What I do:** show four doors into the same house: `claude`, `codex`, `code .` for an editor,
and `python3 cockpit/app.py` for the browser panel with no agent at all.
**What I do:** activate the environment with `. .venv/bin/activate`. You choose one of two equal
clients: `codex` or `claude`. `code .` opens the project in an editor;
`.venv/bin/python cockpit/app.py` starts the local browser panel.
**Why:** the agents and the rules live inside the project, not inside one tool. You change the
tool, the house stays the same.
**Why:** the project includes rules and roles for Codex CLI and Claude Code. Each client needs
its own model access and available subscription limits.
**What changes on disk:** nothing. Choosing a door rewrites nothing.
**What changes on disk:** choosing a client does not change project settings.
The client and panel may create their own logs, working directories, and local state.
**What you get:** your familiar environment with the Themiz rules already loaded.
**What you get:** your chosen client for working with Themiz. I will check that it sees the
project rules.
**Fork:** you do not want an agent near case material at all. Then take the browser panel: it
shows the state of your cases and never calls a model.
**Fork:** if you do not permit a model provider to process case materials, we stay with local
extraction and viewing tools. Agent analysis is not local OCR. Task-launch buttons in the browser
panel currently call Claude Code; run Codex tasks from its CLI.
## Step 4: we open the first case
**What I do:** ask for the client and the matter, check conflict of interest against the
register of past cases, create the folder layout and move material in from the inbox.
**What I do:** ask for the client and the case, check conflicts of interest against the register
of prior cases, create the folder layout, and move materials from the inbox.
**Why:** conflict of interest is checked before the work, not after. If we once acted against
this person, I stop and say so.
**Why:** the local register helps spot matches before work begins. The program does not know
about cases absent from the register; you assess whether the conflict check is complete.
**What changes on disk:** a new folder `cases/{client}/{matter}` with directories for material,
drafts and finished documents. Your sources are copied, the originals stay where they are.
**What changes on disk:** a new `cases/{client}/{case}` folder with directories for materials,
drafts, and completed documents. Before moving files, we agree on their group; after intake, we
do not alter the source files in `00_intake/`.
**What you get:** an opened case and an honest answer on conflict of interest.
**What you get:** a case card and the check result based on the available local register.
## Step 5: I run the protocol
**What I do:** carry the case through five steps. A map of the material, a search for practice
both for you and against you, an agreed position, document drafts, and a review of every
document by a second agent.
**What I do:** prepare a map of the materials, check the availability of permitted sources,
search for arguments supporting and opposing your position, prepare a draft, and send it to a
separate reviewer. The scope of work and the council's composition depend on the case's
complexity.
**Why:** whoever wrote the document does not accept it. The reviewer reads the disk, not the
author's report, and the verdict is written by an instrument rather than by the reviewer.
**Why:** the person who wrote the document does not accept it. The reviewer reads the disk, not
the drafter's report, and an instrument records the verdict rather than the reviewer.
**What changes on disk:** the case map, the practice file, the position file, the drafts and the
verdict journal inside the case folder. Nothing leaves the case.
**What changes on disk:** a case map, a practice file, a position file, drafts, and a verdict log
inside the case folder. During agent analysis, the selected model provider processes the
fragments sent to it. We check permission for that processing before sending the materials.
**What you get:** a package of documents, each with a verdict and a trace of the review. The last
word stays yours: signing or rewriting is your call.
**What you get:** a draft and its review result, or a specific reason to stop. A missing source is
not treated as verified. Before signing and filing, you review the document yourself.
<p align="center"><img src="assets/pantheon/takt-en.png" alt="The Themiz tact as one wide marble scene: seven named steps from Intake to Hearing, tied by a blue thread" width="100%"></p>
<p align="center"><img src="assets/pantheon/takt-en.png" alt="Illustration of the Themiz workflow stages, not an application screenshot" width="100%"></p>
## Step 6: we make sure it is all alive
## Step 6: we make sure everything is working
**What I do:** run the instrument self-checks and show the state of the case in one command.
**What I do:** run instrument self-checks and show the case status with one command.
**Why:** a promise either holds or it does not. Checking is cheaper than believing.
**Why:** a promise either works or it does not. Checking is cheaper than believing.
**What changes on disk:** nothing beyond the run log.
**What changes on disk:** nothing except the run log.
**What you get:** a list of instruments with their exit codes and a case summary: which step is
closed, which is next, where material is missing.
**What you get:** a list of instruments with exit codes and a case summary: which step is closed,
which comes next, and where materials are missing.
If `bin/vision-doc` was built (requires macOS 26+), run `./bin/vision-doc --selftest`.
If only `vision-ocr` is available, check recognition with a safe test image;
that tool does not have a `--selftest` flag.
```bash
./bin/vision-doc --selftest
python3 scripts/themiz_status.py cases/{client}/{matter} --brief
python3 scripts/themiz_status.py cases/{client}/{case} --brief
```