internal/

directory
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0

Directories

Path Synopsis
Package acp drives daemon sessions over the Agent Client Protocol on stdio.
Package acp drives daemon sessions over the Agent Client Protocol on stdio.
cli
Package cli provides the interactive inline CLI terminal application.
Package cli provides the interactive inline CLI terminal application.
command
Package command implements the REPL slash command system for the TaskSmith CLI.
Package command implements the REPL slash command system for the TaskSmith CLI.
components
Package components provides UI components for the repl terminal interface.
Package components provides UI components for the repl terminal interface.
store
Package store manages global application UI state for the REPL using kites.
Package store manages global application UI state for the REPL using kites.
Package cmd implements TaskSmith's command-line interface and commands built on github.com/spf13/cobra.
Package cmd implements TaskSmith's command-line interface and commands built on github.com/spf13/cobra.
core
diff
Package diff implements line-based text differencing, unified diff formatting, and line change statistics for TaskSmith.
Package diff implements line-based text differencing, unified diff formatting, and line change statistics for TaskSmith.
env
Package env provides pure, daemon-safe .env file parsing, merging, and atomic file updating into isolated in-memory maps.
Package env provides pure, daemon-safe .env file parsing, merging, and atomic file updating into isolated in-memory maps.
fsutils
Package fsutils provides filesystem path cleaning and normalization utilities.
Package fsutils provides filesystem path cleaning and normalization utilities.
guard
Package guard defines the foundational action classification, safety level, and protected workspace directory primitives shared across shellguard and tools.
Package guard defines the foundational action classification, safety level, and protected workspace directory primitives shared across shellguard and tools.
hash
Package hash provides dependency-light cryptographic digest helpers shared across daemon and client packages.
Package hash provides dependency-light cryptographic digest helpers shared across daemon and client packages.
log
Package log provides structured JSON Lines (JSONL) logging and size-based log file rotation for TaskSmith.
Package log provides structured JSON Lines (JSONL) logging and size-based log file rotation for TaskSmith.
memdb
Package memdb provides a generic, concurrency-safe, copy-on-write in-memory store following the point-in-time snapshot pattern.
Package memdb provides a generic, concurrency-safe, copy-on-write in-memory store following the point-in-time snapshot pattern.
mime
Package mime provides dependency-light magic-byte MIME sniffing and canonicalization for supported image, PDF, and audio media formats.
Package mime provides dependency-light magic-byte MIME sniffing and canonicalization for supported image, PDF, and audio media formats.
ptr
Package ptr provides generic pointer utility functions.
Package ptr provides generic pointer utility functions.
shellguard
Package shellguard provides static AST-based security analysis and command classification for shell execution in TaskSmith.
Package shellguard provides static AST-based security analysis and command classification for shell execution in TaskSmith.
sqlite
Package sqlite provides a standardized SQLite connection opener and a scoped, version-tracked schema migration runner built on modernc.org/sqlite.
Package sqlite provides a standardized SQLite connection opener and a scoped, version-tracked schema migration runner built on modernc.org/sqlite.
sys
Package sys provides low-level operating system helpers including file locks and Unix domain socket listeners.
Package sys provides low-level operating system helpers including file locks and Unix domain socket listeners.
tokenizer
Package tokenizer provides lightweight, code-calibrated token estimation for TaskSmith.
Package tokenizer provides lightweight, code-calibrated token estimation for TaskSmith.
uuid
Package uuid provides a simple wrapper around the github.com/google/uuid package to generate UUIDs.
Package uuid provides a simple wrapper around the github.com/google/uuid package to generate UUIDs.
vcs
Package vcs provides Git repository topology inspection and worktree, branch, diff, and status operations for TaskSmith workspaces.
Package vcs provides Git repository topology inspection and worktree, branch, diff, and status operations for TaskSmith workspaces.
web
Package web provides pure HTML search result parsing, URL normalization, domain filtering, and fetched content formatting (HTML-to-Markdown, HTML-to-Text, and JSON/XML pretty-printing) helpers.
Package web provides pure HTML search result parsing, URL normalization, domain filtering, and fetched content formatting (HTML-to-Markdown, HTML-to-Text, and JSON/XML pretty-printing) helpers.
xdg
Package xdg provides Neovim-inspired XDG Base Directory path resolution for TaskSmith.
Package xdg provides Neovim-inspired XDG Base Directory path resolution for TaskSmith.
Package daemon implements the TaskSmith Brain Daemon server, providing a single-instance background runtime over a Unix domain socket with HTTP/JSON endpoints and real-time Server-Sent Events (SSE).
Package daemon implements the TaskSmith Brain Daemon server, providing a single-instance background runtime over a Unix domain socket with HTTP/JSON endpoints and real-time Server-Sent Events (SSE).
broker
Package broker routes events to the subscribers that asked for them.
Package broker routes events to the subscribers that asked for them.
gateway
Package gateway manages model provider lifecycles and instantiates client interfaces for LLM completions, probabilistic decision models, and dense vector embeddings.
Package gateway manages model provider lifecycles and instantiates client interfaces for LLM completions, probabilistic decision models, and dense vector embeddings.
gateway/auth
Package auth resolves provider credentials and manages authentication transports and OAuth sessions for the TaskSmith gateway.
Package auth resolves provider credentials and manages authentication transports and OAuth sessions for the TaskSmith gateway.
gateway/providers
Package providers contains upstream-specific client adapters for the TaskSmith gateway.
Package providers contains upstream-specific client adapters for the TaskSmith gateway.
harness
Package harness orchestrates conversational and tool-augmented agent execution over a compiled github.com/masterkeysrd/loom/graph.Graph with durable SQLite-backed conversation state and permission checkpointing.
Package harness orchestrates conversational and tool-augmented agent execution over a compiled github.com/masterkeysrd/loom/graph.Graph with durable SQLite-backed conversation state and permission checkpointing.
journal
Package journal tracks per-session file reads and persists file change metadata in SQLite paired with content-addressable snapshots in the session's blobs directory, enabling on-demand diff generation, point-in-time recovery, and conflict-aware 3-way baseline reversion.
Package journal tracks per-session file reads and persists file change metadata in SQLite paired with content-addressable snapshots in the session's blobs directory, enabling on-demand diff generation, point-in-time recovery, and conflict-aware 3-way baseline reversion.
mcp
Package mcp owns the live lifecycle of the MCP servers a workspace declares.
Package mcp owns the live lifecycle of the MCP servers a workspace declares.
media
Package media implements content-addressed storage, magic-byte format detection, per-modality size limits, and lightweight message-block descriptors for multimodal inputs (images, PDFs, and audio).
Package media implements content-addressed storage, magic-byte format detection, per-modality size limits, and lightweight message-block descriptors for multimodal inputs (images, PDFs, and audio).
metrics
Package metrics provides an asynchronous, SQLite-backed system for recording and querying operational measurements across LLM calls, tool executions, and file changes, and for aggregating them into per-session and cross-session usage summaries.
Package metrics provides an asynchronous, SQLite-backed system for recording and querying operational measurements across LLM calls, tool executions, and file changes, and for aggregating them into per-session and cross-session usage summaries.
models
Package models provides a single, effective description of a model within a workspace.
Package models provides a single, effective description of a model within a workspace.
permissions
Package permissions implements the daemon's permission gate: it evaluates planned tool invocations against workspace policies, the active permission mode, safety classifications, and allow/deny rules, minting a github.com/masterkeysrd/tasksmith/api.PermissionRequest whenever a human decision is required.
Package permissions implements the daemon's permission gate: it evaluates planned tool invocations against workspace policies, the active permission mode, safety classifications, and allow/deny rules, minting a github.com/masterkeysrd/tasksmith/api.PermissionRequest whenever a human decision is required.
permreview
Package permreview hosts the daemon-owned Permission Review Service: a calibrated, one-shot decision-model reviewer that evaluates risky permission cards in auto mode before the human is interrupted.
Package permreview hosts the daemon-owned Permission Review Service: a calibrated, one-shot decision-model reviewer that evaluates risky permission cards in auto mode before the human is interrupted.
sandbox
Package sandbox provides an OS-level virtualized execution environment with strict confinement across three foundational capabilities: Filesystem (FS), Process execution (Proc), and Network access (Net).
Package sandbox provides an OS-level virtualized execution environment with strict confinement across three foundational capabilities: Filesystem (FS), Process execution (Proc), and Network access (Net).
sandboxcfg
Package sandboxcfg persists and merges the user-facing sandbox.json configuration layer that decides *what* the kernel boundary allows once a process runs (mode, availability locks, unsandboxed escape hatches, and filesystem/network overrides).
Package sandboxcfg persists and merges the user-facing sandbox.json configuration layer that decides *what* the kernel boundary allows once a process runs (mode, availability locks, unsandboxed escape hatches, and filesystem/network overrides).
scope
Package scope carries session-, turn-, and tool-scoped metadata through context.Context so that subsystems (journal, metrics, sandbox, and others) can attribute their work without explicit parameter passing.
Package scope carries session-, turn-, and tool-scoped metadata through context.Context so that subsystems (journal, metrics, sandbox, and others) can attribute their work without explicit parameter passing.
server
Package server implements the HTTP server layer for the TaskSmith Brain Daemon, providing pluggable modular routers, Server-Sent Events (SSE) streaming, and REST routes that serve the daemon to its clients.
Package server implements the HTTP server layer for the TaskSmith Brain Daemon, providing pluggable modular routers, Server-Sent Events (SSE) streaming, and REST routes that serve the daemon to its clients.
session
Package session manages user-facing chat threads, session metadata, persistent per-session file change journals, per-session tool containers and permission gates, and the chronological session timeline stored in SQLite, resolving workspace agents, system prompts, and language models per session and executing conversational turns through github.com/masterkeysrd/tasksmith/internal/daemon/harness.Harness.
Package session manages user-facing chat threads, session metadata, persistent per-session file change journals, per-session tool containers and permission gates, and the chronological session timeline stored in SQLite, resolving workspace agents, system prompts, and language models per session and executing conversational turns through github.com/masterkeysrd/tasksmith/internal/daemon/harness.Harness.
std
Package std provides TaskSmith's Standard Operations Library for executing filesystem, process, and network operations strictly within an isolated sandbox.Sandbox.
Package std provides TaskSmith's Standard Operations Library for executing filesystem, process, and network operations strictly within an isolated sandbox.Sandbox.
tasks
Package tasks provides the daemon's background task management and execution, used to run workloads (notably the `bash` tool) that may outlive the synchronous wait window of a single tool call.
Package tasks provides the daemon's background task management and execution, used to run workloads (notably the `bash` tool) that may outlive the synchronous wait window of a single tool call.
timeline
Package timeline manages the persistent, append-only chronological log of session events (messages, model/effort/agent/mode transitions, and permission resolutions) stored in the timeline SQLite table, ordered by UUIDv7 id ASC.
Package timeline manages the persistent, append-only chronological log of session events (messages, model/effort/agent/mode transitions, and permission resolutions) stored in the timeline SQLite table, ordered by UUIDv7 id ASC.
tools
Package tools provides TaskSmith's generic tool execution container, typed tool specification builder, custom workspace command tool adapter, and session permission and policy evaluation gate.
Package tools provides TaskSmith's generic tool execution container, typed tool specification builder, custom workspace command tool adapter, and session permission and policy evaluation gate.
tools/builtin
Package builtin provides the embedded WARP tool manifests (*.tool.md), generated tool-name constants, and standard library adapters for Tasksmith's built-in system tools (view, ls, glob, grep, write, edit, remove, bash, web_fetch, and download).
Package builtin provides the embedded WARP tool manifests (*.tool.md), generated tool-name constants, and standard library adapters for Tasksmith's built-in system tools (view, ls, glob, grep, write, edit, remove, bash, web_fetch, and download).
workspace
Package workspace manages the discovery, loading, resolution, and rendering of declarative TaskSmith workspace configurations and resources.
Package workspace manages the discovery, loading, resolution, and rendering of declarative TaskSmith workspace configurations and resources.
Package exec implements headless, scriptable TaskSmith runs: the one-shot engine behind `tasksmith exec` and the root `-p/--print` shorthand.
Package exec implements headless, scriptable TaskSmith runs: the one-shot engine behind `tasksmith exec` and the root `-p/--print` shorthand.
tui
testutils
Package testutils renders TaskSmith's terminal UI inside tests.
Package testutils renders TaskSmith's terminal UI inside tests.
ui
autocomplete
Package autocomplete provides a headless, source-driven completion engine for terminal UIs.
Package autocomplete provides a headless, source-driven completion engine for terminal UIs.
clipboard
Package clipboard provides helpers for resolving pasted images and dropped local image paths from kite clipboard events in the TaskSmith terminal UI.
Package clipboard provides helpers for resolving pasted images and dropped local image paths from kite clipboard events in the TaskSmith terminal UI.
format
Package format provides human-readable string formatting helpers for the TaskSmith terminal UI.
Package format provides human-readable string formatting helpers for the TaskSmith terminal UI.

Jump to

Keyboard shortcuts

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