Skip to content

About

( o)< A tiny ASCII duck that swims in your OpenCode sidebar and drops funny remarks about your work.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

OpenCode Ducksay

npm version License: MIT OpenCode V2

A tiny ASCII duck paddles around your OpenCode sidebar and drops funny remarks about your work. It uses your session's model.

Русская версия

Ducksay demo: the duck comments on a turn and answers /duck

Talk to the duck

Type /duck <text> in the TUI to talk to the duck. The dialogue never enters the session's context or transcript.

Characters

The duck has three characters: classic, angry and robot. Run /duck.persona to switch the session on screen to the next one; the art, the notices and the jokes change with it, and the duck greets you in its new voice. To start a session with another character, set the persona option. A switch lasts until OpenCode restarts, and every session keeps its own character.

Screenshots

Click [img] in the Ducksay heading, or run /duck.img, to save the duck's scene as a PNG. Pictures go to .opencode/ducksay/screenshots/ in your project. The folder brings its own .gitignore, so they never reach git.

Choosing a model

The duck jokes with the same model as your session. If that model is paid, you can give the duck a cheaper one:

{
  "plugins": [{ "package": "opencode-ducksay", "options": { "llmModel": "opencode/big-pickle" } }]
}

llmModel takes a model name in the "provider/model" form. Your session keeps its own model. If the model you named is missing, the duck answers Quack-quack! instead of a joke.

Install

Install the plugin with one command:

opencode plugin add opencode-ducksay

OpenCode 2.0.28 or newer is required.

Restart OpenCode.

To enable it in one project only, add "opencode-ducksay" to the plugins array in that project's opencode.json instead.

Documentation

License

MIT © Evgeniy Arapov

About

( o)< A tiny ASCII duck that swims in your OpenCode sidebar and drops funny remarks about your work.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages