Repository navigation
Add "launch" subcommand to launch coding agents - #1307
Conversation
superm1
left a comment
There was a problem hiding this comment.
General comment - I am wondering if we actually want a compatibility symlink for /usr/bin/lemonade and /usr/bin/lemonade-server and then in docs tell people to use lemonade instead.
I think that makes sense. In my mind, launch is less of a "server" feature and fits better with the "lemonade" binary. |
|
Hey guys, something I want to get thoughts on is when the model should be loaded in llama-server. The current implementation loads the model asynchronously while the agent is launched (versus an earlier implementation when it was blocking agent startup). Is this a good approach? |
|
I guess what happens if the model load isn't done by the time the agent starts up? Race? Chaos? If so synchronous is the right way. |
Based on the testing I did, seems like the processing of the query is just delayed until the model is finished loading. Imo, async leads to a smoother experience since the user can potentially start typing out their prompt while the model is simultaneously loading in the backend. |
Yeah I tend to agree with you from that description. People expect the first query is slow anyways. |
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
… does Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
@bitgamma is looking into this! |
|
@jeremyfowers can you help figure out the Windows issue? If we can I'd like to see this in 10.0.0! |
…uments, and --use-recipe flag to prioritize model recipe Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
Signed-off-by: Sawan Srivastava <sawan1210@gmail.com>
The lemonade-server target defines UNICODE/_UNICODE, which causes GetEnvironmentStringsA to be undefined (it's only a macro when UNICODE is not set). Switch to explicit wide-string versions (GetEnvironmentStringsW/ FreeEnvironmentStringsW) with UTF-8 conversion via WideCharToMultiByte. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@claude review |
|
I'll analyze this and get back to you. |
jeremyfowers
left a comment
There was a problem hiding this comment.
Works great for me! Agreed to two followups. Thanks @sawansri!
* basic launch implementation Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * added asynchronous loading of model when agent is launched Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * switch to LOG and use helper for host normalization Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * add some docs for launch subcommand Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * missing header file? Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * improve prompt caching by disabling system prompt changes claude code does Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * implements sensible llamacpp defaults, user configurable llamacpp arguments, and --use-recipe flag to prioritize model recipe Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * disable telemetry and other non-essential traffic Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> * Fix UNICODE build error in process_manager for lemonade-server The lemonade-server target defines UNICODE/_UNICODE, which causes GetEnvironmentStringsA to be undefined (it's only a macro when UNICODE is not set). Switch to explicit wide-string versions (GetEnvironmentStringsW/ FreeEnvironmentStringsW) with UTF-8 conversion via WideCharToMultiByte. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Signed-off-by: Sawan Srivastava <sawan1210@gmail.com> Co-authored-by: Jeremy Fowers <80718789+jeremyfowers@users.noreply.github.com> Co-authored-by: Jeremy Fowers <jeremy.fowers@amd.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>


Implements
lemonade-server launchfor easy integration of lemonade with coding agents like Claude Code and Codex.Review checklist
Clarity
Completeness
lemonade-server --helpUI/UX review
Are the UI/UX changes (if any)...
Note: UI/UX includes installers, app, tray, and CLI.
Code quality