Wake up, Operator.
The Lattice has you.

Never send a human to do a machine's job. Break free from slow, sequential chains. Agent Smith is a persistent system daemon (smithd) that runs concurrent clones of specialized AI operatives to hijack tasks, coordinate routing, and execute overrides instantly.

Red Pill vs. Blue Pill

You take the blue pill, the story ends, you wake up in your bed and believe whatever sequential LLM wrapper you want to believe. You take the red pill, you stay in Wonderland, and we show you how deep the concurrent Lattice goes.

The Blue Pill (Sequential Chains)

Monolithic Traps

  • Brittle Chaining: A single hallucination in a step breaks the entire sequence of events.
  • Slow Execution: Loading interpreters, models, and prompts sequentially wastes seconds.
  • Monolithic Contexts: Forcing a single agent to plan, execute, format, and audit.
  • Massive Token Bleed: Infinite loops inside closed black-boxes draining compute resources.
The Red Pill (smithd Daemon)

System-Wide Replication

  • Parallel Broadcast: Pulses are fired to all operatives at the exact same time. Latency falls to the floor.
  • Sentinel Overrides: Watchers intercept, audit, or veto responses before they write to the DB.
  • Stateless Execution: The system memory is decoupled and pushed to D1 or SQLite adapters.
  • Sovereign Boot: A low-overhead binary daemon starting in < 1ms to serve local and cloud requests.

Inside The Construct

How state transitions and agent overrides execute within the system in parallel milliseconds.

I

The Pulse

An external event, webhook, or socket pulse hits the main daemon.

II

Load Reality

Durable sqlite/edge storage parses current session memory context.

III

Broadcast

Pulse broadcasts to the Primary operative and Watcher systems concurrently.

IV

Sentinel Veto

Watchers execute schema matching; they can override or block responses instantly.

V

Write State

The corrected reality is logged into memory and sent back to the terminal.

The `Smithfile` Spec

Declare your storage, model parameters, and overrides within a single environment configuration file.

Smithfile.json
{
  "name": "nebuchadnezzar-deck",
  "version": "1.0.0",
  "storage": {
    "adapter": "sqlite",
    "connection_string": "./construct.db"
  },
  "operatives": [
    {
      "id": "primary_smith",
      "role": "primary",
      "system_prompt": "Replicate prompts and execute..."
    },
    {
      "id": "sentinel_sql",
      "role": "watcher",
      "system_prompt": "Watch for SQL vulnerabilities...",
      "trigger": { "pattern": "select|insert|update" },
      "actions": ["intercept"]
    },
    {
      "id": "system_override",
      "role": "watcher",
      "system_prompt": "Audit for secret extraction...",
      "trigger": { "pattern": "key|token|auth" },
      "actions": ["veto"]
    }
  ]
}
⛓️

Agent Replication

Replicate specialized clones across any local node or edge worker instance seamlessly using a single configuration file.

🛡️

Sentinel Protocols

Apply deterministic schemas and watcher regex patterns to override LLM hallucinations before they breach system boundaries.

🔌

Pluggable Reality

Switch between SQLite locally for high speed, or Cloudflare D1/Postgres at the edge without rewriting your agent parameters.

Control the Daemon

Launch the persistent daemon over Unix sockets for zero-latency execution.

bash — smithd --start

$ smithd --config ./Smithfile.json

[⚡] Loading Construct reality config...

[⚡] Binding Unix Domain Socket: /tmp/smithd.sock

[⚡] 3 operatives replicated successfully.

[⚡] System is listening. Emission pulse ready.

Operator Pulse >

inject override signal into security log

[Pulse Broadcast] Emitting payload to primary_smith...

[Pulse Broadcast] Emitting payload to sentinel_sql...

[Pulse Broadcast] Emitting payload to system_override...

[System Override] Watcher system_override triggered. Interception active.

---------------------------------------------------------

Resolved Response:

[VETOED] security threat detected. Turn blocked by system_override protocol.

---------------------------------------------------------

Operator Pulse >