RedditPP Mascot

RedditPP

r/webdev • … • u/cshaiku

[Showoff Saturday] Goshi -- a local-first, safety-focused AI CLI written in Go

TL;DR: Building a Go-based, local-first AI CLI that treats filesystem changes like git commits (propose → review → apply). No cloud dependency, no silent writes. Early but solid foundation.

Hey folks :D

I’ve been working on Goshi, an open source, Go based AI CLI that’s intentionally local first, auditable, and hard to misuse.

The core idea is simple: an AI assistant that behaves like a protective servant, not a magical black box.

**What makes Goshi different**

* Local-first by default (Ollama, no cloud lock-in) * Filesystem safety via proposal → apply flow (no silent writes) * Auditable actions (everything explicit, nothing implicit) * Reversible mindset (dry-run first, mutation only when confirmed) * Designed for developers, not prompt hacking

**You can:**

* read and list files safely * propose file changes without mutating anything * explicitly apply those changes later * chat interactively with a local LLM * inspect and test every layer (FS, runtime, CLI)

It’s written in Go, uses cobra for CLI structure, and is intentionally opinionated about boundaries between:

* CLI (UX) * runtime (policy) * filesystem (mechanics)

**Current status**

* Core FS proposal/apply pipeline is complete * Runtime dispatcher is wired * CLI is functional and almost interactive (REPL-style chat) * Tests exist at the correct layers (no magic globals) * Still early, but structurally solid

**Who might find this interesting**

* Go developers * CLI tool builders * Folks concerned about AI tools silently mutating systems * Anyone who wants AI helpers that can be reasoned about and trusted

Repo: https://github.com/cshaiku/goshi

Feedback, critique, and contributors welcome — especially around:

* CLI UX * safety models * test strategy * extensibility

Happy to answer questions. Thanks for checking it out!

— 0