Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
contenox
command
Contenox CLI: run task chains locally with SQLite-backed state.
|
Contenox CLI: run task chains locally with SQLite-backed state. |
|
modeld
command
Command modeld is the contenox model daemon: the per-user, per-data-root owner of resident model state.
|
Command modeld is the contenox model daemon: the per-user, per-data-root owner of resident model state. |
|
Package libauth provides secure authentication and authorization services using JWT tokens.
|
Package libauth provides secure authentication and authorization services using JWT tokens. |
|
Package bus provides an interface for core publish-subscribe messaging.
|
Package bus provides an interface for core publish-subscribe messaging. |
|
Package libcipher provides a collection of cryptographic utilities for encryption, decryption, integrity verification, and secure key generation.
|
Package libcipher provides a collection of cryptographic utilities for encryption, decryption, integrity verification, and secure key generation. |
|
3.
|
3. |
|
Package liblease implements a cooperative, time-bounded file lease: a single-holder lock backed by an ordinary file, not an OS primitive.
|
Package liblease implements a cooperative, time-bounded file lease: a single-holder lock backed by an ordinary file, not an OS primitive. |
|
Package routine provides utilities for managing recurring tasks (routines) with circuit breaker protection.
|
Package routine provides utilities for managing recurring tasks (routines) with circuit breaker protection. |
|
modeld
|
|
|
capacity
Package capacity is modeld's hardware capacity planner: it resolves the EFFECTIVE context window a model can actually be served at on this device, from the model's KV-cache footprint and the device's free memory β not the model's trained ceiling alone.
|
Package capacity is modeld's hardware capacity planner: it resolves the EFFECTIVE context window a model can actually be served at on this device, from the model's KV-cache footprint and the device's free memory β not the model's trained ceiling alone. |
|
llama
Package llama is the graduated local coding-node runtime: a persistent, workspace-scoped inference session that keeps a stable prefix's KV hot and re-prefills only the changed suffix (the live warm-reuse hot path), distinct from the toy fixed-constant `local` provider.
|
Package llama is the graduated local coding-node runtime: a persistent, workspace-scoped inference session that keeps a stable prefix's KV hot and re-prefills only the changed suffix (the live warm-reuse hot path), distinct from the toy fixed-constant `local` provider. |
|
openvino
Package openvino implements the runtime/transport.Service boundary for the OpenVINO (Intel) backend: it opens persistent, manifest-keyed sessions on the owned device (CPU / GPU / NPU) that the runtime drives over the transport.
|
Package openvino implements the runtime/transport.Service boundary for the OpenVINO (Intel) backend: it opens persistent, manifest-keyed sessions on the owned device (CPU / GPU / NPU) that the runtime drives over the transport. |
|
openvino/ovsession
Package ovsession contains the native OpenVINO session/KV bridge used by the openvino modelrepo provider.
|
Package ovsession contains the native OpenVINO session/KV bridge used by the openvino modelrepo provider. |
|
owner
Package owner manages lease-based ownership of the local runtime's resident state.
|
Package owner manages lease-based ownership of the local runtime's resident state. |
|
runtime
|
|
|
benchreport
Package benchreport is the common local-node benchmark report: one JSON shape emitted across every backend/model/hardware profile so runtime latency and warm-reuse claims stay honest.
|
Package benchreport is the common local-node benchmark report: one JSON shape emitted across every backend/model/hardware profile so runtime latency and warm-reuse claims stay honest. |
|
chatservice
Package chatservice persists the conversation thread.
|
Package chatservice persists the conversation thread. |
|
contenoxcli
backends.go contains helpers for LLM backend and provider config KV storage.
|
backends.go contains helpers for LLM backend and provider config KV storage. |
|
hitlservice
Package hitlservice evaluates approval policies for tool calls.
|
Package hitlservice evaluates approval policies for tool calls. |
|
internal/modeldprobe
Package modeldprobe detects whether the modeld daemon (the separate CGO inference binary) is installed, running, or dead, so the runtime can fail honestly and the setup wizard can guide the user.
|
Package modeldprobe detects whether the modeld daemon (the separate CGO inference binary) is installed, running, or dead, so the runtime can fail honestly and the setup wizard can guide the user. |
|
internal/setupcheck
Package setupcheck evaluates local runtime readiness (defaults, backends) for the CLI.
|
Package setupcheck evaluates local runtime readiness (defaults, backends) for the CLI. |
|
internal/tools
internal/tools/multi_repo.go
|
internal/tools/multi_repo.go |
|
llmrepo
Package llmrepo provides a unified facade over LLM backends discovered via runtimestate: prompt, chat, streaming, embedding, and tokenization through a single ModelRepo interface.
|
Package llmrepo provides a unified facade over LLM backends discovered via runtimestate: prompt, chat, streaming, embedding, and tokenization through a single ModelRepo interface. |
|
localtools
Package localtools provides tools that fire around chain execution: approval gates and host-side helpers.
|
Package localtools provides tools that fire around chain execution: approval gates and host-side helpers. |
|
localtools/mcpoauth
Package mcpoauth implements the MCP OAuth 2.1 Authorization Code + PKCE flow for CLI clients.
|
Package mcpoauth implements the MCP OAuth 2.1 Authorization Code + PKCE flow for CLI clients. |
|
mcpserverservice
Package mcpserverservice stores MCP server configs.
|
Package mcpserverservice stores MCP server configs. |
|
mcpworker
Package mcpworker keeps MCP server connections alive across chain steps.
|
Package mcpworker keeps MCP server connections alive across chain steps. |
|
modelrepo
Package modelrepo defines the provider-facing contracts for LLM backends: the Provider interface (capabilities + client factories), the per-capability client interfaces (LLMPromptExecClient, LLMChatClient, LLMEmbedClient, LLMStreamClient), and the shared request/response types (Message, ChatResult, StreamParcel, Tool, ChatArgument).
|
Package modelrepo defines the provider-facing contracts for LLM backends: the Provider interface (capabilities + client factories), the per-capability client interfaces (LLMPromptExecClient, LLMChatClient, LLMEmbedClient, LLMStreamClient), and the shared request/response types (Message, ChatResult, StreamParcel, Tool, ChatArgument). |
|
modelrepo/anthropic
Package anthropic is a direct (non-Vertex) provider for the Anthropic API (api.anthropic.com), which speaks the Messages API.
|
Package anthropic is a direct (non-Vertex) provider for the Anthropic API (api.anthropic.com), which speaks the Messages API. |
|
modelrepo/bedrock
Package bedrock is a provider for AWS Bedrock via the unified Converse API.
|
Package bedrock is a provider for AWS Bedrock via the unified Converse API. |
|
modelrepo/codec/chatcompletions
Package chatcompletions is a transport-agnostic codec for the OpenAI Chat Completions wire format (`/chat/completions`-style request/response and SSE streaming).
|
Package chatcompletions is a transport-agnostic codec for the OpenAI Chat Completions wire format (`/chat/completions`-style request/response and SSE streaming). |
|
modelrepo/codec/messages
Package messages is a transport-agnostic codec for Anthropic's Messages API wire format (request, content-block response, and named-SSE-event streaming).
|
Package messages is a transport-agnostic codec for Anthropic's Messages API wire format (request, content-block response, and named-SSE-event streaming). |
|
modelrepo/gemini
Package gemini implements the modelrepo.Provider contract against Google's Gemini Generative Language API.
|
Package gemini implements the modelrepo.Provider contract against Google's Gemini Generative Language API. |
|
modelrepo/llama
Package llama is the graduated local coding-node runtime: a persistent, workspace-scoped inference session that keeps a stable prefix's KV hot and re-prefills only the changed suffix (the live warm-reuse hot path), distinct from the toy fixed-constant `local` provider.
|
Package llama is the graduated local coding-node runtime: a persistent, workspace-scoped inference session that keeps a stable prefix's KV hot and re-prefills only the changed suffix (the live warm-reuse hot path), distinct from the toy fixed-constant `local` provider. |
|
modelrepo/mistral
Package mistral is a direct (non-Vertex) provider for the Mistral API (api.mistral.ai), which speaks the OpenAI-compatible chat/completions format.
|
Package mistral is a direct (non-Vertex) provider for the Mistral API (api.mistral.ai), which speaks the OpenAI-compatible chat/completions format. |
|
modelrepo/modeldconn
Package modeldconn is the runtime's client seam to the modeld daemon: it resolves the current lease leader (via modeldprobe), dials it over the gRPC transport, and opens sessions.
|
Package modeldconn is the runtime's client seam to the modeld daemon: it resolves the current lease leader (via modeldprobe), dials it over the gRPC transport, and opens sessions. |
|
modelrepo/ollama
Package ollama implements the modelrepo.Provider contract against Ollama HTTP endpoints.
|
Package ollama implements the modelrepo.Provider contract against Ollama HTTP endpoints. |
|
modelrepo/openai
Package openai implements the modelrepo.Provider contract against the OpenAI HTTP API and OpenAI-compatible endpoints.
|
Package openai implements the modelrepo.Provider contract against the OpenAI HTTP API and OpenAI-compatible endpoints. |
|
modelrepo/openrouter
Package openrouter is a catalog provider for OpenRouter (openrouter.ai), which exposes 300+ models from many providers through a single OpenAI-compatible endpoint.
|
Package openrouter is a catalog provider for OpenRouter (openrouter.ai), which exposes 300+ models from many providers through a single OpenAI-compatible endpoint. |
|
modelrepo/openvino
Package openvino is the runtime-side modelprovider for OpenVINO (Intel) local inference.
|
Package openvino is the runtime-side modelprovider for OpenVINO (Intel) local inference. |
|
modelrepo/toolcalls
Package toolcalls is the shared, backend-neutral machinery for model-native tool calls: serializing tool definitions for the model's own chat template, and parsing the model's raw output back into structured tool calls per a profile-declared protocol.
|
Package toolcalls is the shared, backend-neutral machinery for model-native tool calls: serializing tool definitions for the model's own chat template, and parsing the model's raw output back into structured tool calls per a profile-declared protocol. |
|
modelrepo/vertex
Package vertex implements the modelrepo.Provider contract against Google Vertex AI publisher endpoints, using OAuth bearer tokens minted from service-account credentials.
|
Package vertex implements the modelrepo.Provider contract against Google Vertex AI publisher endpoints, using OAuth bearer tokens minted from service-account credentials. |
|
modelrepo/vllm
Package vllm implements the modelrepo.Provider contract against vLLM OpenAI-compatible HTTP endpoints.
|
Package vllm implements the modelrepo.Provider contract against vLLM OpenAI-compatible HTTP endpoints. |
|
ollamatokenizer
Package ollamatokenizer provides Tokenizer implementations used by llmrepo to count and split tokens for a given model.
|
Package ollamatokenizer provides Tokenizer implementations used by llmrepo to count and split tokens for a given model. |
|
runtimestate
Package runtimestate reconciles the declared state of LLM backends (from dbInstance) with their actual observed state.
|
Package runtimestate reconciles the declared state of LLM backends (from dbInstance) with their actual observed state. |
|
sessionservice
Package sessionservice stores CLI chat sessions so conversations persist across terminal restarts.
|
Package sessionservice stores CLI chat sessions so conversations persist across terminal restarts. |
|
taskengine
Package taskengine orchestrates an agent: it drives LLM turns, tool calls, and routing in a loop, defined as a JSON chain you version in git.
|
Package taskengine orchestrates an agent: it drives LLM turns, tool calls, and routing in a loop, defined as a JSON chain you version in git. |
|
taskengine/llmretry
Package llmretry wraps a single LLM call with classified retry, exponential backoff, and an optional model fallback.
|
Package llmretry wraps a single LLM call with classified retry, exponential backoff, and an optional model fallback. |
|
transport
Package transport defines the contract the modeld daemon implements and the runtime calls: a persistent, manifest-keyed warm-reuse inference session.
|
Package transport defines the contract the modeld daemon implements and the runtime calls: a persistent, manifest-keyed warm-reuse inference session. |
|
transport/grpc
Package grpc is the gRPC wire transport for the runtime/transport.Service contract.
|
Package grpc is the gRPC wire transport for the runtime/transport.Service contract. |
|
tools
|
|
|
version
command
|
Click to show internal directories.
Click to hide internal directories.