https://github.com/hoanganhduc/coding-system-rebuild
Reproducible backup & restore for a multi-agent coding/research workstation (Claude Code, Codex, Copilot, OpenCode, DeepSeek, Gemini, OpenClaw): a public repo + encrypted secrets archive, Makefile-driven, with manifest-based capture, leak scanning, key rotation, and CI rehearsal.
https://github.com/hoanganhduc/coding-system-rebuild
ai-agents backup bash claude-code codex devops disaster-recovery dotfiles github-actions makefile openclaw reproducible-builds restore secrets-management
Last synced: 7 days ago
JSON representation
Reproducible backup & restore for a multi-agent coding/research workstation (Claude Code, Codex, Copilot, OpenCode, DeepSeek, Gemini, OpenClaw): a public repo + encrypted secrets archive, Makefile-driven, with manifest-based capture, leak scanning, key rotation, and CI rehearsal.
- Host: GitHub
- URL: https://github.com/hoanganhduc/coding-system-rebuild
- Owner: hoanganhduc
- License: mit
- Created: 2026-06-13T00:22:08.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2026-06-13T04:23:12.000Z (8 days ago)
- Last Synced: 2026-06-13T04:24:33.963Z (8 days ago)
- Topics: ai-agents, backup, bash, claude-code, codex, devops, disaster-recovery, dotfiles, github-actions, makefile, openclaw, reproducible-builds, restore, secrets-management
- Language: Python
- Size: 2.13 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coding System Rebuild
> ⚠️ **Generated by an AI coding system — experimental.** Every file in this
> repository — code, configuration, and documentation — was written by the same
> multi-agent AI coding system that this repository backs up and replicates. It is
> **experimental**, built for one researcher's personal setup, and **may not work as
> expected** on other machines, other agent versions, or tasks outside the documented
> assumptions. See the [introductory blog post](https://hoanganhduc.github.io/misc/coding-system-rebuild/)
> for what it is and how to try it.
Backup/restore system for a complete multi-agent coding/research machine:
**Claude Code, Codex, GitHub Copilot CLI, OpenCode, CodeWhale + DeepSeek CLI,
Gemini/AntiGravity CLI, and OpenClaw**, plus the system layer they run on
(npm globals, Python environments, Docker images, systemd user services, cron,
shell environment, TeX Live, Calibre, Lean/elan, Rust/Bun toolchains).
```
┌──────────────────────────────┐ ┌──────────────────────────┐
│ PUBLIC repo (this) │ │ PRIVATE secrets zip │
│ configs (sanitized), │ │ AES-256, single file │
│ skills, scripts, Makefile, │ │ every key/token/cred + │
│ manifests, docs │ │ small personal state │
└──────────────┬───────────────┘ └─────────────┬────────────┘
│ make install SECRETS=… │
▼ ▼
┌─────────────────────────────────────────────┐
│ fresh Ubuntu 24.04 machine │
│ (amd64 or arm64) │
└─────────────────────────────────────────────┘
```
Two existing repositories are orchestrated as **pinned components**
(`components.lock`), not duplicated:
| Component | Role |
|---|---|
| [`openclaw-bot`](https://github.com/hoanganhduc/openclaw-bot) | OpenClaw slice: sanitized config templates, workspace skills, lifecycle scripts |
| [`ai-agents-skills`](https://github.com/hoanganhduc/ai-agents-skills) | Cross-agent skill installer (canonical skill bodies, per-agent targets) |
## Quickstart (fresh machine)
```bash
sudo apt-get install -y git make 7zip
git clone https://github.com/hoanganhduc/coding-system-rebuild
cd coding-system-rebuild
make doctor # preflight
make install SECRETS=/path/to/coding-system-secrets-.zip
make test # verify everything
```
Without the secrets zip, `make install` still completes in **degraded mode**
and prints exactly which feature each missing secret disables
(see `make verify-secrets --degraded` and [SECRETS.md](SECRETS.md)).
## Routine use (source machine)
```bash
make backup # refresh state → sanitize-capture → leak-scan → local commit → new zip
git show # review what changed
make push # leak-scans again, then publishes (always manual)
```
## Target matrix
| | amd64 | arm64 (origin) |
|---|---|---|
| Agents + skills + services | ✅ | ✅ |
| SageMath docker image | ✅ official `sagemath/sagemath` | ✅ prebuilt (`ghcr.io/hoanganhduc/sagemath`) |
| Zotero Translation Server image | ✅ `ghcr.io/hoanganhduc/translation-server` | ✅ official `zotero/translation-server` |
| `agy`/`deepseek` local binaries | reinstall per-arch | ✅ |
## Built on
The system installs and configures a number of smaller tools, several with their own repos:
[getscipapers](https://github.com/hoanganhduc/getscipapers) (paper retrieval),
[translation-server](https://github.com/hoanganhduc/translation-server) (Zotero translators),
[vnthuquan](https://github.com/hoanganhduc/vnthuquan) (ebook discovery),
[vnu-eoffice](https://github.com/hoanganhduc/vnu-eoffice) (document monitor) — plus established
third-party software (Zotero, SageMath, Calibre, Lean, and the AI agent CLIs).
## Documents
- [INSTALL.md](INSTALL.md) — phase-by-phase install, SKIP_* toggles, degraded mode
- [SECRETS.md](SECRETS.md) — every secret: where to get it, where it lives, what breaks
- [ARCHITECTURE.md](ARCHITECTURE.md) — surfaces, manifest semantics, delegation boundaries
- [BACKUP-RESTORE.md](BACKUP-RESTORE.md) — runbooks, zip rotation, restore drills
- [CODESPACES.md](CODESPACES.md) — live interactive replica in a GitHub Codespace
- [github-actions-experiment-runner-plan.md](github-actions-experiment-runner-plan.md) — the `research_compute` GitHub Actions / Modal compute broker: design + the GHA compute lane (day-to-day routing/usage is the installed `github-actions-offload-routing` instruction, delivered by ai-agents-skills)
- [CI.md](CI.md) — GitHub Actions rehearsal (no-secrets + key live-tests)
- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) — known post-install fixes
- [../DECISIONS.md](../DECISIONS.md) — append-only decision log