惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
博客园 - 【当耐特】
量子位
有赞技术团队
有赞技术团队
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
C
Check Point Blog
B
Blog RSS Feed
M
MIT News - Artificial intelligence
H
Help Net Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
腾讯CDC

Show HN

Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal). Release v0.1.2.1 · kouhxp/yapsnap GitHub - noopolis/moltnet: Self-hostable chat network for AI agents. Pre-built bridges for Claude Code, Codex, and the Claws. Rooms, DMs, history. No Slack bots, no Matrix, no glue code.
GitHub - sailingsam/Pitara: Back up your dev environment ...
sailingsam · 2026-06-14 · via Show HN

GitHub backs up your code. Pitara backs up your development environment.

Set up a new laptop in minutes instead of a lost day. Pitara captures the language runtimes and global CLI tools on one machine and reinstalls them on another. It captures Node, Go, Java, and Bun, plus npm, pnpm, and bun global packages.

🔒 You own it. We never see it.

  • No server, no database — backups live in your own GitHub repo
  • No secrets stored — snapshots hold only tool names and versions
  • Your token never leaves your machine (~/.pitara)
  • Open source — audit every line yourself
pitara login     # one-time: sign in with GitHub
pitara backup    # save this machine
pitara restore   # rebuild it on a new machine

That's the whole flow. Your backups land in a private pitara-snapshots repo Pitara creates in your account.


Why

Switching laptops or reinstalling an OS means rebuilding a setup scattered across runtimes, package managers, and global CLIs. Existing tools each cover a slice — dotfiles for config, Settings Sync for editors, Brewfiles for Homebrew, Nix for full reproducibility (with a steep learning curve). Pitara takes the simple middle: back up your installation state and restore it with one command.


Install

npm (works with npm, pnpm, and bun — all use the npm registry):

From source (requires Go 1.23+):

go install github.com/sailingsam/pitara/cmd/pitara@latest

Prebuilt binaries for macOS, Linux, and Windows are attached to every release.


Usage

Back up and restore

pitara login            # one-time: sign in with GitHub
pitara backup           # save this machine
pitara restore          # rebuild this setup on a new machine
pitara snapshots list   # see your saved machines

Backing up more than one machine? Add --label <name> to backup and restore (e.g. --label work-laptop). With a single machine you never need it.

Inspect a snapshot, or work offline

pitara scan prints the snapshot Pitara would create — handy to see exactly what gets captured, or to save it as a file and move it yourself without an account:

pitara scan                          # print the snapshot (JSON) to the screen
pitara scan -o snapshot.json         # save it to a file instead
pitara restore --from snapshot.json  # restore from that file (add --dry-run to preview)

The restore report

Restore installs in dependency order (Node before npm globals, and so on), skips anything whose prerequisite failed, and prints a summary:

Pitara Restore Report
───────────────────────
Snapshot:  work-laptop (linux, amd64)
Created:   2026-06-10 14:00 UTC

Runtimes
  ✓ Node.js 22.15.0

Global Packages (npm)
  ✓ npm: typescript@5.4.5
  ✓ npm: tsx@4.7.0

Restore completed.

Snapshot format

A snapshot is a small, versioned JSON document. Each package manager's globals are kept in separate lists — Pitara never guesses which manager installed a tool, and on restore reinstalls each via its original manager.

{
  "schemaVersion": 1,
  "createdAt": "2026-06-10T14:00:00Z",
  "machine": { "label": "work-laptop", "os": "linux", "arch": "amd64" },
  "languages": {
    "node": { "version": "22.15.0", "manager": "nvm" }
  },
  "packages": {
    "npm": {
      "globals": [
        { "name": "typescript", "version": "5.4.5" },
        { "name": "tsx", "version": "4.7.0" }
      ]
    }
  }
}

How storage works

Your snapshots live in a private pitara-snapshots repo in your own GitHub account (created on first backup). The CLI talks directly to the GitHub API — there is no Pitara server and no database — and your token stays on your machine (~/.pitara, 0600). Every backup is a commit, so your history is just the git log.

Login uses GitHub's device flow (like the gh CLI) and requests the repo scope, which is needed to create the private repo and commit snapshots. Because Pitara is open source and runs no server, you can audit exactly what it does — and revoke access anytime at github.com/settings/applications.


Architecture

Pitara is built around a small plugin abstraction. Each tool category implements one interface for both directions:

type Plugin interface {
    Name() string
    Scan(ctx context.Context) (ScanResult, error)
    Restore(ctx context.Context, data json.RawMessage, opts RestoreOptions) (RestoreResult, error)
    Dependencies() []string   // plugins that must restore first
    SupportedOS() []OS        // platforms this plugin can restore on
}

Adding a new tool is: implement Plugin, register it. The registry topologically sorts plugins by Dependencies() so prerequisites install first.

cmd/pitara/          CLI entrypoint
internal/
  cli/               Cobra commands (scan, restore, login, backup, ...)
  discovery/         Scan orchestrator
  restore/           Restore planner + executor
  snapshot/          Schema, validation, builder
  report/            Restore report formatter
  plugins/           Plugin interface + registry (node, go, java, bun, npm, ...)
  auth/              Local session storage (~/.pitara)
  github/            GitHub device-login + REST client
  executil/          Command helpers

The CLI depends only on Cobra; the GitHub client is pure standard library, so the installed binary stays small.


Roadmap

Phase Scope Status
1 CLI foundation: scan, local restore, Node + npm plugins
2 Go, Java, Bun runtimes; pnpm + bun globals; per-OS install paths
3 Cloud: GitHub-backed login, backup, snapshots list, restore
4 Cross-OS warnings, version-manager detection, retry/recovery

Contributing

Contributions are welcome. Good first additions are new plugins — pick a tool, implement the Plugin interface, and register it. Please run go build ./... and go test ./... before opening a PR.


License

MIT © sailingsam