Skip to content

Support dynamic profile/routing for agent#18

Merged
RussellLuo merged 2 commits intoOpenCSGs:mainfrom
xxx7xxxx:dev
Apr 29, 2026
Merged

Support dynamic profile/routing for agent#18
RussellLuo merged 2 commits intoOpenCSGs:mainfrom
xxx7xxxx:dev

Conversation

@xxx7xxxx
Copy link
Copy Markdown
Collaborator

Summary

  • Adds dynamic per-agent profiles: provider, model, reasoning, env, request options, and persistence.
  • Adds CLIProxy integration for model discovery and LLM routing.
  • Refactors onboarding/serve startup around dynamic profile detection.
  • Expands agent/profile APIs and tests.
  • Updates Web UI for agent creation/editing, profile setup, model selection, and status display.
  • Updates docs and config examples for the new profile/routing behavior.

Quick Test and Review

rm -fr ~/.csgclaw/
make
bin/csgclaw onboard
bin/csgclaw serve

And open the web UI to test.

Sample screenshot:
image

@xxx7xxxx xxx7xxxx requested review from RussellLuo and wayneliu0019 and removed request for wayneliu0019 April 28, 2026 15:00
Comment thread cli/onboard/onboard.go Outdated
reasoningEffort := fs.String("reasoning-effort", "", "optional upstream reasoning_effort default")
managerImage := fs.String("manager-image", "", "bootstrap manager image")
debianRegistries := fs.String("debian-registries", "", "comma-separated OCI registries used for debian:bookworm-slim pulls (persisted to config)")
forceRecreateManager := fs.Bool("force-recreate-manager", false, "remove and recreate the bootstrap manager box")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

force-recreate-manager and manager-image have been removed.

Comment thread cli/command/command.go Outdated
PIDPath string `json:"pid_path,omitempty"`
ConfigPath string `json:"config_path,omitempty"`
ManagerImage string `json:"manager_image,omitempty"`
ForceRecreated bool `json:"force_recreated,omitempty"`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is the edit I made yesterday

@xxx7xxxx
Copy link
Copy Markdown
Collaborator Author

@RussellLuo Updated

@RussellLuo
Copy link
Copy Markdown
Collaborator

LGTM

@RussellLuo RussellLuo merged commit 6d50d2a into OpenCSGs:main Apr 29, 2026
Sign up for free to 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.

2 participants