nightshift
Paused since 2026-08-31 — kept readable, not developed. The lab's active projects are lora-kernel, agentvcs and gene-evidence: evolvingagentslabs.github.io.
A procedural and epistemic memory engine.
A proof of concept, not a product.
Léeme en español

Status: M3 built — capture, retrieval and dream phase 1, as a Claude Code plugin.
The gate is make dogfood.
Everything on this page is a hypothesis about where this architecture fits, not a
record of what it has done. Capture has only ever run on this repository. The
consolidator and the retrieval were measured on all six domains below — but with
trajectories written by hand, and the held-out symptoms written by the same hand, so
that number is a ceiling and never transfer
(what came out).
Nobody has measured that it helps anywhere: verify does not exist,
nothing reaches procedure, and every memory it injects is unverified. Read them as
"this is the shape of problem the machine was built for", never as case studies.
The core of nightshift is not about code. Its actual capability is to capture the Chain
of Execution (CTE), distil it into an abstract mechanism — a physical scene — and
project future symptoms before they occur, preserving discarded alternatives together
with the preconditions that made them right.
Take nightshift out of the IDE and out of Claude Code, and these are the domains its
architecture is shaped for.
1 · Cybersecurity: threat hunting and incident response
SOC analysts chase anomalies. An attacker reuses the same underlying mechanism while
changing the face of the attack — the symptom.
- The trajectory: the analyst's sequence —
alert → log query → false hypothesis → network query → exfiltration found.
- The dream: draws the attacker's tactical mechanism ("the attacker uses a legitimate
pipe, but outside working hours").
- The projection: which other alerts this mechanism would raise — "CPU spikes on the
backup servers".
- The hook: when a junior analyst meets a projected symptom months later, the
procedure comes back: "someone already investigated this pattern; don't look at the
malware, look at the scheduled crons — and blocking the IP was discarded because it was
spoofed."
2 · Differential diagnosis in internal medicine
Clinical diagnosis is by definition a chain of execution: symptom → physical exam → lab
result (negative) → hypothesis corrected → diagnosis.
- Physical ideation, literally. A pathological process is a physical mechanism — "a
blocked valve building pressure upstream". This is the one domain where the default
medium is not a metaphor for the mechanism: it is the mechanism.
- The problem it targets: patients often present atypical symptoms of a common
disease, and those are exactly the ones a mechanism can project. On "shoulder pain +
hiccups", the trajectory that once traced it back to diaphragmatic irritation from a
hepatic problem would come back — before another shoulder X-ray gets ordered.
This one carries a caveat the others do not. A memory engine that suggests which tests
to skip is a clinical decision-support system, and those are regulated, validated and
audited. nightshift is none of those things and does not reach procedure: it would be
input to a clinician, never a recommendation, and it would need the verification stage
that is still unbuilt before anyone put it near a patient.
3 · Helpdesk: closing the gap from tier 3 to tier 1
Tier-3 engineers fix infrastructure problems that surface at tier 1 in ridiculous shapes —
"the print button is greyed out" because the billing microservice exhausted the
connection pool.
- The projection: tier 3 fixes the bug; the mechanism is dreamt and projects which
other tickets are about to arrive — "the mobile app will time out", "reports will
come back blank".
- The value: when the end user calls tier 1 about the mobile app, the paraphrase hooks
the procedural memory and the tier-1 agent gets the workaround instead of escalating.
4 · Industrial maintenance and robotics
The example in this repo's own store — "sieve with no hole: sealed drums travel down a
belt…" — is literally industrial maintenance.
- The trajectory: sensor readings plus operator actions —
stop motor → purge valve → error persists → change filter → resolved.
- The dream: abstracts the mechanical failure and projects which other sensors will
read anomalously if it recurs.
- Preconditions (capability B): "dropping the pump pressure cleared the alert, but it
was discarded because it slowed production. That path was right when the fluid was high
viscosity."