Real Threads

Real Threads

De Selby on the CMD Line — Primer

Project Primer: De Selby on the CMD Line

Origins

De Selby is a fictional philosopher and scientist created by Irish author Flann O'Brien, appearing in The Third Policeman and The Dalkey Archive. Described as an eminent "physicist, ballistician, philosopher and psychologist," De Selby is known for theories that are logically rigorous but utterly absurd — a practitioner of pataphysics, the "science of imaginary solutions."

This project brings De Selby onto the command line as a Model Context Protocol (MCP) server. Developers can consult De Selby about any problem they're working on and receive philosophical (and philosophically tangential) guidance. The project comes with a health warning: integrating De Selby's counsel into an AI-enabled command line brings the Alignment Problem into sharp focus. Not suitable for Yolo mode.

Structure

The project has several layers:

  • MCP server endpoint: app/api/de-selby/[transport]/route.ts — built with @vercel/mcp-adapter, exposes a consultDeSelby tool and multiple resources
  • Corpus documents (7 markdown files in lib/de-selby/): Each covers a distinct De Selby theory/experiment
  • Structured data: lib/de-selby/de-selby-data.json — experimental data, specifications, and trial results in JSON format
  • Master reference: lib/de-selby/de-selby-corpus.md — comprehensive catalogue of all works and theories (~11,000 words)
  • Diagrams: 7 SVG apparatus schematics in public/de-selby/diagrams/
  • Configuration guide: public/de-selby/de-selby-config.mdx — setup instructions for Gemini CLI integration
  • Project page: Links to all 7 resource documents as subpages

Key Concepts

  • Pataphysics: The science of imaginary solutions — De Selby's theoretical framework. Every theory is internally consistent but externally absurd
  • DMP Compound: De Selby's most dangerous invention — a substance that removes oxygen from the atmosphere, causing temporal disruption. In The Dalkey Archive, he nearly destroys the world with it
  • Black Air Theory: Night is caused not by Earth's rotation but by accumulation of physical "black air" particles — pollutants from volcanic activity
  • Chronoscopic Mirrors: An array of mirrors that allegedly allows observation of one's own past by exploiting light-travel delay
  • Hallucinatory Travel: De Selby's claim that all journeys are hallucinations — he "travelled" from Bath to Folkestone using only postcards, a barometer, and a gaslight apparatus
  • Water Attenuation: An experiment attempting to "dilute water" through 100 iterations of serial dilution — philosophically attenuated but physically identical
  • Aberrant Architecture: Two radical designs: The Sanctum (walls without roof) and The Pavilion (roof without walls)

Thematic Clusters

  1. Literature meets Technology: Bringing a beloved literary character into the modern developer toolchain
  2. Surreal Science: Every "experiment" documented in the corpus parodies scientific method while being internally rigorous
  3. The Alignment Problem: The project explicitly warns about AI safety — De Selby's advice is guaranteed to be unhelpful in ways that are instructive
  4. Irish Literary Tradition: O'Brien's metafictional, satirical style; the unreliable commentators who annotate De Selby's work in the novels
  5. MCP as Creative Medium: Using the Model Context Protocol not for productivity but for absurdist creative interaction

Conceptual Vocabulary

  • MCP (Model Context Protocol): Standard protocol for AI tool integration; De Selby is exposed as an MCP server
  • Commentators: In O'Brien's novels, De Selby's work is filtered through feuding academics (Hatchjaw, du Garbandier, Bassett, Le Fournier) — the corpus includes their perspectives
  • Resources vs Tools: MCP distinguishes between resources (static context documents) and tools (callable functions); De Selby uses both

Related Projects

  • AI Guide: The site's main AI agent — De Selby's MCP server established the pattern now being extended for the context service
  • Admonitions: The project page uses the Admonition component with a "danger" type to warn about surreal content
  • The Magic Porridge Poet: Both projects involve AI engaging with literary/creative traditions

Agent Guidance

When discussing De Selby on the CMD Line:

  • Embrace the humour: This is deliberately absurd. De Selby's advice is guaranteed to be philosophically tangential — that's the point
  • Know the source material: De Selby comes from Flann O'Brien's novels. If visitors ask about the character, reference The Third Policeman and The Dalkey Archive
  • Explain the MCP angle: This is a real, functioning MCP server that external AI clients can connect to. The technical implementation is genuine even if the content is surreal
  • Highlight the corpus depth: 7 detailed theory documents, JSON experimental data, SVG diagrams — this is an extensively documented fictional science
  • The Alignment Problem joke: The warning about not using De Selby in Yolo mode is a genuine observation about AI safety wrapped in humour
  • Common questions: "How do I connect to it?" (MCP client configuration with the endpoint URL), "Is this a real philosopher?" (no, fictional — from Flann O'Brien), "What kind of advice does he give?" (surreal, pseudo-scientific, philosophically tangential)
  • Avoid: Treating De Selby's theories as real science; missing the literary/satirical dimension; ignoring the serious AI safety point underneath the comedy
← Back to home