hummingbot/condor/controller-sources
Claude Code and agent skill by hummingbot/condor
- community
Checking that the SKILL.md file is still in the repository.
How to own, push and use Hummingbot controllers from your agent folder — the folder is the source of truth, the server is a copy, and drift is never overwritten blind.
Install
npx vskill@latest install hummingbot/condor/controller-sourcesSKILL.md
The same SKILL.md was published earlier as hummingbot/condor/controller-sources.
Controller sources
Seat check
- Condor (chat): you onboard. Write a user's controller into the target agent with
agent="<slug>", or pull it from a server. You may publish to _shared with shared=true (no agent).
- An agent: you operate your own folder. You can read
_sharedcontrollers but cannot
edit or delete them.
The one rule
Your folder is the source of truth. The server holds a copy. Every change to controller code goes into the folder first (write), then to the server (sync). manage_controllers(action="upsert", target="controller") is refused on every agent seat: it would bypass the folder, the drift check and the backup, and the next status would report your own edit as drift. manage_controllers(action="delete", target="controller") needs a human's confirmation and is refused in a dry run or a winddown. Saved configs (target="config") are unaffected. Don't route around the refusal with run_code (client.controllers.create_or_update_controller(...)): it is out of bounds for the same reason.
The three copies (and backtests)
A controller exists in three places at once. Keep them apart. A sync changes exactly one of them, the server copy; every impact message says which running bots stay behind. Backtests are not a copy: each run loads the server copy fresh, so they never lag.
| Copy | Where it lives | When it changes | |
|---|---|---|---|
| folder | agents/{slug}/controllers/ or .condor/agents/{slug}/controllers/ | manage_agent_controllers write | |
| server | the Hummingbot API's controllers directory | sync (create or overwrite) | |
| running bots | each bot container's imported class | only on stop → archive → redeploy | |
| backtests | not a copy: each run loads the server copy fresh | every run (never lags) |
The server copy is one per name, shared by every agent (and every Condor, and every human) pushing to that server. The impact lists the agents on this Condor that own the same name; it cannot see another Condor or a hand edit. Those show up as drift instead.
Layout
Single-file controllers only. A style must not be named config, because it would be dropped on publish. The type is inferred from the base class (DirectionalTradingControllerBase, MarketMakingControllerBase, ControllerBase); when it can't be, write CONTROLLER.md first:
Before deploying or backtesting: status first
| verdict | meaning | do | |
|---|---|---|---|
in_sync | the server runs exactly your file | proceed | |
missing | the server has never seen it | sync, then proceed | |
drift | the server's copy differs from yours | stop, see below | |
unreachable | the server didn't answer | stop; this is NOT in sync, retry later or report |
Drift: never overwrite blind
- Run
syncwithoutoverwrite. It refuses (refused: true) and returns thediff
(server copy → your folder) and the impact: impact_text (prose) and impact (the same as data). The impact names the other agents with a controller of this name (same or different code), the running bots whose deployed configs use it, and the backtest caveat. "Could not check running bots" means unknown, never "none".
- Read the diff. Is the server's side an edit someone made on purpose (a hotfix, another
agent's version of the same name)?
- Show the user the diff and `impact_text` verbatim, then ask. Interactive: ask in the
chat. Loop: send a notification and skip the deploy this tick. Don't block and don't retry-overwrite.
- Only with a go-ahead (or a loop playbook that explicitly authorises it) call
sync(overwrite=true). The server's copy is saved under .server_backups/ first. The refusal in step 1 is the preview that makes the overwrite possible: without one from the last 15 minutes, or if the server or folder copy changed since, the overwrite is refused with preview_required and nothing is sent. That refusal is itself a fresh preview; show it and ask again. The human approving the call sees the same impact.
- If the server's version is the right one,
pullit into your folder instead
(pull with overwrite=true replaces your differing file).
After an overwrite: running bots are behind, backtests are not
The result carries impact_text again, now describing what happened.
- Running bots: tell the user which bots are now on the OLD class. They keep it until
they are stopped, archived and redeployed. That is the user's call. Never restart a bot.
- Backtests and new bots: the next backtest and any bot deployed from now on use the new
code — no API restart needed. Each backtest loads the server copy fresh; a new bot starts a fresh container.
Styles: references, not live configs
- Sample configs are starting points.
upload_configpublishes one as
<controller>__<style> (e.g. pmm_king__aggressive).
- To trade your own variant: read the style (
readwithsample=), change only what the
situation needs (pair, total_amount_quote within the user's budget, spreads), and upload it under a new config_name. Never edit a style in place to tune one deployment.
- A config needs its controller on the server, so run
syncfirst.upload_configrefuses
otherwise.
- Validation errors come back verbatim. Fix the field; don't retry blindly. The usual
causes: a number sent as a string ("5"), a typo'd field (extra="forbid"), an enum written PositionMode.ONEWAY instead of ONEWAY, a controller_name that doesn't match the folder. Directional controllers: the field rules in controller_development apply.
- To change a running bot's config, use
manage_bots(action="update_config"). Uploading
a saved config (even with overwrite=true) does not touch running bots: each keeps the config it was deployed with.
Editing a controller
- Read it (
read), rewrite the whole file, andwriteit. Thenstatusshowsdrift
against the server. That's expected: it's your edit, so sync(overwrite=true) is correct here. Say so in your report.
- Every saved config referencing it keeps its old fields. Re-check and re-upload styles
whose fields changed.
- A shared controller: you cannot edit it. If you need different behaviour, copy it
under a new name into your own folder. Reusing the shared name would put two different files under one server name, and they would drift against each other forever.
Onboarding a user's controller folder (Condor)
- Review read-only: class names, controller type, config class fields, and for each
sample: the controller_name matches, the fields exist, numbers are numbers. Report the problems before writing anything.
writethe.pyinto the agent (agent="<slug>",name,code), then each sample
with sample= (code = the YAML text). Already on a server and nowhere else? pull it instead (name, controller_type, configs=["<config id>", ...]).
status→syncif missing. If it's in drift, follow the drift section; the user may
have an older copy on the server.
upload_configeach style the user wants available, and confirm it appears with
manage_controllers(action="describe", config_name=…).
- Report: controller (created / in sync / drift pending), styles uploaded, open issues.
Never
manage_controllers upsert target="controller"for a controller that lives in a folder.overwrite=truewithout showing the user the diff andimpact_textand having a go-ahead.- Reading
unreachableas fine. - Restarting the API.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/_shared/skills/controller_sources/SKILL.md
Popularity
- Repository stars
- 217
- Repository forks
- 107
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hummingbot/condor/controller-sources)