SharpCoder.Cli 0.25.0-beta.204

This is a prerelease version of SharpCoder.Cli.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global SharpCoder.Cli --version 0.25.0-beta.204
                    
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 SharpCoder.Cli --version 0.25.0-beta.204
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SharpCoder.Cli&version=0.25.0-beta.204&prerelease
                    
nuke :add-package SharpCoder.Cli --version 0.25.0-beta.204
                    

SharpCoder.Cli

sharpcoder is the terminal front-end for SharpCoder, an autonomous coding-agent loop built on Microsoft.Extensions.AI. It streams responses live, renders tool calls inline, reports per-turn and cumulative token/tool usage, automatically resumes a managed session for the current workdir, and works with the providers shipped in SharpCoder.Providers (GitHub Copilot, GitHub Models, Ollama).

This is a .NET tool package. Install it with dotnet tool install, not dotnet add package — the latter is for the SharpCoder library.

Requirements

  • The .NET 11 SDK (needed to install .NET tools); the tool targets net11.0.
  • A model provider credential — for example GITHUB_TOKEN/GH_TOKEN, OLLAMA_API_KEY, or a local Ollama server. Credentials can also come from a dotenv file passed with --env <file>.

Install

dotnet tool install --global SharpCoder.Cli
sharpcoder --help

Prerelease builds from the develop branch:

dotnet tool install --global SharpCoder.Cli --prerelease
# or pin one: dotnet tool install --global SharpCoder.Cli --version 0.25.0-beta.123

Run it once without installing (requires .NET 10 SDK or later):

dnx SharpCoder.Cli -- --help

Pin it per repository as a local tool (dotnet-tools.json manifest):

dotnet new tool-manifest
dotnet tool install SharpCoder.Cli
dotnet tool run sharpcoder -- --help

Update or remove a global install:

dotnet tool update --global SharpCoder.Cli
dotnet tool uninstall --global SharpCoder.Cli

Quick start

# one-shot task (shorthand for `sharpcoder run "..."`)
sharpcoder "fix the build"

# interactive REPL (the default) — /help lists /session, /config, /exit, ...
sharpcoder chat

# choose a provider-prefixed model, load a dotenv file and a YAML config
sharpcoder --model ollama-local/llama3 --env .env --config work.yaml "Review this repository"

# read-only review: no write_file / edit_file tools
sharpcoder --read-only "review the changes"

sharpcoder --help lists every flag, including --workdir, --max-steps, --reasoning, --bash, --shell, --confirm-tools, --verbose, --home, --no-session-history, --context-tokens, --retain-tokens and --markdown. Settings can be stored in <home>/config.yaml; explicit command-line flags always win. The current startup folder is the working directory. The legacy --session/--save flags and /save command are removed.

When built from source the executable is named SharpCoder.Cli; the published tool's command is sharpcoder. Several CLI examples and the built-in help text use the source binary name — substitute sharpcoder after installing the tool.

Managed sessions

The latest session for the current workdir resumes automatically. The default SharpCoder home is ~/.sharpcoder; --home <dir> or SHARPCODER_HOME selects another home. <home>/workspaces.json maps canonical workdirs to <home>/sessions/<name>/. Each session folder contains latest.json (current AgentSession JSON), session.json (metadata), context/000000-initial.json, checkpoints.jsonl, events.jsonl, artifacts/ and a .lock owner file. latest.json is atomically replaced after each turn and on exit, so an interrupted write cannot leave a truncated transcript. Missing or unreadable state is preserved and a new session is started. Use /session to see the active session, or --no-session-history/SHARPCODER_NO_SESSION_HISTORY=1 for an in-memory run that reads and writes no session files. --home and SHARPCODER_HOME are CLI/environment settings, never YAML keys.

Full documentation, YAML schema, tool-confirmation behaviour and security notes: https://github.com/robkaandorp/SharpCoder#command-line-interface.

Security

Bash is disabled by default (--bash opts in, with no sandboxing). File writes are enabled but confirmed interactively on a terminal; use --read-only/--no-writes in untrusted or scripted environments. Web tools require a credential and are guarded by --confirm-tools. Managed transcripts are stored unencrypted and can contain secrets, tool output and retrieved web content; protect the SharpCoder home (user-only Unix modes are applied) or use --no-session-history. Only run the agent in workspaces you trust.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.26.0-beta.217 0 12/2/2026
0.26.0-beta.216 0 12/2/2026
0.26.0-beta.215 0 12/2/2026
0.26.0-beta.214 0 12/2/2026
0.26.0-beta.213 0 12/2/2026
0.26.0-beta.212 10 12/2/2026
0.26.0-beta.211 8 12/2/2026
0.26.0-beta.210 38 12/2/2026
0.25.0 47 12/1/2026
0.25.0-beta.208 42 12/1/2026
0.25.0-beta.207 41 12/1/2026
0.25.0-beta.206 43 12/1/2026
0.25.0-beta.205 66 11/30/2026
0.25.0-beta.204 60 11/30/2026
0.25.0-beta.203 56 11/30/2026