OctoEvidence.Cli 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global OctoEvidence.Cli --version 0.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local OctoEvidence.Cli --version 0.0.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=OctoEvidence.Cli&version=0.0.1
                    
nuke :add-package OctoEvidence.Cli --version 0.0.1
                    

OctoEvidence

Durable, cited project memory for AI agents. OctoEvidence stores what an agent learns about your codebase as small, evidence-backed facts in one portable SQLite file, then serves only the compact facts relevant to a task — so agents answer grounded questions without re-reading the whole repository every time.

  • Model-free core. Fact search, retrieval, and curation are deterministic. The primary integration — a stdio MCP server — never starts a model and incurs no model tokens.
  • Every fact is cited. Each fact is one subject → predicate → object claim with a source path, lines, and a content digest. Generated claims become proposals that require explicit approval before they become active knowledge.
  • One file, no services. No graph database, PostgreSQL, vector store, or embeddings. Facts, full-text search, proposals, evidence state, agent sessions, and workflow checkpoints all live in a single SQLite database.

Requirements

  • .NET 10 SDK or runtime (the CLI is a .NET global tool).
  • Optional, only for automatic fact-building and the built-in chat agent: a tool-capable Ollama model or any OpenAI-compatible Chat Completions endpoint. The MCP server and deterministic CLI commands do not need this.

Install

dotnet tool install --global OctoEvidence.Cli

This installs the octoevidence command. Verify it:

octoevidence --help

Quick start — use it from any AI agent

The primary integration is a model-free stdio MCP server. Register it once and your agent gains fact search/curation tools in every project.

Claude Code (user scope, available in all projects):

claude mcp add --transport stdio --scope user octoevidence -- octoevidence mcp

Codex (available in all projects):

codex mcp add octoevidence -- octoevidence mcp

Pin the server to a single project when you want a shareable, repo-local config — add this to the project's MCP config file:

{
  "mcpServers": {
    "octoevidence": {
      "command": "octoevidence",
      "args": ["mcp", "--directory", "D:/src/my-project"]
    }
  }
}

That's it. Ask your agent to record and recall facts about the codebase, and it will use the tools below. For latency-sensitive, repeated retrieval prefer this resident server over shelling out to octoevidence facts search in a loop — the server pays startup once, then each search is just the query.

What the agent can do

The server exposes these tools (all model-free):

Tool Purpose
search_facts Ranked, cited facts for a query — each with a supporting code excerpt, so one call is usually enough to answer. Pass several angles at once via additionalQueries.
get_facts Expand up to twelve selected fact ids with full evidence in one round trip.
get_fact Expand a single fact with complete evidence.
propose_fact Stage a new cited fact. It is not active until approved.
list_fact_proposals List proposals awaiting approval.
commit_fact_proposal Activate a proposal — requires explicit host/human approval.
retract_fact Retract an obsolete fact — requires explicit host/human approval.
refresh_project_evidence Re-hash project files and mark facts stale when their sources changed. No model.

Call refresh_project_evidence (or octoevidence project scan) after switching branches or editing files so stale facts are excluded from results.


Use it from the command line

Agents (or humans) that prefer process calls can use the same store through deterministic JSON commands — no model, no tokens:

# Search compact, cited facts (returns supporting excerpts by default)
octoevidence facts search "session persistence"

# Stage a fact (evidence path is relative to the repository root)
octoevidence facts propose --subject Sessions --predicate use --object SQLite `
  --kind architecture --confidence 0.95 --evidence docs/agent-framework.md

# Review and approve
octoevidence facts proposals
octoevidence facts commit <proposal-id> --approve

# Detect changed evidence and mark affected facts stale
octoevidence project scan

Run any command with --help to see its options.


Optional — automatic fact-building and the built-in agent

These paths use a model to read code and propose facts. Configure a provider first (see below), then:

# Inspect high-value files and stage initial facts (proposals stay pending)
octoevidence project bootstrap

# Review, then commit everything this run proposed
octoevidence facts proposals
octoevidence project bootstrap --approve

# Later, refresh facts whose evidence changed
octoevidence project refresh --approve

Run the built-in chat agent with persistent, resumable history:

octoevidence agent "Which storage decisions are current?"
octoevidence agent --list-sessions
octoevidence agent --session <session-id>

bootstrap/refresh parse structured manifests (.csproj, package.json, global.json, …) deterministically and use the model only for open-ended source files. If a run reports it inspected sources but added no proposals, the configured model likely isn't emitting tool calls reliably — use a larger, tool-capable model.


Configuration

Defaults live in ~/.octoevidence/config.json (created on first run). Model settings are only needed for the optional model-backed commands:

{
  "model": {
    "provider": "openai-compatible",
    "endpoint": "https://api.example.com/v1",
    "model": "your-provider-model-id",
    "apiKeyEnvironmentVariable": "MY_LLM_API_KEY",
    "contextTokens": 32768,
    "maxOutputTokens": 4096
  },
  "agent": {
    "factContextTokens": 900,
    "automaticFactLimit": 8,
    "minimumFactConfidence": 0.55,
    "maximumIterations": 12,
    "automaticRefreshMaxFiles": 100
  }
}
  • Supported providers: ollama (native) and openai-compatible (any Chat Completions endpoint). Local loopback endpoints may run without a key.
  • Secrets stay in environment variables, never in config.json. Point apiKeyEnvironmentVariable at the variable that holds the key.
  • One-off overrides: --provider, --endpoint, --model, --api-key-env, plus the harness flags --fact-context-tokens, --automatic-fact-limit, --minimum-fact-confidence, --max-iterations, --automatic-refresh-max-files (env equivalents use the OCTOEVIDENCE_AGENT_* prefix).
  • Set OCTOEVIDENCE_HOME to move the application directory.

Facts, branches, and freshness

Workspace identity is derived from the Git origin (repository name plus a hash of the origin URL), not the current branch — so switching branches, using a worktree, or cloning into a differently named directory keeps the same fact store. A refresh compares source-file digests:

  • unchanged evidence keeps its facts current;
  • changed or missing evidence marks its facts stale;
  • normal searches exclude stale facts (pass includeStale to see them);
  • no fact is silently deleted — refresh proposes replacements or reverification.

Local data

~/.octoevidence/
  config.json
  octoevidence.db
  agent-framework/
    memory/

The SQLite database holds durable facts, an FTS5 full-text index, proposals, project evidence observations, serialized agent sessions, and workflow checkpoints. Evaluate retrieval quality without a model:

octoevidence eval evaluation-suite.json

See docs/agent-framework.md for the internal architecture.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.0.18 171 8/27/2026
0.0.17 120 8/27/2026
0.0.16 131 8/26/2026
0.0.15 135 8/26/2026
0.0.14 130 8/25/2026
0.0.13 139 8/23/2026
0.0.12 124 8/21/2026
0.0.11 135 8/21/2026
0.0.10 137 8/21/2026
0.0.9 137 8/20/2026
0.0.8 133 8/19/2026
0.0.7 139 8/18/2026
0.0.6 148 8/17/2026
0.0.5 156 8/16/2026
0.0.4 125 8/7/2026
0.0.3 151 8/2/2026
0.0.2 155 8/2/2026
0.0.1 158 7/23/2026