xiaohongshu
xiaohongshu
How the devbox automatically updates llm-agents (claude-code) via GitHub Actions and systemd timers. Use when debugging update failures or understanding the update flow.
Full skill instructions
The devbox automatically keeps llm-agents packages up to date via a GitHub Actions + systemd timer pipeline.
The pipeline updates the llm-agents input in flake.lock, which provides:
All packages use Numtide's binary cache for fast updates.
Note: The oh-my-opencode plugin is NOT managed by this pipeline. It's an npm package installed per-machine via npx oh-my-opencode install. See the setting-up-oh-my-opencode skill for configuration details.
┌─────────────────────────────────────────────────────────────┐
│ GitHub Actions (every 4 hours) │
│ │
│ 1. update-llm-agents.yml runs │
│ 2. Updates flake.lock (llm-agents input only) │
│ 3. Opens/updates PR on auto/update-llm-agents branch │
│ 4. Enables auto-merge (squash) │
│ │
│ CI (ci.yml) runs nix flake check on PR │
│ ↓ │
│ Checks pass → PR auto-merges to main │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ Devbox (systemd timer, every 4 hours) │
│ │
│ 1. pull-workstation.timer triggers │
│ 2. Fetches origin/main │
│ 3. If updates: git pull --ff-only │
│ 4. Runs: home-manager switch --flake .#dev │
└─────────────────────────────────────────────────────────────┘
| Component | Location | Purpose |
|---|---|---|
ci.yml | .github/workflows/ | Runs nix flake check on PRs |
update-llm-agents.yml | .github/workflows/ | Updates llm-agents, opens PR with auto-merge |
UPDATE_TOKEN | GitHub Secrets | PAT for PR creation + CI triggers |
pull-workstation | ~/.local/bin/ | Script to pull + apply home-manager |
pull-workstation.timer | systemd user | Triggers every 4h + 10min after boot |
home-manager-auto-expire.timer | systemd user | Cleans old generations daily |
# Recent workflow runs
gh run list --workflow=update-llm-agents.yml --limit=5
# Open update PRs
gh pr list --head auto/update-llm-agents
# CI status on a PR
gh pr checks <pr-number>
# Timer status
systemctl --user status pull-workstation.timer
systemctl --user status home-manager-auto-expire.timer
# When timers will next run
systemctl --user list-timers
# Recent pull-workstation runs
journalctl --user -u pull-workstation -n 50
# Recent auto-expire runs
journalctl --user -u home-manager-auto-expire -n 50
gh workflow run update-llm-agents.yml
~/.local/bin/pull-workstation
Or via systemd:
systemctl --user start pull-workstation
gh run list --workflow=update-llm-agents.yml --limit=1gh run view <run-id> --logUPDATE_TOKEN secret exists: gh secret listgh pr checks <pr-number>gh pr view <pr-number>systemctl --user status pull-workstation.timergit -C ~/projects/workstation statusjournalctl --user -u pull-workstation -n 50~/.local/bin/pull-workstationThe pull script refuses to run if there are uncommitted changes:
cd ~/projects/workstation
git status
# Either commit, stash, or discard changes
The script uses BatchMode=yes which fails if:
~/.ssh/id_ed25519_github existsssh -T [email protected] once manuallyCheck auto-expire is running:
systemctl --user status home-manager-auto-expire.timer
journalctl --user -u home-manager-auto-expire -n 20
Manual cleanup:
home-manager expire-generations "-7 days"
nix-collect-garbage
Both GitHub Action and devbox timer run every 4 hours. To change:
GitHub Action: Edit .github/workflows/update-llm-agents.yml:
schedule:
- cron: '0 */4 * * *' # Change */4 to desired interval
Devbox timer: Edit users/dev/home.linux.nix:
Timer = {
OnStartupSec = "10min";
OnUnitInactiveSec = "4h"; # Change to desired interval
};
Edit users/dev/home.linux.nix:
services.home-manager.autoExpire = {
frequency = "daily";
timestamp = "-7 days"; # Keep generations from last 7 days
};
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience