CodePunk 0.1.0-alpha.16
See the version list below for details.
dotnet tool install --global CodePunk --version 0.1.0-alpha.16
dotnet new tool-manifest
dotnet tool install --local CodePunk --version 0.1.0-alpha.16
#tool dotnet:?package=CodePunk&version=0.1.0-alpha.16&prerelease
nuke :add-package CodePunk --version 0.1.0-alpha.16
CodePunk
Interactive AI-driven coding assistant for your terminal.
NOTE: This is a prerelease (alpha) build. APIs, commands, and provider support may change.
Install (Global Tool)
dotnet tool install --global CodePunk --prerelease
# Upgrade
dotnet tool update --global CodePunk --prerelease
Verify:
codepunk --version
codepunk --help
Quick Start
Launch interactive mode and run the guided setup:
codepunk
# inside interactive shell
a> /setup
The setup flow lets you:
- Select an available provider (Anthropic for now)
- Paste your API key (saved to a local
auth.jsonwith restricted permissions) - Choose a default model
Then start chatting:
> How do I refactor a large switch statement in C#?
At any time:
/providers # list providers & defaults
/reload # re-scan auth/config for newly added keys
/help # show commands
Key Features
- Interactive chat with context persistence (SQLite-backed sessions)
- Tool calling (file read/write, shell execution) with iterative reasoning loop
- Provider abstraction (runtime registry, easily extensible)
- Rich terminal UI (Spectre.Console) with streaming responses
- JSON / quiet output modes for automation (many commands accept
--json)
Commands (Selected)
| Command | Purpose |
|---|---|
codepunk run "message" |
One-shot prompt (falls into interactive if omitted) |
codepunk models |
List models (table or JSON) |
codepunk sessions list |
View past sessions |
/setup |
Interactive first-time provider + key setup |
/providers |
Show registered providers & defaults |
/plan create --goal |
Start a change plan (experimental) |
/reload |
Reload provider registrations |
/quit |
Exit interactive mode |
Persistence
Files stored under ~/.config/codepunk/ (Linux/macOS) or %AppData%/CodePunk (Windows):
auth.json: provider → API key (created via/setuporauth login)defaults.json: last chosen provider/modelcodepunk.db: session + planning data
Set CODEPUNK_CONFIG_HOME to override location.
Environment Variables (Optional)
export ANTHROPIC_API_KEY="your-key"
# (OpenAI temporarily disabled in this alpha)
If both a stored key and an env var exist, env var takes precedence on startup.
Logging & Verbosity
Enable additional logs + OTLP console tracing exporter:
export CODEPUNK_VERBOSE=1
Suppress decorative output for scripting:
export CODEPUNK_QUIET=1
Programmatic / JSON Usage
Many commands support --json to emit structured payloads with a schema discriminator. Example:
codepunk models --json | jq
Current Limitations (Alpha)
- OpenAI provider intentionally hidden pending updated implementation
- Basic error messages for some tool failures
- Planning workflow still evolving
Roadmap Highlights
- Re-enable OpenAI and add Azure OpenAI / local model backends
- Enhanced tool security sandbox & permission prompts
- Rich diff visualization for plan application
- Extensible plugin model for custom tools/providers
Contributing
Issues and PRs welcome: https://github.com/neil-gilbert/CodePunk
Local build:
git clone https://github.com/neil-gilbert/CodePunk.git
cd CodePunk
dotnet build
dotnet test
License
MIT
CodePunk – Ship faster with an AI pair inside your terminal.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.18 | 226 | 11/6/2025 |
| 0.1.0-alpha.17 | 189 | 10/14/2025 |
| 0.1.0-alpha.16 | 191 | 10/1/2025 |
| 0.1.0-alpha.15 | 180 | 9/30/2025 |
| 0.1.0-alpha.14 | 193 | 9/28/2025 |
| 0.1.0-alpha.13 | 170 | 9/28/2025 |
| 0.1.0-alpha.12 | 266 | 9/24/2025 |
| 0.1.0-alpha.11 | 266 | 9/24/2025 |
| 0.1.0-alpha.10 | 194 | 9/24/2025 |
| 0.1.0-alpha.9 | 184 | 9/23/2025 |
| 0.1.0-alpha.7 | 215 | 9/21/2025 |
| 0.1.0-alpha.5 | 210 | 9/21/2025 |
| 0.1.0-alpha.4 | 199 | 9/20/2025 |
| 0.1.0-alpha.2 | 195 | 9/20/2025 |