Overview
-
module Brute-
class AgentAn agent is a Pipeline configured for LLM turns. It carries the
-
module Events-
class HandlerStackable event handler base class. Subclasses override the
-
class PrefixedTerminalOutputTerminalOutput variant that prefixes all output with a label.
-
class TerminalOutput
-
-
module Middleware-
class OtelSpanOutermost OTel middleware. Creates a span per LLM stack call
-
class ToolResultLoopRe-invokes the inner stack whenever the last message is a :tool result.
-
class SummarizeRuns a final tool-free LLM call after the ToolResultLoop completes,
-
class TracingLogs timing and token usage for every LLM call, and tracks cumulative
-
class MaxIterationsGuards against runaway tool loops by capping the number of iterations.
-
module OTel-
class TokenUsageRecords token usage from the LLM response as span attributes.
-
-
class SystemPromptPrepends a system message to env[:messages] before passing control
-
class CompactionCheckChecks context size after each LLM call and triggers compaction
-
class CompactorContext compaction service. When the conversation grows past configurable
-
-
class Question -
class ToolCallExecutes pending tool calls from the LLM response.
-
class OtelToolCallsRecords tool calls the LLM requested as span events.
-
class OtelToolResultsRecords tool results as span events.
-
class LLMCallTerminal middleware. Calls the LLM with the current conversation,
-
class EventHandler -
class UserQueue
-
-
class PipelineGeneric middleware machinery. Builds a chain of middleware around
-
class NullSinkDefault null sink for env[:events] — swallows anything pushed to it.
-
module Prompts-
module Autonomy -
module BuildSwitch -
module CodeReferences -
module CodeStyle -
module Conventions -
module DoingTasks -
module EditingApproach -
module EditingConstraints -
module Environment -
module FrontendTasks -
module GitSafety -
module Identity -
module Instructions -
module MaxSteps -
module Objectivity -
module PlanReminder -
module Proactiveness -
module SecurityAndSafety -
module Skills -
module TaskManagement -
module ToneAndStyle -
module ToolUsage
-
-
module Providers-
class ShellA pseudo-LLM provider that executes user input as code via the
-
class ModelListMinimal object that quacks like provider.models so the REPL's
-
class ShellResponseSynthetic completion response returned by Brute::Providers::Shell.
-
-
module Queue-
module FileMutationQueuePer-file serialization queue for concurrent tool execution.
-
-
class Session -
module SkillDiscovers and loads SKILL.md files from standard directories.
-
module Store-
module SnapshotStorePer-path stack of file snapshots used by fs_write, fs_patch, fs_remove
-
module TodoStoreIn-memory todo list storage. The agent uses this to track multi-step tasks.
-
-
class SubAgentA SubAgent is an Agent that exposes a tool-shaped facade so it can
-
class SystemPromptDeferred system prompt builder.
-
class ToolA Tool is a Pipeline configured for tool execution. The terminal app
-
module Tools-
class FSPatch -
class FSReadExisting features (ref: opencode read tool):
-
class FSRemove -
class FSSearchExisting features (ref: opencode grep tool):
-
class FSUndo -
class FSWrite -
class NetFetch -
class Question -
class ShellExisting features (ref: opencode bash tool):
-
class TodoRead -
class TodoWrite
-
-
module TruncationUniversal tool output truncation.
-
module Diff
-
-
test -
each