Skip to content

feat(examples): run wedow/harness via bashkit with OpenAI#1086

Merged
chaliy merged 9 commits intomainfrom
claude/harness-openai-jokes-611Dj
Apr 6, 2026
Merged

feat(examples): run wedow/harness via bashkit with OpenAI#1086
chaliy merged 9 commits intomainfrom
claude/harness-openai-jokes-611Dj

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 6, 2026

Summary

  • Add examples/harness-openai-joke.sh — runs the wedow/harness agent framework inside bashkit's virtual bash interpreter to generate jokes via OpenAI
  • Uses hs via PATH (not source) with realfs mounts for plugin discovery
  • CI step in Examples job using Doppler for secrets (same pattern as js.yml)

Test plan

  • CI Examples job runs the harness step via Doppler — verified joke output in logs
  • Manual: OPENAI_API_KEY=... bash examples/harness-openai-joke.sh produces a joke
  • hs help and hs session list work inside bashkit

Related

chaliy added 9 commits April 6, 2026 03:00
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.
@chaliy chaliy force-pushed the claude/harness-openai-jokes-611Dj branch from a42cef3 to 38876ef Compare April 6, 2026 03:01
@chaliy chaliy marked this pull request as ready for review April 6, 2026 03:01
@chaliy chaliy merged commit 76726f4 into main Apr 6, 2026
11 checks passed
@chaliy chaliy deleted the claude/harness-openai-jokes-611Dj branch April 6, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant