feat(examples): run wedow/harness via bashkit with OpenAI#1086
Merged
Conversation
Demonstrates running the wedow/harness agent framework via bashkit CLI with realfs mounts to generate jokes using the OpenAI API.
- Use `hs` via PATH instead of `source harness; main` - Export HARNESS_ROOT since BASH_SOURCE is empty in bashkit - Assume `bashkit` is installed (`cargo install --path`)
Add step to examples job with continue-on-error (external API). Update script to auto-detect project binary like other examples.
The OPENAI_API_KEY secret wasn't configured — step was silently failing. Use doppler run to inject secrets (same pattern as js.yml).
DOPPLER_TOKEN isn't configured as a GitHub Actions secret. Use OPENAI_API_KEY directly (same pattern as ANTHROPIC_API_KEY). Requires adding OPENAI_API_KEY to repo secrets.
Guard with if: env.OPENAI_API_KEY != '' so CI passes without the secret, but fails hard when the key is set and something breaks.
Match the js.yml pattern: install Doppler CLI, run via doppler run. Guarded with if: env.DOPPLER_TOKEN != '' — will activate once DOPPLER_TOKEN is added as a GitHub Actions secret.
a42cef3 to
38876ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/harness-openai-joke.sh— runs the wedow/harness agent framework inside bashkit's virtual bash interpreter to generate jokes via OpenAIhsvia PATH (notsource) with realfs mounts for plugin discoveryTest plan
OPENAI_API_KEY=... bash examples/harness-openai-joke.shproduces a jokehs helpandhs session listwork inside bashkitRelated
BASH_SOURCE[0]empty on PATH lookup (workaround: exportHARNESS_ROOT)