agentleFS
ragnarwestadragnarwestad/aide/.claude/skills/ai-tools-upgrade/SKILL.md

ai-tools-upgrade

Skill2 starsChanged 25 days agoMITView on GitHub

How Claude Code and the Copilot and Codex CLIs are kept up to date on a machine, and how to install the daily upgrade job — plain cron on an always-on machine, a launchd agent on a laptop (cron silently skips runs the machine sleeps through). Use when: setting Aide up on a new machine, the AI tools have gone stale, choosing between cron and launchd, editing core/scripts/upgrade-ai-tools. Do NOT use for: checking for news (use check-news).

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not run both — remove the cron line when installing the launchd agent.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Updating the AI tools

The CLI tools are kept up to date automatically:

  • Claude Code is updated by the job's claude update. Its own background updater is off on both machines ("autoUpdates": false in ~/.claude.json), so a machine without the job stays on the version it has.
  • Copilot and Codex are managed by mise, pinned to latest in ~/.config/mise/config.toml.

core/scripts/upgrade-ai-tools runs mise upgrade on the tools + claude update. It is installed to ~/.local/bin/ by each AI installer (via core/scripts/_install-bin.sh).

The script runs daily at 05:00, before the board's morning jobs (the X list at 06:30, Nyhetssjekk at 07:00), so they run on the new versions. Set it up once per machine, and pick the mechanism by whether the machine sleeps:

Always-on machine (desktop, server): plain cron.

crontab -e
# Add:
0 5 * * * ~/.local/bin/upgrade-ai-tools

Laptop: a launchd agent instead. cron silently skips any run the machine sleeps through and never catches up, so a lid shut past 05:00 means no upgrade that day. launchd runs a missed StartCalendarInterval job on the next wake. Save as ~/Library/LaunchAgents/com.<user>.upgrade-ai-tools.plist, then launchctl bootstrap gui/$(id -u) <path>:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.USER.upgrade-ai-tools</string>
  <key>ProgramArguments</key>
  <array>
    <string>/Users/USER/.local/bin/upgrade-ai-tools</string>
  </array>
  <key>StartCalendarInterval</key>
  <dict>
    <key>Hour</key><integer>5</integer>
    <key>Minute</key><integer>0</integer>
  </dict>
  <key>StandardOutPath</key>
  <string>/Users/USER/Library/Logs/upgrade-ai-tools.log</string>
  <key>StandardErrorPath</key>
  <string>/Users/USER/Library/Logs/upgrade-ai-tools.log</string>
</dict>
</plist>

Do not run both — remove the cron line when installing the launchd agent.

The matrix (docs/AI_SUPPORT_MATRIX.md) reflects the last verified versions and is updated manually via /check-news — not by the cron job.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.