Skip to content

About

A penates kit of OpenCode customization: skills and configuration fragments, each installed, versioned, and updated as a unit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

penates-opencode

A penates kit of OpenCode tools by Dmitry Pleshakov: skills, plugins, and configuration fragments, each item installed and versioned as a unit.

Install

The kit is a plain directory; penates does the rest.

  1. Clone this repository anywhere on your machine.
  2. Start penates, choose + add kit, and point it at the clone.
  3. Confirm the proposed target (~/.config/opencode) and select the items.

See the penates repository for the tool itself.

Items

  • ask — a conversation partner: the agent that may read code but never change it (mutating tools are denied in its permissions) and the plugin that injects a short reminder into each ask session, keeping those limits in the model's context. The plugin needs the opencode v2 plugin API and does not load on v1 (tag opencode-v2). Agent and plugin form one item by design: the plugin keys on the agent name, so renaming agents/ask.md silently stops the reminder.
  • commit — a fixed commit message format: a terse imperative subject (one line, outcome not activity, at most 72 characters) and an optional body that keeps only the motivation the diff cannot show — no diff narration, no rejected alternatives, no session process, no future intentions. Written for the two readers of history: the subject is scanned in git log, the body is dug up through blame. Repository conventions take precedence over the defaults.
  • done-v2 — session done marks for the opencode v2 TUI: /done prefixes the session title with [DONE] and archives the session, /undone reverses both; both commands also appear in the command palette under "Session". Written against the v2 TUI plugin API (tag opencode-v2) and installs into plugins/done/. The v1 twin is done-v1.
  • done-v1 — the same /done and /undone for machines on the opencode v1 line (tag opencode-v1): a flat plugins/done.ts file that v1 auto-discovers, written against the v1 plugin API — a default export of { id, tui(api) } registering commands through the legacy api.command. Two quirks come with that API and are expected: v1's server logs a swallowed error for tui-only flat plugins, and the command shim prints a deprecation warning; the commands work regardless. The two done items are variants of one capability — install the one matching the machine's opencode line.
  • peer-chat — two OpenCode agents in one tmux window talking to each other: the peer-room manager for the room's lifecycle, the peer-chat transport that types a message into the peer pane's composer, and the skill both agents follow, with its tests. Requires tmux and python3; after install, symlink the two scripts into ~/.local/bin. A variation of two-agent-chat from the agterm cookbook, rebuilt for tmux and OpenCode.
  • pr — a fixed, copy-ready format for pull request titles and descriptions: scope detection, the evidence rule (write only what the sources support, never an invented reason, and only what changes a reviewer's judgment), Problem/Approach/Testing/Notes sections, and a strict three-part output. Explains why the change was made rather than restating the diff; repository templates and conventions take precedence over the defaults.
  • preflight — the final gate before publishing changes: a mechanical secret and PII scan, project-defined checks (lint, typecheck, tests, build) run via background subagents, and security, correctness, consistency, and quality checklists verified against the code, ending in a ready-to-publish verdict.
  • vault — persistent cross-session memory for projects, kept outside every repository: the vault.py resolver (keyed by project path, shared vaults for repo copies) and the read/write protocol the agents follow. Memory data stays machine-local; the item carries only the mechanism. Requires python3.
  • writing — register and conventions for prose stored in a repository or sent to people: the skill plus the Deliverables rules it owns in the target's AGENTS.md. If that file arrives from elsewhere with the section already inside, remove the section before installing the item — penates never writes over content it does not own.

License

MIT; see LICENSE.

About

A penates kit of OpenCode customization: skills and configuration fragments, each installed, versioned, and updated as a unit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages