Directories
¶
| Path | Synopsis |
|---|---|
|
docsgpt-cli
command
|
|
|
internal
|
|
|
attach
Package attach holds the files a message carries: images and documents attached with @path, a pasted or dropped path, or Ctrl+V. They go to the server inline, as content parts of the message (see docsgpt.Message), and the server stores them as the conversation's attachments.
|
Package attach holds the files a message carries: images and documents attached with @path, a pasted or dropped path, or Ctrl+V. They go to the server inline, as content parts of the message (see docsgpt.Message), and the server stores them as the conversation's attachments. |
|
bench/assert
Package assert evaluates a case's expect sections against a target result.
|
Package assert evaluates a case's expect sections against a target result. |
|
bench/judge
Package judge grades an answer with a second agent (LLM-as-judge) through the OpenAI-compatible /v1/chat/completions endpoint.
|
Package judge grades an answer with a second agent (LLM-as-judge) through the OpenAI-compatible /v1/chat/completions endpoint. |
|
bench/pricing
Package pricing turns token usage into an estimated USD cost.
|
Package pricing turns token usage into an estimated USD cost. |
|
bench/report
Package report renders a runner.SuiteResult in several forms — a colored terminal summary, machine-readable JSON, JUnit XML for CI, an A/B comparison table, and a diff against a saved baseline — plus the run-history store under ~/.docsgpt/bench.
|
Package report renders a runner.SuiteResult in several forms — a colored terminal summary, machine-readable JSON, JUnit XML for CI, an A/B comparison table, and a diff against a saved baseline — plus the run-history store under ~/.docsgpt/bench. |
|
bench/runner
Package runner executes a filtered set of benchmark cases against DocsGPT agents and collects a structured, JSON-serializable result tree.
|
Package runner executes a filtered set of benchmark cases against DocsGPT agents and collects a structured, JSON-serializable result tree. |
|
bench/spec
Package spec defines the benchmark suite format: a root directory with an optional bench.yaml (suite defaults) and any number of case directories, each holding a case.yaml plus optional attachment files.
|
Package spec defines the benchmark suite format: a root directory with an optional bench.yaml (suite defaults) and any number of case directories, each holding a case.yaml plus optional attachment files. |
|
bench/target
Package target sends one benchmark question to a DocsGPT agent through one of four protocols: the OpenAI-compatible /v1/chat/completions endpoint (single JSON response or SSE), the native /stream SSE endpoint, the native /api/answer JSON endpoint, or an agent incoming webhook (async, with /api/task_status polling).
|
Package target sends one benchmark question to a DocsGPT agent through one of four protocols: the OpenAI-compatible /v1/chat/completions endpoint (single JSON response or SSE), the native /stream SSE endpoint, the native /api/answer JSON endpoint, or an agent incoming webhook (async, with /api/task_status polling). |
|
context
Package context describes the user's environment to the agent, as a <context> block put before the first message of a conversation (the server ignores system messages unless the agent allows prompt overrides).
|
Package context describes the user's environment to the agent, as a <context> block put before the first message of a conversation (the server ignores system messages unless the agent allows prompt overrides). |
|
earlytheme
Package earlytheme fixes lipgloss's background before bubbletea's init asks the terminal for it (an OSC 11 query that stalls every start for 5s in a terminal that never answers).
|
Package earlytheme fixes lipgloss's background before bubbletea's init asks the terminal for it (an OSC 11 query that stalls every start for 5s in a terminal that never answers). |
|
host
Package host implements the docsgpt-cli host daemon and pairing flow.
|
Package host implements the docsgpt-cli host daemon and pairing flow. |
|
install
Package install places the running binary on the user's PATH, for `docsgpt-cli install` (which the install.sh / install.ps1 scripts call).
|
Package install places the running binary on the user's PATH, for `docsgpt-cli install` (which the install.sh / install.ps1 scripts call). |
|
manage
Package manage is a small client for the DocsGPT account-level ("management") API: identity, agents (list/export/plan/apply/delete), sources (list/upload/task status/delete), prompts and tools.
|
Package manage is a small client for the DocsGPT account-level ("management") API: identity, agents (list/export/plan/apply/delete), sources (list/upload/task status/delete), prompts and tools. |
|
mcp
Package mcp connects the CLI to MCP servers (Model Context Protocol) run over stdio, and offers their tools to the agent: the user's servers in ~/.docsgpt/mcp.json and the project's in .mcp.json.
|
Package mcp connects the CLI to MCP servers (Model Context Protocol) run over stdio, and offers their tools to the agent: the user's servers in ~/.docsgpt/mcp.json and the project's in .mcp.json. |
|
mcp/mcptest
Package mcptest runs a small MCP server over stdio for tests: the test binary itself, started again.
|
Package mcptest runs a small MCP server over stdio for tests: the test binary itself, started again. |
|
session
Package session saves chats, so they can be resumed: one JSONL file per chat under ~/.docsgpt/sessions/<cwd slug>-<cwd hash>/, a header line and then the messages as they complete (pi's format, without its tree: a fork is a new file starting with a copy of the messages it keeps).
|
Package session saves chats, so they can be resumed: one JSONL file per chat under ~/.docsgpt/sessions/<cwd slug>-<cwd hash>/, a header line and then the messages as they complete (pi's format, without its tree: a fork is a new file starting with a copy of the messages it keeps). |
|
ui
Package ui holds the interactive components: the small inline prompts (select lists, confirmations, text inputs, a spinner) used wherever the CLI asks the user something, which render inline and collapse to a one-line summary once answered, and the chat's full-screen Screen, which shows the same prompts in a panel.
|
Package ui holds the interactive components: the small inline prompts (select lists, confirmations, text inputs, a spinner) used wherever the CLI asks the user something, which render inline and collapse to a one-line summary once answered, and the chat's full-screen Screen, which shows the same prompts in a panel. |
|
sdk
module
|
Click to show internal directories.
Click to hide internal directories.