Add project-root context binding for agent identification#9
Merged
sebastientaggart merged 1 commit intomainfrom Apr 6, 2026
Merged
Add project-root context binding for agent identification#9sebastientaggart merged 1 commit intomainfrom
sebastientaggart merged 1 commit intomainfrom
Conversation
Member
Author
Review SummaryVerdict: APPROVE Findings
No correctness, security, or platform-compliance issues found. Tests cover the new endpoints (register/duplicate/update/404/fallback label) and the existing list test was extended to assert context fields. |
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
Adds project context (project_root, active_file) to agents so multiple instances of the same agent type can be distinguished by workspace. The OpenDeck plugin now displays context-aware labels like "claude-code: my-project" instead of generic IDs like "mock-1".
Changes
project_rootandactive_filefields, plus adisplay_labelproperty that derives a human-friendly label from the project root.POST /agents/register(register external agents with context) andPATCH /agents/{id}/context(update context, emitsagent.context_changedevent).register_agent()andupdate_agent_context()HTTP client methods.display_labeland listen foragent.context_changedevents.Drive-by fixes (in scope per user request)
uv run uvicorn→uv run python -m uvicorn(binary entry-point wasn't resolvable).Settingsnow auto-loads./config.tomlifDECKHAND_CONFIG_FILEisn't set.api_keyfield: onlyapi_keys = [...]is supported now (unreleased software, no migration needed)..gitignore: addedconfig.tomlto prevent committing local secrets.Closes #2