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.
- 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 …). - 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. - Compose in Bash# skill-scripts. A composition is one
.bshfile that is both the command and its skill (a~~~skill as guidefence), registered withbashy commands add(or the bashy-defaults list). Write Go only for a verb a script cannot do. - 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).
- 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.
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.
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
- Search first:
bashy commands --agentic,bashy kb search "<task>",bashy skill list. - Name the use case you are building for, and the smallest slice that serves it.
- Name the level you are building at and the verbs you compose.
- Name the shaping hook (which file or verb a user can shape).
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.