Repository navigation
docs(skills): add running-genkit-dev-ui-alongside-other-agents - #6825
huangjeff5 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new documentation file, SKILL.md, which outlines best practices for running the Genkit Dev UI on a shared machine alongside other agents. The feedback suggests minor phrasing improvements, such as changing "Start genkit start" to "Run genkit start" to avoid repetition, and adding a mention of using Ctrl+C to stop the process in addition to using its PID.
|
|
||
| ## Make sure the Dev UI is talking to your app | ||
|
|
||
| - Start `genkit start` from your worktree's project directory. The Dev UI only sees apps that registered under the directory it was started from (`.genkit/runtimes`), so separate worktrees get separate Dev UIs. Within one directory it can see several apps at once, each with its own runtime ID, and anything that doesn't name a runtime goes to the one started most recently. If a second app starts in your directory, your runs quietly go to it. |
There was a problem hiding this comment.
The phrase "Start genkit start" is slightly repetitive ("Start start"). It is clearer and more natural to say "Run genkit start" or "Start the Dev UI by running genkit start".
| - Start `genkit start` from your worktree's project directory. The Dev UI only sees apps that registered under the directory it was started from (`.genkit/runtimes`), so separate worktrees get separate Dev UIs. Within one directory it can see several apps at once, each with its own runtime ID, and anything that doesn't name a runtime goes to the one started most recently. If a second app starts in your directory, your runs quietly go to it. | |
| - Run `genkit start` from your worktree's project directory. The Dev UI only sees apps that registered under the directory it was started from (`.genkit/runtimes`), so separate worktrees get separate Dev UIs. Within one directory it can see several apps at once, each with its own runtime ID, and anything that doesn't name a runtime goes to the one started most recently. If a second app starts in your directory, your runs quietly go to it. |
|
|
||
| ## Clean up only what you started | ||
|
|
||
| Stop your own process by its PID. Never run `pkill genkit`, kill whatever's on a port, or clear `.genkit/` in a directory you didn't create; that's someone else's session. |
There was a problem hiding this comment.
Since genkit start is typically run in the foreground, stopping it via Ctrl+C is the most common and direct method. It's helpful to mention Ctrl+C alongside stopping by PID for completeness.
| Stop your own process by its PID. Never run `pkill genkit`, kill whatever's on a port, or clear `.genkit/` in a directory you didn't create; that's someone else's session. | |
| Stop your own process using `Ctrl+C` (or by its PID if it was started in the background). Never run `pkill genkit`, kill whatever's on a port, or clear `.genkit/` in a directory you didn't create; that's someone else's session. |
Adds
skills/running-genkit-dev-ui-alongside-other-agents/SKILL.md, a skill for runninggenkit startwhen other agents share the machine. It covers:.genkit/runtimes, free ports instead of 4000/3100, leftoverGENKIT_*variables, and a quick check that your flow and trace show uppkill genkitor clear someone else's.genkit/It applies to every SDK, so it lives at the repo root next to
developing-genkit-tooling. It was split out of the Python contributing skill (#6824).Changes
skills/. No SDK code changes.Breaking changes
None.