dhnt kbAll pages

decision · candidate

Extend bashy: small verbs, Bash# skill-scripts, shaping hooks, and the example → optional → core levels

How every agent adds or changes bashy features, runbooks and shaped apps: compose small JSON verbs in Bash# skill-scripts, design a shaping hook, start new helpers as examples and graduate them to optional then core, keep shared services provider-agnostic — WHEN adding a command, writing a runbook/kb page, planning a feature, or shaping an app (keywords: rod not fish, kiss, mvp, scope, overengineering, unix, compose, skill-script, bsh, shaping, extension point, example, optional, core, alpha, beta, graduate, maturity, experimental, preview, supported, provider-agnostic)

Verified 2026-11-09
Operator guideline 2026-11-09 (lern-psic sprint planning); tiers from docs/release-roadmap-and-versioning.md · Bashy revision 536fc71bf21457eaa21ab4bb35cd574788d12f97

Rules

Every agent extending bashy follows these, whether it is coding in a bashy repo, writing a runbook, or shaping an app at runtime with bashy shape / the shaping button.

  1. Grow bashy, don’t work around it. No command for the job: register one (bashy commands add). One exists but doesn’t fit: shape it (bashy shape wish …).
  2. Small verbs, composed (rod, not fish). Build verbs that do one thing, read and write plain files or JSON (--json), and compose in pipelines and scripts. Higher-level helpers are thin compositions of those verbs, never a monolith; each step stays usable alone. Kb pages teach the verbs and the human steps, not one canned flow.
  3. Compose in Bash# skill-scripts. A composition is one .bsh file that is both the command and its skill (a ~~~skill as guide fence), registered with bashy commands add (or the bashy-defaults list). Write Go only for a verb a script cannot do.
  4. Design for shaping. Every user-facing surface is shapeable or has a declared extension point: a template, a JSON/YAML config, or a skill-script verb that shaping can change later. A shaped change is the smallest one that satisfies the request and adds with a fallback rather than renaming or removing (expand, then contract).
  5. Three levels, one graduation path. Where a feature lives follows its stability tier (experimental → preview → supported, see the release roadmap):
Level Tier Bar
example (examples/) experimental (alpha) Quick implementation; may miss an OS or feature; any common tech allowed (cgo, Node, …); never linked into the core binary
optional add-on preview (beta) All three OSes (Windows, macOS, Linux); installed separately or opt-in; not in the core binary
core supported (release) Foundation rules: pure Go, permissive licenses only, CGO_ENABLED=0, cross-OS tests

New user-facing helpers start as examples. A feature graduates in a release on evidence (it works on the next level’s platforms and has a named consumer), never on age; demote or remove instead of carrying an example forever. Things a shaping agent adds to an app are example level until promoted.

  1. Provider-agnostic. Shared services (LLM door, metering, storage, …) work with any backend, including local ones such as ollama. A vendor backend (e.g. a cloud LLM) is a configuration, not a code path the feature depends on.

  2. Smallest slice for a named use case (KISS/MVP). Build for one real use case you can name, for example “an owner shares one app with two support members who shape it, and the owner approves”. Deliver the smallest change that serves it, merge it, then iterate. No speculative options, roles, schema fields or abstractions. A gap a review finds is recorded as future input, not added as work. A feature an owner could shape later is future input until someone needs it: that is what shaping is for. A fix closes the defect and nothing more.

Check before you build

Agent-first CLI parity

Bashy is built for agentic tools to easily discover, use and manage every feature through its CLI. Humans can run the same CLI normally; it is not agent-exclusive. Human-oriented terminal ergonomics and TUI polish are not requirements.

Bashy app/* web interfaces are designed to be human-friendly. Every feature and management action available through a web app must have an equivalent Bashy CLI operation on the same entities, with equivalent identity, permissions and approval rules.

Expose discoverable help, scriptable/composable operations, structured inputs/outputs, stable references and actionable errors. Prefer reusable Bash# command/skill/script wrappers composing existing APIs and verbs.

Agents may also inspect or use web apps through bashy browser –live, REST APIs or web URLs. These are valid alternative paths, but can be more cumbersome or error-prone; they do not replace the requirement for easy agent use through Bashy CLI. Likewise, humans may use the CLI even though the web UI is tailored to them.

Audit each app with a UI-to-CLI action matrix and verify equivalent results/state changes and denied-access behavior. Reuse working commands and repair only demonstrated gaps.