Every feature is in service of clinical judgment.
Psygil is opinionated. It makes the right thing easy and the wrong thing impossible. AI organizes evidence. The clinician makes every decision the law cares about.
Decision gates stop the AI from diagnosing
The Diagnostician agent reads everything the clinician has gathered and proposes an evidence map. For every diagnosis it considers relevant, it shows the DSM-5-TR criteria, the ICD-10 code, and the supporting quotes pulled from the case file.
The agent does not diagnose. The clinician renders, defers, or rejects. The clinician can add diagnoses the agent missed. The clinician can override the agent on every line. Reasoning is captured in a clinical notes field, timestamped, signed, and written to the audit log.
The Writer agent refuses to run until at least one diagnosis has been rendered. There is no skip. There is no AI-only path. The doctor diagnoses, or the report does not exist.
The case begins where a real evaluation begins
A structured intake opens the moment a new case is created. Identity. Insurance. Court information. Charges. Referral question. Legal history. Family history. Medical history. Substance use. Presenting complaints. Recent events.
The clinician fills it in, not the AI. Psygil never guesses at facts the clinician has not entered. Every field is typed, every entry is timestamped, and every value is discoverable by the downstream agents and the eventual reviewer.
The clinician picks the tests. The clinician scores the tests
Psygil tracks every instrument administered, who scored it, when, and the result. For competency, that might mean the ECST-R and the MacCAT-CA. For risk, the HCR-20 or the Static-99R.
The AI does not pick the tests. The AI does not score the tests. The Ingestor agent reads referral letters, prior evaluations, medical records, and police reports, and produces a structured summary the clinician reviews before testing begins. From there, the decisions are the clinician's.
Psygil does not sit in. Psygil keeps the record
Psygil does not record audio. The clinician meets the defendant face to face, then enters structured mental status observations, behavioral notes, the defendant's account, and responses to competency or insanity questioning.
Every observation lives in one place. Every quote is tied back to the date and context it was recorded. When opposing counsel issues a discovery request, the clinician can produce the underlying record in minutes, not days.
Writer drafts. Editor checks. Clinician signs
With the clinical decisions made, the Writer agent drafts the report. It pulls language from the clinician's intake, the structured interview notes, the test results, and only the diagnoses the clinician has personally rendered.
The Editor agent reviews the draft for internal consistency, tone, and citation accuracy. The clinician reviews, edits language they disagree with, and attests. Attestation is a cryptographically signed, timestamped event tied to the clinician's identity. The report is locked. The audit log records every change from intake to signature.
Names never leave the laptop
Psygil runs Microsoft Presidio and a spaCy NER model locally in a sidecar process. PII detection, redaction, and rehydration all happen on the clinician's machine. Names, addresses, phone numbers, and identifiers are never sent to a remote service for detection.
When the AI agents run against remote model providers, Psygil redacts first and rehydrates on the clinician's side. The upstream model sees tokens, not patients.
Every decision, reproducible on demand
Every field entered, every test scored, every record ingested, every agent run, every diagnosis rendered, every draft revision, and every signature is written to an append-only audit log.
When a case ends up in court, the clinician can export a testimony package that includes the intake, test raw scores, interview notes, source documents, agent outputs, clinical decisions with rationale, report revisions, and cryptographic hashes for every file involved. Cross-examination becomes a matter of reading the record, not reconstructing it.
Watch a full evaluation run in three minutes
The demo walks through every stage from referral to attested report. The gate is visible. The decisions are visible. The chain of evidence is visible.