Skip to content

docs(skills): add running-genkit-dev-ui-alongside-other-agents - #6825

Closed
huangjeff5 wants to merge 1 commit into
mainfrom
jh/dev-ui-agents-skill
Closed

huangjeff5 wants to merge 1 commit into
mainfrom
jh/dev-ui-agents-skill

Conversation

@huangjeff5

Copy link
Copy Markdown
Contributor

Adds skills/running-genkit-dev-ui-alongside-other-agents/SKILL.md, a skill for running genkit start when other agents share the machine. It covers:

  • working from your own git worktree and that worktree's environment
  • making sure the Dev UI is talking to your app: start directory and .genkit/runtimes, free ports instead of 4000/3100, leftover GENKIT_* variables, and a quick check that your flow and trace show up
  • cleaning up only what you started: stop by PID, never pkill genkit or 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

  • New skill file under skills/. No SDK code changes.

Breaking changes

None.

@github-actions github-actions Bot added the docs Improvements or additions to documentation label Oct 18, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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".

Suggested change
- 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

Suggested change
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.

@huangjeff5 huangjeff5 closed this Oct 18, 2026
@huangjeff5
huangjeff5 deleted the jh/dev-ui-agents-skill branch October 18, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant