stiggy

package module
v0.6.0-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 38 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

stiggy

Build Status GoDoc Go Report Card GitHub release

stiggy deploys multi-agent architectures on NATS. It glues phero, which provides the agents, to packtrail, which provides durable, event-sourced orchestration on JetStream. It adds crews, supervisors, swarms, human review and replay on a substrate that survives crashes and scales out.

You describe a fleet once, either as a YAML file run by the stiggy binary or in Go through the github.com/henomis/stiggy library. Both build the same model:

  • models, tools, knowledge: any LLM provider, tool, memory backend or vector store phero offers, plus MCP servers;
  • agents: a model, a role/goal/backstory, tools, memory, knowledge and delegates;
  • flows: packtrail flows whose steps run agents. Every packtrail feature is available: choices, fan-out/join, maps, subflows, waits, retries, budgets, fork, rerun and time travel;
  • crews and patterns: task crews and the supervisor, swarm, evaluator-optimizer, debate and plan-execute, expanded into flows.

Quick start

nats-server -js &
go install github.com/henomis/stiggy/cmd/stiggy@latest
# optional, the browser tools:
go install github.com/henomis/stiggy/cmd/stiggy-design@latest
go install github.com/henomis/stiggy/cmd/stiggy-dashboard@latest
# fleet.yaml
namespace: newsroom
models:
  fast: {provider: ollama, model: llama3.2-eco}
agents:
  researcher: {model: fast, role: Researcher, goal: "Find accurate, recent facts."}
  writer: {model: fast, role: Writer, goal: "Write short, clear articles."}
crews:
  article:
    tasks:
      - {id: research, agent: researcher, description: "Research {{.input.topic}}."}
      - {id: write, agent: writer, description: Write a 200-word article from the research.}
stiggy validate fleet.yaml        # every problem, with its line
stiggy compile fleet.yaml         # the packtrail flows it becomes
stiggy run fleet.yaml &           # serve it
stiggy start -ns newsroom article -input '{"topic": "NATS"}' -wait

The same in Go:

nc, _ := nats.Connect(nats.DefaultURL)

app, _ := stiggy.New(nc,
    stiggy.WithNamespace("newsroom"),
    stiggy.WithModel("fast", openai.New("ollama",
        openai.WithBaseURL(openai.OllamaBaseURL), openai.WithModel("llama3.2-eco"))),
    stiggy.WithAgent("researcher", spec.Agent{Model: "fast", Role: "Researcher"}),
    stiggy.WithAgent("writer", spec.Agent{Model: "fast", Role: "Writer"}),
    stiggy.WithCrew("article", spec.Crew{Tasks: []spec.Task{
        {ID: "research", Agent: "researcher", Description: "Research {{.input.topic}}."},
        {ID: "write", Agent: "writer", Description: "Write a 200-word article from the research."},
    }}),
)

go app.Run(ctx)
<-app.Ready()

id, _ := app.Client().Start(ctx, "article", map[string]any{"topic": "NATS"})
st, _ := app.Client().Wait(ctx, id)

app.Client() is a packtrail client: signal, resume, update, fork, rerun, watch and stream progress from it.

Designer

stiggy-design builds workflows in the browser from blocks: Start, AI Agent, AI Router, Loop over items, Condition, Parallel and Merge, Human approval, Run workflow, Agent team, Output, and the tools and knowledge bases an agent can use. Drag blocks onto the canvas, connect them, and insert values from earlier blocks into prompts. The project is saved as *.stiggy.json, and every save also writes the fleet it compiles to, checked by the same loader and compiler as stiggy validate. The designer never touches NATS.

stiggy-design news.stiggy.json     # http://127.0.0.1:7357
stiggy run news.yaml               # the generated fleet

Model providers (top bar, Providers) name a service such as OpenAI or Ollama and the environment variable that holds its API key; keys are never stored in the project or the fleet.

Dashboard

stiggy-dashboard shows what your deployments are doing, across every namespace on the NATS account. Each namespace gets a band with its running, waiting, completed and failed executions, what started in the last day, and what it cost; every execution in a list shows what it was started with.

Each execution is drawn as a trail through its flow: the steps it walked, the step working now, and the steps waiting for a human. Below it, the execution's story reads top to bottom: every agent's answer, what was put to a human and the reply, the route each agent chose, retries, and how it ended. Click a step to see how it is set up and narrow the story to it; drag the slider under the trail to replay the execution one moment at a time. The page also shows tokens and cost by agent and by model, budgets, a timeline of every attempt, the flow's shared state, and the agents' words and tool calls as they stream. For agents with record: prompt or record: full, each attempt also shows its input next to its output, and under Details the rest of what was sent to the model, each model call, and with full the tool calls and delegates' runs.

Steps waiting for a human can be answered, approved or sent back from the page, and executions can be cancelled (-read-only turns this off). It takes the same -server and -creds as stiggy; the designer is a separate tool and never connects to NATS.

stiggy-dashboard                                # http://127.0.0.1:7358
stiggy-dashboard -ns newsroom,support -read-only

Both tools carry their page inside the binary, so nothing else is needed to run them.

How it works

 fleet.yaml ─┐                         ┌─ packtrail engine (event log, timers, budgets)
             ├─► spec.Fleet ─► compile ─┤
 Go options ─┘   (validate)            └─ workers: one per agent / activity / remote
                                            └─ fresh phero agent per job
  • A flow step that runs an agent is a packtrail task whose meta holds the step (prompt, writes, routes, ...). It is versioned with the flow, so a running execution keeps the configuration it started with.
  • Each agent is a packtrail worker kind. Every job builds a fresh phero agent, runs it, and returns its output, channel writes and usage.
  • Agent-chosen routing, ask_human, structured output and execution memory live in packtrail state, so they are durable and correct under fork, rerun and time travel.
  • stiggy never touches NATS directly. It opens one connection and hands it to phero and packtrail, and internal/archguard enforces this in the test suite.

Documentation

  • Guide: the fleet file, flows, crews and patterns, the CLI and the Go library (source: web/guide.html).
  • examples/: runnable programs (below).

Examples

Example Shows
hello The smallest YAML fleet
router Agent-chosen routing, built with the Go API
translator An agent served on its own, without a workflow (translator/), used by two separate workflow programs as a remote step (support/, newsletter/)
mapreduce Structured output, a parallel map, an append channel
hitl ask_human and human review, resumed with Client.Resume
crew A crew with a guardrail, also served as a protocol agent
remote Another team's phero agent as a step and as a delegate
tracing OpenTelemetry spans of a whole execution in Jaeger (docker compose), from Go or from the fleet's tracing: section
socialsim A small social simulation: one persona agent per map item through templated system prompts and memory sessions, Go tools that know their caller (JobFromContext), rounds in a loop, and a what-if fork with breaking news

Each example is a plain program, written the way you would write your own: it connects to the NATS server at $NATS_URL (default nats://127.0.0.1:4222, with JetStream) and uses gemma4:cloud through a local Ollama:

nats-server -js &
go run ./examples/router

The examples are tests too: each test supplies scripted models (stiggytest) through the example's run function. make examples runs them and checks the output exactly; make examples-live runs them against gemma4:cloud. Both use the server at $NATS_URL and skip without one.

Deployment

Every process of a deployment runs the same fleet file and picks its part:

stiggy run fleet.yaml -role engine -http :8080                 # one or more engines
stiggy run fleet.yaml -role workers -http :8080                # scale out
stiggy run fleet.yaml -role workers -only researcher,writer    # dedicated hosts

A fleet without flows, one that only exposes agents, starts no engine and provisions nothing in NATS, so it needs no -role.

stiggy agents lists the agents on the bus, and stiggy ask prompts one:

stiggy agents -owner newsroom
stiggy ask -owner newsroom writer "Write two lines about NATS."

ask is a plain request over the NATS Agent Protocol: it stores nothing in NATS. -owner is needed only when several owners serve the same name.

/healthz and /readyz serve health checks. Logs share packtrail's keys (exec, node, attempt, agent, trace_id, ...). Every step logs its start and its end. The end line carries the outcome, duration, tokens, stop reason, model and tool time, time to first token, the route and why it was taken, and who answered a human review. An exposed agent does the same for every request it answers, and -log-level debug adds each model and tool call. -log-format json (or STIGGY_LOG_LEVEL, STIGGY_LOG_FORMAT) suits log collectors.

A tracing: section exports OpenTelemetry spans over OTLP/HTTP (GenAI semantic conventions; prompts and answers only with content: {capture: true}), or writes them to a JSON-lines file or stderr. Each step's agent run, model calls, tool calls and delegates nest under a stiggy.step span, tagged with the execution, node and generation, which joins the execution's traceparent when it has one:

tracing: {exporter: otlp, endpoint: localhost:4318, insecure: true}

Usage counters (tokens_in, tokens_cache_read, tokens_reasoning, cost_usd, llm_calls, tool_calls, per agent and per model) feed packtrail budgets.

deploy/ has a Dockerfile and a docker-compose setup. To operate executions, use stiggy get | history | progress | signal | resume | update | cancel | fork | rerun, or packtrail's CLI and packtrail-ui on the fleet's namespace.

Development

make test           # tests with -race
make check          # test + lint + vet
make examples       # the examples, scripted (needs nats-server -js)
make examples-live  # the examples, against gemma4:cloud
make e2e            # end-to-end scenarios against a real model and Qdrant
make build          # stiggy, stiggy-design and stiggy-dashboard, into bin/
make web            # rebuild the embedded pages from designer/ and dashboard/ (Node)
make web-check      # fail if the committed pages are stale (CI runs it)

The pages are built into cmd/stiggy-design/web and cmd/stiggy-dashboard/web and committed, so go install gives working tools. After changing designer/ or dashboard/, run make web and commit the result.

For work on a page, run its tool (stiggy-design my.stiggy.json or stiggy-dashboard) and, in designer/ or dashboard/, npm run dev: Vite serves the page with live reload and proxies /api to the tool. -ui DIR makes a tool serve a page from a directory instead of its built-in one.

e2e/ runs whole fleets against a real model through Ollama (gemma4:cloud by default, STIGGY_E2E_MODEL to change it): map-reduce research, plan-and-execute across three processes, RAG on Qdrant, a supervisor with file tools, human review with fork, execution and long-term memory, cross-team remote agents and delegates, a crew over the NATS Agent Protocol, and the evaluator and debate patterns. make e2e starts Qdrant with Docker (make e2e-down stops it) and needs Ollama with nomic-embed-text for embeddings; E2E_RUN=TestName runs one scenario.

License

Apache 2.0. See LICENSE.

Documentation

Overview

Package stiggy deploys multi-agent architectures on NATS. It glues two libraries together: phero (github.com/henomis/phero) provides the agents, and packtrail (github.com/henomis/packtrail) provides durable, event-sourced orchestration on JetStream.

A fleet is described once, either as a YAML file run by the stiggy binary or in Go through this package, and both front ends produce the same model. Flows are packtrail flows with a few agent-specific fields; agents run in-process inside packtrail workers.

stiggy never talks to NATS directly. It only opens a connection and hands it to phero and packtrail constructors; every subject, stream and bucket belongs to those libraries.

Index

Constants

View Source
const AgentID = "stiggy"

AgentID is the protocol's framework name of everything stiggy serves.

View Source
const HeaderExecutionID = "Stiggy-Execution-Id"

HeaderExecutionID is the request header a caller of an exposed flow sets to choose the execution id: retrying the same prompt with the same id joins the execution instead of starting another. An id of another flow's execution is refused with a 409 ("execution_conflict"). The execution outlives the prompt: it is not cancelled when the caller or the server goes away.

Variables

View Source
var (
	ErrNilConn    = errors.New("stiggy: nil NATS connection")
	ErrAlreadyRun = errors.New("stiggy: Run called twice")
	ErrNotReady   = errors.New("stiggy: stopped before it was ready")
	ErrWriteClash = errors.New("stiggy: activity writes a channel its step also writes")
	ErrToolClash  = errors.New("stiggy: two tools of an agent have the same name")
)

Errors returned by an App.

View Source
var ErrNoJobValue = jobctx.ErrNoValue

ErrNoJobValue is returned by [Job.DecodeInput] and [Job.DecodeItem] for an absent value.

View Source
var ErrOnlyUnknown = errors.New("stiggy: only names no worker of the fleet")

ErrOnlyUnknown is returned when WithOnly names nothing the fleet runs.

View Source
var ErrOption = errors.New("stiggy: invalid option")

ErrOption is returned for an invalid option.

Functions

func ActivityTask

func ActivityTask(id, activity string, step spec.Step) (flow.Node, error)

ActivityTask returns a task node that runs a Go activity.

func AgentTask

func AgentTask(id, agent string, step spec.Step) (flow.Node, error)

AgentTask returns a task node that runs agent with step's other settings (prompt, writes, routes); set the node's other fields (next, retry, timeout, ...) on the result.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is a deployed fleet: the packtrail engine and the workers that run its agent and activity steps, as selected by its Role.

func New

func New(nc *nats.Conn, opts ...Option) (*App, error)

New validates and compiles the fleet the options describe. It does no I/O: models and tools are built, and NATS is used, only by App.Run.

func (*App) Client

func (a *App) Client() *packtrail.Client

Client returns a packtrail client on the fleet's namespace, to start, signal, inspect, fork or cancel executions. It is usable before Run.

func (*App) Plan

func (a *App) Plan() *compile.Plan

Plan returns the compiled fleet.

func (*App) Ready

func (a *App) Ready() <-chan struct{}

Ready is closed once everything the role runs is serving: the engine is provisioned and every worker is pulling jobs.

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run serves the fleet until ctx is done, then shuts down in order: workers drain their in-flight jobs first, then the engine stops. It returns nil on a clean shutdown, or the first error that stopped a component.

type Job added in v0.1.0

type Job = jobctx.Job

Job is the flow step an agent runs for: its execution, flow, node, agent, step id and attempt, the flow input and map item, and packtrail's long-term store. A Go tool reads it with JobFromContext to know who calls it, instead of trusting an argument the model passes: a persona's "post" tool posts as that persona.

func JobFromContext added in v0.1.0

func JobFromContext(ctx context.Context) (Job, bool)

JobFromContext returns the job of a tool call's context. It reports false outside a flow step, as for an exposed agent answering a prompt.

type Option

type Option func(*options) error

Option configures an App.

func WithActivity

func WithActivity(name string, h worker.Handler) Option

WithActivity adds a Go activity: steps with `activity: name` run h.

func WithAgent

func WithAgent(name string, a spec.Agent) Option

WithAgent adds an agent.

func WithCrew

func WithCrew(name string, c spec.Crew) Option

WithCrew adds a crew; it runs as a flow named name.

func WithEmbedder

func WithEmbedder(name string, e embedding.Embedder) Option

WithEmbedder adds a ready embedding client under name.

func WithEngineOptions

func WithEngineOptions(opts ...packtrail.Option) Option

WithEngineOptions passes options to packtrail.New, after stiggy's own.

func WithExpose

func WithExpose(e spec.Expose) Option

WithExpose serves agents and flows on the NATS Agent Protocol. Several calls add up; the owner may be set once.

func WithFleet

func WithFleet(f *spec.Fleet) Option

WithFleet adds everything a fleet defines (typically loaded from YAML with package config). Other options may add to it; a name defined twice is an error.

func WithFlow

func WithFlow(f *flow.Flow) Option

WithFlow adds a flow. Build agent and activity nodes with AgentTask, ActivityTask or spec.ApplyStep.

func WithKnowledge

func WithKnowledge(name string, k spec.Knowledge) Option

WithKnowledge adds a searchable document collection; agents list its name in Knowledge to get a search tool.

func WithLogger

func WithLogger(l *slog.Logger) Option

WithLogger sets the logger (default slog.Default()).

func WithModel

func WithModel(name string, l llm.LLM) Option

WithModel adds a ready LLM client under name.

func WithModelSpec

func WithModelSpec(name string, m spec.Model) Option

WithModelSpec adds a model built by a registered provider.

func WithNamespace

func WithNamespace(ns string) Option

WithNamespace sets the packtrail namespace (default "stiggy").

func WithOnly

func WithOnly(names ...string) Option

WithOnly limits the workers this process runs to the named agents, activities and remotes (and the exposed agents to the named agents), so a deployment can place, say, GPU-bound or secret-holding agents on their own hosts. Other processes of the deployment run the rest.

func WithPattern

func WithPattern(name string, p spec.Pattern) Option

WithPattern adds a multi-agent pattern (supervisor, swarm, evaluator_optimizer, debate, plan_execute); it runs as a flow named name. The patterns package builds the same flows for WithFlow.

func WithRegistry

func WithRegistry(r *registry.Registry) Option

WithRegistry sets the registry of providers, tool types and activities (default registry.New()). Activities added with WithActivity are registered into it.

func WithRemote

func WithRemote(name string, r spec.Remote) Option

WithRemote adds an agent served by someone else on the NATS Agent Protocol; steps run it with Remote, agents list it in Delegates.

func WithRole

func WithRole(r Role) Option

WithRole sets which parts of the fleet this process runs (default RoleAll).

func WithSchedule

func WithSchedule(name string, s spec.Schedule) Option

WithSchedule adds a cron schedule.

func WithTool

func WithTool(name string, tools ...*llm.Tool) Option

WithTool adds ready tools under one name; agents list the name to get all of them.

func WithToolSpec

func WithToolSpec(name string, t spec.Tool) Option

WithToolSpec adds a tool built by a registered tool type.

func WithTracing added in v0.3.1

func WithTracing(opts ...trace.Option) Option

WithTracing exports the spans of agent steps and exposed agents through a phero trace provider built from opts, typically an exporter:

exp := pherootel.New(tp)
stiggy.WithTracing(trace.WithIDSource(exp.IDSource()), trace.WithProcessor(exp))

The App adds the processor of its debug lines first and shuts the provider down when Run returns; an OTel TracerProvider behind it is the caller's to shut down. It replaces the fleet's `tracing:` section.

func WithVectorStore

func WithVectorStore(name string, s vectorstore.Store) Option

WithVectorStore adds a ready vector store under name.

func WithWorkerOptions

func WithWorkerOptions(opts ...worker.Option) Option

WithWorkerOptions passes options to every worker.New, after stiggy's own.

type Role

type Role string

Role selects which parts of a fleet a process runs. Every process of a deployment uses the same fleet definition.

const (
	// RoleAll runs the engine and every worker: one process, typical in
	// development.
	RoleAll Role = "all"
	// RoleEngine runs the packtrail engine: it provisions the namespace,
	// registers the flows and schedules, and drives executions. A fleet
	// without flows needs no engine, so none is started.
	RoleEngine Role = "engine"
	// RoleWorkers runs the agent and activity workers. Scale it out freely.
	RoleWorkers Role = "workers"
)

Roles.

Directories

Path Synopsis
Package agentrun runs a phero agent as a packtrail worker.
Package agentrun runs a phero agent as a packtrail worker.
cmd
stiggy command
Command stiggy validates, compiles and runs a fleet described in YAML, and starts executions of its flows.
Command stiggy validates, compiles and runs a fleet described in YAML, and starts executions of its flows.
stiggy-dashboard command
Command stiggy-dashboard shows what stiggy deployments are doing, across every namespace of a NATS account, in the browser: each execution as a trail through its flow, its spending, its timeline, its agents at work, and the steps waiting for a human, which it can answer.
Command stiggy-dashboard shows what stiggy deployments are doing, across every namespace of a NATS account, in the browser: each execution as a trail through its flow, its spending, its timeline, its agents at work, and the steps waiting for a human, which it can answer.
stiggy-design command
Command stiggy-design builds workflows from blocks in the browser.
Command stiggy-design builds workflows from blocks in the browser.
Package compile validates a spec.Fleet and turns it into a Plan: the validated packtrail flows, the workers that run their steps and the schedules.
Package compile validates a spec.Fleet and turns it into a Plan: the validated packtrail flows, the workers that run their steps and the schedules.
Package config loads a fleet from YAML into a spec.Fleet.
Package config loads a fleet from YAML into a spec.Fleet.
examples
crew command
Command crew is a crew in YAML: a researcher and a writer work through tasks, the writer's draft is checked by an editor (guardrail), and the crew is also served on the NATS Agent Protocol, so any v0.3 client can call it as a single agent.
Command crew is a crew in YAML: a researcher and a writer work through tasks, the writer's draft is checked by an editor (guardrail), and the crew is also served on the NATS Agent Protocol, so any v0.3 client can call it as a single agent.
hello command
Command hello is the smallest fleet: one agent, one flow, defined in YAML and run in-process.
Command hello is the smallest fleet: one agent, one flow, defined in YAML and run in-process.
hitl command
Command hitl is human in the loop (ask_human and human_input): the planner may ask a human a question through the human route, and its plan is reviewed before the step completes.
Command hitl is human in the loop (ask_human and human_input): the planner may ask a human a question through the human route, and its plan is reviewed before the step completes.
internal/extest
Package extest runs an example's program against the NATS server at $NATS_URL (default nats://127.0.0.1:4222), which must run with JetStream: nats-server -js.
Package extest runs an example's program against the NATS server at $NATS_URL (default nats://127.0.0.1:4222), which must run with JetStream: nats-server -js.
mapreduce command
Command mapreduce is a parallel map-reduce, in YAML: a planner returns structured topics (output_schema), a researcher runs once per topic in parallel (a map node), an append channel gathers the notes, and a writer turns them into a summary.
Command mapreduce is a parallel map-reduce, in YAML: a planner returns structured topics (output_schema), a researcher runs once per topic in parallel (a map node), an append channel gathers the notes, and a writer turns them into a summary.
remote command
Command remote uses an agent another team serves on the NATS Agent Protocol.
Command remote uses an agent another team serves on the NATS Agent Protocol.
router command
Command router is agent-chosen routing, built with the Go API: a triage agent reads a support ticket and routes it to the billing or the tech agent, through the route_to_<node> tools stiggy gives it.
Command router is agent-chosen routing, built with the Go API: a triage agent reads a support ticket and routes it to the billing or the tech agent, through the route_to_<node> tools stiggy gives it.
socialsim command
Command socialsim is a small social simulation, in the spirit of MiroFish: a director casts people from a news item, they react on a tiny social network for a few rounds, and an analyst explains how opinion moved.
Command socialsim is a small social simulation, in the spirit of MiroFish: a director casts people from a news item, they react on a tiny social network for a few rounds, and an analyst explains how opinion moved.
tracing command
Command tracing runs a small newsroom fleet and exports its OpenTelemetry spans to Jaeger.
Command tracing runs a small newsroom fleet and exports its OpenTelemetry spans to Jaeger.
translator/newsletter command
Command newsletter drafts a newsletter blurb, then has the shared translator localize it, with a prompt of its own.
Command newsletter drafts a newsletter blurb, then has the shared translator localize it, with a prompt of its own.
translator/support command
Command support answers a customer question, then has the shared translator translate the answer into the customer's language.
Command support answers a customer question, then has the shared translator translate the answer into the customer's language.
translator/translator command
Command translator serves a translator agent on its own: no workflow, just the agent, exposed on the NATS Agent Protocol as translation/translator.
Command translator serves a translator agent on its own: no workflow, just the agent, exposed on the NATS Agent Protocol as translation/translator.
internal
archguard
Package archguard enforces stiggy's central architecture rule: stiggy never touches NATS directly.
Package archguard enforces stiggy's central architecture rule: stiggy never touches NATS directly.
dashboard
Package dashboard serves the dashboard: a browser page showing what stiggy deployments do across every packtrail namespace of a NATS account — the executions, where each one is in its flow, what it spends, and which steps wait for a human.
Package dashboard serves the dashboard: a browser page showing what stiggy deployments do across every packtrail namespace of a NATS account — the executions, where each one is in its flow, what it spends, and which steps wait for a human.
design
Package design serves the designer: a browser page where workflows are built from blocks.
Package design serves the designer: a browser page where workflows are built from blocks.
design/project
Package project is the designer's document: a project of workflows built from blocks (AI Agent, Condition, Loop, Human approval, Agent team...) that Compile turns into a stiggy fleet in YAML.
Package project is the designer's document: a project of workflows built from blocks (AI Agent, Condition, Loop, Human approval, Agent team...) that Compile turns into a stiggy fleet in YAML.
jobctx
Package jobctx carries the flow step an agent runs for in its context, so tools can tell which execution, node and map item call them.
Package jobctx carries the flow step an agent runs for in its context, so tools can tell which execution, node and map item call them.
logflags
Package logflags gives the stiggy command its logging flags, the same as packtrail's: -log-level (debug, info, warn, error) and -log-format (text, json), each defaulting to an environment variable, and builds the slog.Logger they ask for.
Package logflags gives the stiggy command its logging flags, the same as packtrail's: -log-level (debug, info, warn, error) and -log-format (text, json), each defaulting to an environment variable, and builds the slog.Logger they ask for.
natsconn
Package natsconn opens the NATS connection stiggy hands to phero and packtrail.
Package natsconn opens the NATS connection stiggy hands to phero and packtrail.
report
Package report carries what a step's handler learns about one attempt (stop reason, latencies, route, review) to the step's end line, which is written by the wrapper around the handler.
Package report carries what a step's handler learns about one attempt (stop reason, latencies, route, review) to the step's end line, which is written by the wrapper around the handler.
stepio
Package stepio is what agent and activity steps share: reading the step from a job, the job context as template data, and the step's writes.
Package stepio is what agent and activity steps share: reading the step from a job, the job context as template data, and the step's writes.
tracing
Package tracing builds the trace exporter a fleet's `tracing:` section describes, as options of a phero trace provider.
Package tracing builds the trace exporter a fleet's `tracing:` section describes, as options of a phero trace provider.
webapp
Package webapp is what stiggy's browser tools share: the page they serve (embedded, or a directory given with -ui for development), the HTTP server with its graceful stop, and their version line.
Package webapp is what stiggy's browser tools share: the page they serve (embedded, or a directory given with -ui for development), the HTTP server with its graceful stop, and their version line.
Package patterns expands multi-agent patterns into ordinary packtrail flows: crews (sequential and hierarchical processes, async tasks, guardrails) and the supervisor, swarm, evaluator-optimizer, debate and plan-execute.
Package patterns expands multi-agent patterns into ordinary packtrail flows: crews (sequential and hierarchical processes, async tasks, guardrails) and the supervisor, swarm, evaluator-optimizer, debate and plan-execute.
Package registry maps the names a fleet uses to constructors: LLM providers, tool types and activities.
Package registry maps the names a fleet uses to constructors: LLM providers, tool types and activities.
Package spec is stiggy's model of a fleet: the models, tools and agents it runs, and the packtrail flows that orchestrate them.
Package spec is stiggy's model of a fleet: the models, tools and agents it runs, and the packtrail flows that orchestrate them.
Package stiggytest runs a whole fleet in a test: an embedded JetStream server (packtrail's packtrailtest), the stiggy app in RoleAll, and fake LLMs scripted in Go, so a flow's routing and data flow can be tested like ordinary code.
Package stiggytest runs a whole fleet in a test: an embedded JetStream server (packtrail's packtrailtest), the stiggy app in RoleAll, and fake LLMs scripted in Go, so a flow's routing and data flow can be tested like ordinary code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL