Conversation
Adds comprehensive spec for auto-discovering LLM backends via mDNS: - spec.md: User stories, acceptance criteria, API design - plan.md: Implementation phases with constitution compliance - tasks.md: 12 tasks with ~35 tests planned - verification.md: Template for implementation verification Key features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable
Implements automatic discovery of LLM backends on local network via mDNS. Features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Parse TXT records for backend type and API path - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable - CLI integration with --no-discovery flag New files: - src/discovery/mod.rs - Main discovery logic - src/discovery/events.rs - DiscoveryEvent types - src/discovery/parser.rs - TXT record parsing Registry extensions: - has_backend_url() - Check for existing URL - set_mdns_instance() - Store mDNS instance name - find_by_mdns_instance() - Lookup by instance Tests: 258 passing (+34 new discovery tests) Closes #59 Closes #60 Closes #61 Closes #62 Closes #63 Closes #64 Closes #65 Closes #66 Closes #67 Closes #68 Closes #69 Closes #70
The mdns-sd crate requires service types to end with a trailing dot (e.g., '_ollama._tcp.local.' not '_ollama._tcp.local'). This fix normalizes user-provided service types to ensure they work correctly.
138 items verified, 72 items N/A, 0 open issues
leocamello
added a commit
that referenced
this pull request
Feb 17, 2026
* docs: add F05 mDNS Discovery specification Adds comprehensive spec for auto-discovering LLM backends via mDNS: - spec.md: User stories, acceptance criteria, API design - plan.md: Implementation phases with constitution compliance - tasks.md: 12 tasks with ~35 tests planned - verification.md: Template for implementation verification Key features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable * feat: implement mDNS Discovery (F05) Implements automatic discovery of LLM backends on local network via mDNS. Features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Parse TXT records for backend type and API path - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable - CLI integration with --no-discovery flag New files: - src/discovery/mod.rs - Main discovery logic - src/discovery/events.rs - DiscoveryEvent types - src/discovery/parser.rs - TXT record parsing Registry extensions: - has_backend_url() - Check for existing URL - set_mdns_instance() - Store mDNS instance name - find_by_mdns_instance() - Lookup by instance Tests: 258 passing (+34 new discovery tests) Closes #59 Closes #60 Closes #61 Closes #62 Closes #63 Closes #64 Closes #65 Closes #66 Closes #67 Closes #68 Closes #69 Closes #70 * docs: add F05 mDNS Discovery walkthrough * docs: add F05 mDNS Discovery to manual testing guide * fix: normalize mDNS service types with trailing dot The mdns-sd crate requires service types to end with a trailing dot (e.g., '_ollama._tcp.local.' not '_ollama._tcp.local'). This fix normalizes user-provided service types to ensure they work correctly. * docs: add note about trailing dot normalization for mDNS service types * chore: complete F05 implementation verification checklist 138 items verified, 72 items N/A, 0 open issues * docs: clarify verification checklist usage in workflow
leocamello
added a commit
that referenced
this pull request
Feb 17, 2026
* docs: add F05 mDNS Discovery specification Adds comprehensive spec for auto-discovering LLM backends via mDNS: - spec.md: User stories, acceptance criteria, API design - plan.md: Implementation phases with constitution compliance - tasks.md: 12 tasks with ~35 tests planned - verification.md: Template for implementation verification Key features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable * feat: implement mDNS Discovery (F05) Implements automatic discovery of LLM backends on local network via mDNS. Features: - Discover Ollama via _ollama._tcp.local - Discover generic LLM services via _llm._tcp.local - Parse TXT records for backend type and API path - Grace period (60s) prevents service flapping - Manual config takes precedence over discovered - Graceful fallback when mDNS unavailable - CLI integration with --no-discovery flag New files: - src/discovery/mod.rs - Main discovery logic - src/discovery/events.rs - DiscoveryEvent types - src/discovery/parser.rs - TXT record parsing Registry extensions: - has_backend_url() - Check for existing URL - set_mdns_instance() - Store mDNS instance name - find_by_mdns_instance() - Lookup by instance Tests: 258 passing (+34 new discovery tests) Closes #59 Closes #60 Closes #61 Closes #62 Closes #63 Closes #64 Closes #65 Closes #66 Closes #67 Closes #68 Closes #69 Closes #70 * docs: add F05 mDNS Discovery walkthrough * docs: add F05 mDNS Discovery to manual testing guide * fix: normalize mDNS service types with trailing dot The mdns-sd crate requires service types to end with a trailing dot (e.g., '_ollama._tcp.local.' not '_ollama._tcp.local'). This fix normalizes user-provided service types to ensure they work correctly. * docs: add note about trailing dot normalization for mDNS service types * chore: complete F05 implementation verification checklist 138 items verified, 72 items N/A, 0 open issues * docs: clarify verification checklist usage in workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements automatic discovery of LLM backends on local networks using mDNS/Bonjour. Zero-configuration for Ollama instances on the same network.
Changes
New Files
src/discovery/mod.rs- Main discovery engine (~450 lines)src/discovery/events.rs- ServiceFound/ServiceRemoved event typessrc/discovery/parser.rs- TXT record parsing utilitiesModified Files
src/registry/mod.rs- Addedhas_backend_url(),set_mdns_instance(),find_by_mdns_instance()src/cli/serve.rs- Integrated MdnsDiscovery startupsrc/lib.rs- Addedpub mod discoveryCargo.toml- Addedmdns-sd = "0.11"docs/FEATURES.md- Updated F05 status to CompleteSpecification & Documentation
specs/005-mdns-discovery/spec.md- Feature specificationspecs/005-mdns-discovery/plan.md- Implementation planspecs/005-mdns-discovery/tasks.md- 12 tasks with acceptance criteriaspecs/005-mdns-discovery/walkthrough.md- Junior-dev friendly code walkthroughKey Features
_ollama._tcp.local) and generic LLM services (_llm._tcp.local)Testing
cargo testCloses
Closes #59, Closes #60, Closes #61, Closes #62, Closes #63, Closes #64, Closes #65, Closes #66, Closes #67, Closes #68, Closes #69, Closes #70