Skip to content

feat(rancher): create_agent + update_agent tools with knowledge binding (CLEAN-51) - #46

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
feat/CLEAN-51-rancher-create-bind-tools
Sep 1, 2026
Merged

feat(rancher): create_agent + update_agent tools with knowledge binding (CLEAN-51)#46
maksymhryzodub-prog merged 1 commit into
mainfrom
feat/CLEAN-51-rancher-create-bind-tools

Conversation

@maksymhryzodub-prog

@maksymhryzodub-progmaksymhryzodub-prog commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

CLEAN-51 — follow-up to CLEAN-50 (Q1 decision: phased). Stacked on #45 — retarget to main after it merges.

  • create_agent tool: create + deploy from a template (validates templateId, optional llmCredentialId / knowledgeIds / isAdmin). The full creation sequence (DB row → template file seed → skills sync → promote-before-deploy → first deploy) is extracted from the REST controller into AgentDeployService.createAgent — one shared implementation, no drift.
  • update_agent tool: rename / switch credential / bind knowledge bases. knowledgeIds replaces the full list (tool description tells the model to get_agent first); result carries an explicit restart-required notice.
  • SOUL.md: shortcut list updated; "Creating Agents & Binding Knowledge" now prefers the shortcuts with http as fallback.

Test plan

  • New agentDeploy.service.spec.ts (4 specs): sequence order, best-effort seed, no admin side effects by default, promote-before-deploy invariant incl. previous-admin demote/redeploy
  • api: jest 194/194, build green, eslint 0 errors
  • E2E after deploy: rancher chat "создай агента и привяжи базу знаний" → real create_agent/update_agent calls, restart notice surfaced

🤖 Generated with Claude Code

Base automatically changed from feat/CLEAN-50-agent-files-sync-safety to mainSeptember 1, 2026 12:37
…ding (CLEAN-51)
The admin agent promised agent creation and knowledge binding but had no
shortcuts for either. The creation sequence (seed → skills → promote-before-
deploy → deploy) moves from the controller into AgentDeployService.createAgent
so the REST endpoint and the new tool share one implementation; update_agent
replaces knowledgeIds wholesale and reminds about the restart. SOUL.md now
prefers the shortcuts with http as fallback.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@maksymhryzodub-prog
maksymhryzodub-progforce-pushed the feat/CLEAN-51-rancher-create-bind-tools branch from 0f3c764 to 2116b9cCompareSeptember 1, 2026 12:37
@maksymhryzodub-prog
maksymhryzodub-prog merged commit cd385cb into mainSep 1, 2026
1 check passed
@maksymhryzodub-prog
maksymhryzodub-prog deleted the feat/CLEAN-51-rancher-create-bind-tools branch September 7, 2026 12:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@maksymhryzodub-prog