Skip to content

Add Junie by JetBrains support to lemonade launch - #3621

Merged
superm1 merged 2 commits into
lemonade-sdk:mainfrom
junie-the-developer:main
Sep 20, 2026
Merged

superm1 merged 2 commits into
lemonade-sdk:mainfrom
junie-the-developer:main

Conversation

@mashan555

Copy link
Copy Markdown
Contributor

Spec Driven Development

This PR:

Summary

lemonade launch junie --model adds Junie as a launch agent, with --model, --api-key, and --agent-args behaving the same way as for the other agents. On launch, Lemonade loads the selected model, writes a Junie profile to ~/.junie/models/lemonade.json (or under $JUNIE_HOME) pointing to Lemonade's OpenAI-compatible endpoint and including the model's ctx_size, then starts Junie with that profile. Only this profile is updated, so other Junie profiles are left untouched, and if Junie is not installed the command prints installation instructions. Junie is also documented in the lemonade launch help output and integration guide.

Scope

  • This PR addresses one clear issue or change.
  • I reviewed the full diff myself before submitting.
  • I removed unrelated local changes.
  • I kept refactoring separate unless it is required for this change.

Testing

  • The code change has been locally tested.

Testing details:

Six new CLI tests in test/server_cli2.py cover the launch arguments, generated profile, --api-key, $JUNIE_HOME, preservation of other Junie profiles, and the Windows shim name. They use a stub Junie binary, so no real installation or inference backend is needed.

cd test
../.venv/bin/python -m unittest server_cli2.PersistentServerCLIClientTests -k junie -v

Result on macOS: five passed, the Windows test was skipped.

Also verified with Junie 26.9.14 on macOS:

./build/lemonade load Qwen3.5-4B-GGUF
junie --model custom:lemonade

Starting Junie against the generated profile works: the profile is accepted and the prompt is answered by the local model. A check on a native Windows machine would still be useful.

Documentation

  • Documentation is not affected by this change.
  • Documentation is affected and has been updated.

Breaking Changes

  • This PR introduces breaking changes.
  • This PR does not introduce breaking changes.

junie-explorer-bot and others added 2 commits September 17, 2026 00:01
`lemonade launch junie` writes a Junie model profile to <junie home>/models/lemonade.json and starts Junie with `--model custom:lemonade`. Adds an integration guide and CLI tests.
feat(cli): add junie as a supported launch agent
@github-actions github-actions Bot added enhancement New feature or request area::cli lemonade CLI client (src/cpp/cli) documentation Improvements or additions to documentation labels Sep 18, 2026
@bitgamma
bitgamma requested a review from sawansri September 18, 2026 17:35
@superm1
superm1 added this pull request to the merge queue Sep 20, 2026
Merged via the queue into lemonade-sdk:main with commit d3481a8 Sep 20, 2026
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area::cli lemonade CLI client (src/cpp/cli) documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants