Update Local Coding Agent
Use this when a customer wants their local clone updated to the latest GitHub
version.
Rules
- Do not delete the customer workspace.
- Do not delete
tools/tunnel-client*. - Do not print, commit, or upload API keys, tunnel IDs, tokens, or local config.
- Do not run
git reset --hard,git clean, or destructive commands unless the
customer explicitly approves.
- If there are local changes, summarize them and ask before continuing.
Steps
- Find the local
local-coding-agentfolder. - Run
git status --short --branch. - If local changes exist, stop and ask before updating.
- Fetch:
git fetch origin main --tags
- Show incoming changes:
git log --oneline --decorate --max-count=10 HEAD..origin/main
- Update safely:
git pull --ff-only origin main
- Reinstall dependencies:
- Windows:
scripts\lca.cmd install - macOS/Linux:
bash scripts/lca install
- Validate:
node --check scripts/local-coding-agent.mjsnode --check scripts/network-doctor.mjsnode scripts/validate-skills.mjs
- Run doctor/status:
- Windows:
scripts\lca.cmd doctorandscripts\lca.cmd status - macOS/Linux:
bash scripts/lca doctorandbash scripts/lca status
- Restart only if the customer wants the agent running:
- stop, then start with the CLI wrapper for the OS.
Report Back
Return:
- current commit
- current version from
/healthzif running - MCP URL
- dashboard URL
- workspace path
- mode and policy
- tunnel status
- any failed check and exact next command