Guides and reference
docs/README.md

Spectre 0.4.0 / Elixir · OTP · GAM

Spectre documentation

Start your first agent, trace an input to its reply, and integrate your own Elixir library.

From the first conversation to production integrations

Start with “Build your first AgentServer”. Then try delivery with consent, look up a callback, or connect your billing client.

  1. 01 / overview

    Spectre 0.4 documentation

    Start an agent in RAM, give it a command and observe which function answers. Your first run needs only Elixir and Spectre core.

  2. 02 / getting-started

    Build your first AgentServer

    Install Spectre, generate an Agent and Server, and receive your first asynchronous response without a model or database.

  3. 03 / handlers

    Follow one input from route to result

    Build an agent that answers “help” and asks for permission to simulate a delivery when you type “send”. Try both accepting and declining.

  4. 04 / server-callbacks

    Server callbacks, dispatch order and contracts

    Choose a callback by the event you need to handle. Look up who calls it, what it receives, what to return, and which options connect a route to the next piece o

  5. 05 / stack-tools

    When to use a Stack and how to add your invoice library

    Start without a Stack. Add one to install reusable capabilities, such as a helper that reads a draft from your billing system and proposes issuing it.

  6. 06 / architecture-gam

    Architecture and the Governed Act Model

    Understand Stack, Agent, Server and GAM before connecting an agent to consequential operations.

  7. 07 / routing

    Routing: patterns, vectors and classifiers

    Combine seven recognition strategies and application-owned providers without confusing route confidence with permission.

  8. 08 / training

    Intent datasets, embeddings and training

    Collect and review intent examples, prepare compatible vectors, and train local classifiers as separate operations.

  9. 09 / agent-to-agent

    Agent messaging and external human approval

    Connect independent agents while keeping execution authority, transport authentication and human consent separate.

  10. 10 / behaviours

    Behaviours and extension contracts

    Choose the smallest extension point for conversations, routing, inference, tools, persistence or a standalone GAM host.

  11. 11 / storage

    Storage, privacy and recovery

    Run in RAM or configure durable coordination, canonical GAM history and database-backed projections through one provider.

  12. 12 / mix-tasks

    Mix tasks and diagnostics

    Use the twelve core tasks to generate, inspect, evaluate and train agents, with explicit runtime and adapter requirements.

  13. 13 / ecosystem

    The optional Spectre ecosystem

    Install only the capabilities your application needs and verify the exact core and satellite versions together.

  14. 14 / recipes

    Practical AgentServer recipes

    Move from recognition to asynchronous tools, mounted Skills and governed proposals using tested reference workflows.

  15. 15 / testing-production

    Testing, profiling and production

    Test observable behavior and failure boundaries, measure real process memory, and deploy with explicit storage and authority policy.

  16. 16 / migration

    Migrating from 0.3 to 0.4

    Migrate conversation ownership and effect execution deliberately while retaining compatible older runtime integrations where required.