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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - layerbrain/trunks: Git repos backed by your own ...
aaronjaegar · 2026-04-28 · via Hacker News: Show HN

Git repos backed by your own storage. Run trunks, keep using git, and pushes go to S3, R2, Tigris, MinIO, Postgres, SFTP, local disk, or a file share. GitHub still works too if you want it, as a mirror.

Trunks storage topology

Use Cases

  • Run agents in short-lived sandboxes and save their work before the sandbox is destroyed.
  • Let one agent push work and another agent pull it on a different machine.
  • Sync repo state to S3, R2, Tigris, MinIO, Postgres, SFTP, local disk, or a file share.
  • Keep customer code in your own bucket, VPC, or enterprise storage.
  • Mirror finished work to GitHub for PRs and review when you are ready.

Install

pip install trunks

60-second start (local disk, no cloud)

cd myrepo
trunks init
trunks storage add --name primary --backend local --path ~/trunks-store

git checkout -b feature/auth
git add . && git commit -m "fix auth"
git push

That push lands in ~/trunks-store/trunks/myrepo.trunk/. No origin needed.

Cloud start (S3, R2, Tigris, MinIO)

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_REGION=us-east-1

cd myrepo
trunks init
trunks storage add --name primary --backend s3 --bucket my-bucket

Here is what happens:

  1. Trunks turns the repo name into a path: myrepo becomes s3://my-bucket/trunks/myrepo.trunk.
  2. It does a real read, write, and list on the bucket to make sure the credentials work.
  3. It saves the target locally in .trunks/myrepo.trunk.

Credentials stay local. If you pass inline flags like --access-key, --secret-key, or --password, Trunks saves them only in the local .trunks/<repo>.trunk database, masks them in trunks storage show, and never writes them to the remote backend. You can also use env vars, CI secrets, IAM roles, or your SSH agent instead.

Now use git like you always do:

git checkout -b feature/auth
git add . && git commit -m "fix auth"
git push

The push lands in s3://my-bucket/trunks/myrepo.trunk/.

Multi-machine handoff

Sandbox-to-sandbox replication via Trunks

One sandbox pushes a branch. Another sandbox pulls it, keeps working, pushes back. The map of which storage holds what lives inside the trunk, so a fresh sandbox only needs the primary URL to find the mirrors.

Multiple accounts, multiple buckets

Per-storage env vars beat the globals. This is how CI runs against more than one account at once:

export TRUNKS_STORAGE_PRIMARY_ACCESS_KEY=AKIA...
export TRUNKS_STORAGE_PRIMARY_SECRET_KEY=...
export TRUNKS_STORAGE_BACKUP_ACCESS_KEY=AKIA...    # different account
export TRUNKS_STORAGE_BACKUP_SECRET_KEY=...

Each named storage looks up TRUNKS_STORAGE_<NAME>_<KEY> first, then falls back to the provider defaults like AWS_* or R2_*.

Mirrors

Push to more than one place at the same time:

trunks storage add --name primary --backend s3  --bucket company-primary
trunks storage add --name backup  --backend r2  --bucket company-backup --account-id $R2_ACCOUNT_ID --mirror
trunks storage add --name nas     --backend local --path /mnt/company/trunks --mirror

Pushes are strict. If backup is down, the push fails. No silent half-syncs.

Storage health

trunks storage list
trunks storage show primary         # masks secrets
trunks storage ping                 # primary + mirrors
trunks storage ping primary
trunks storage ping s3://my-bucket  # test before saving

Storage layout

  • Backend: the storage root, like s3://company-code.
  • Trunk: one repo inside that backend, like s3://company-code/trunks/lazy-lms.trunk/.

Trunks stores git-compatible blobs, trees, commits, and refs. The on-disk layout is its own: objects are content-addressed and shared across branches, segments are batched, large blobs are chunked, every read is hash-verified. Not git LFS. GitHub can still be a mirror for review; Trunks keeps the repo data in the storage you chose.

CLI

Command What it does
trunks drop into the managed shell
trunks init create .trunks/<repo>.trunk locally
trunks storage add --name <name> --backend <type> ... connect a named primary
trunks storage add ... --mirror add a mirror
trunks storage list list the storage you have
trunks storage show <name> show one target with secrets masked
trunks storage ping [<name>] check the primary and the mirrors
trunks storage remove <name> drop a target
trunks status repo, branch, storage, mirrors, dirty state
trunks push / pull / fetch sync with the storage you have
trunks check [--clean] verify the local repo and optionally GC dead objects

Inside trunks, use git the normal way: git status, git add, git commit, git push.

Backends

Backend URL form Setup
S3 s3://bucket/path docs/backends/s3.md
MinIO s3://bucket --endpoint http://host:9000 docs/backends/s3.md
Cloudflare R2 r2://bucket/path docs/backends/s3.md
Tigris tigris://bucket docs/backends/s3.md
Backblaze B2 b2://bucket docs/backends/s3.md
Wasabi wasabi://bucket docs/backends/s3.md
DigitalOcean Spaces spaces://bucket docs/backends/s3.md
Azure Blob azure://account/container/path docs/backends/azure.md
GCS gcs://bucket/path docs/backends/gcs.md
SFTP sftp://user@host/path docs/backends/sftp.md
Postgres postgres://user:pw@host/db/trunks/repo.trunk docs/backends/postgres.md
Local disk local:///path/to/dir docs/backends/local.md
NFS / SMB file:///mnt/share docs/backends/local.md
Memory (tests) memory:// docs/backends/memory.md

Python

from trunks import Trunk

with Trunk(backend="s3://company-code", name="lazy-lms") as trunk:
    trunk.pull()
    print(trunk.read("README.md"))

Async works too. The methods notice a running event loop and pick sync or async on their own:

import asyncio
from trunks import Trunk

async def serve_file(path: str) -> bytes:
    async with Trunk(backend="s3://company-code", name="lazy-lms") as trunk:
        await trunk.pull()
        return await trunk.read(path)

asyncio.run(serve_file("README.md"))

License

MIT.