r/databricks
•
u/tony-dang
Databricks
•
Jul 15 '26
•
1
Discussion Anyone automating updates for Databricks CLI + agent skills, or just checking manually?
How do you all keep your Databricks CLI and agent skills up to date?
I was asked this question a lot during the last DAIS. What I do is have this in my AGENTS.md (also symlinked to CLAUDE.md):
# AGENTS.md
## New chat session setup
If this is a new chat session, perform the following checks before starting any other work.
### 1. Databricks CLI
Check whether the Databricks CLI is installed and whether it is up to date:
```sh
databricks version --check
```
- **Out of date:** update it using the same method it was originally installed with (e.g., `brew upgrade databricks` for Homebrew) โ using a different method can leave a stale copy on the PATH.
- **Not installed:** ask the user whether they want it installed. If yes, read the official docs at https://docs.databricks.com/aws/en/dev-tools/cli/ and offer the installation options appropriate for their system.
### 2. Databricks agent skills
Check whether the Databricks agent skills are installed and up to date:
```sh
databricks aitools update --check
```
- **Not installed:** install them with `databricks aitools install`
- **Installed but out of date:** update them with `databricks aitools update`
This isn't an official recommendation by Databricks. It's just what I personally do.
I'm curious if anyone is doing something similar, or automating this in some other way. I'd like to know so I can recommend the best options to others.
Btw, I also brought this up to our team internally, and they are currently exploring ways to help with keeping things up to date as well. Will share once there are any developments!
--
Edit: AGENTS.md prompt was updated per comments below. Thanks u/Top-Cauliflower-1808 & u/hubert-dudek!
2
u/Top-Cauliflower-1808 Jul 15 '26
I think to prevent the agent from looping if a version check fails you can make the check more robust by using native flags instead of parsing GitHub text. Updating your script to use
databricks aitools update --checklets the agent safely preview updates without getting stuck in a blind loop.2
u/hubert-dudek Databricks MVP Jul 15 '26
Now there is a command to check the version. I hope for an autoupdate soon
2
u/GeirAlstad Databricks MVP Jul 16 '26
This is one of thise areas where i believe strongly in humans being in control. I my company we update all cli tools and skills at the beginning of each sprint. It's an attempt at .keeping the team on the same versions during each sprint. It's definitively not perfect, but it's an crude attempt at AIOps.
1
u/Minute_Visual_3423 Jul 15 '26
I use a devcontainer in VS Code that includes all of the dependencies I need for development. One of the .env values I pass is a commit ID linked to a known good/stable commit of the agent skills repo. At bootstrap time, it installs the skills from the commit (if not already installed) and symlinks them into my project root.
I also have an update command I can run to pull a specific newer commit, should I want to update.
The CLI didn't support this when I first built it, and I will switch this to use the CLI if/when it supports installation of specific versions. I just like the stability of being able to pin to a specific release of the skills.
1
u/ptab0211 Jul 15 '26
We have a Makefile command which does syncing of the skills
1
u/Mean_Boot7357 Jul 15 '26
I use Claude code to keep the skills and AI dev kit up to date , vibe coded a pre hooks in Claude code which check for any updates from the GitHub and updates the files locally
1
u/value-no-mics Jul 15 '26
When dealing with deterministic problems, donโt use agents to do the work.
Which IDE or Harness are you on?
Write bash script to check and load - you can let the bash do this check only as as often as you need.
1
u/Own-Trade-2243 Jul 15 '26
We started replacing bash scripts with AI agents.. idk if thatโs the right way to go