cd /news/ai-agents/show-hn-repotruck-mirror-and-organiz… · home › topics › ai-agents › article
[ARTICLE · art-157330] src=sametcn99.github.io ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: Repotruck – Mirror and organize GitHub repos with a TUI and MCP server

A developer released Repotruck, an open-source tool that mirrors and organizes GitHub repositories through an interactive terminal UI and a Model Context Protocol (MCP) server on stdio. The MCP server exposes workspace tools to coding agents — listing and searching repositories, resolving owner/name or alias to an absolute path, reading AGENTS.md, and running sync, clone, create, move and reorganize — and can be added to Claude Code with `claude mcp add repotruck -- repotruck mcp`. Repotruck authenticates via the GitHub CLI's token, a cached device-flow token, or a device flow when REPOTRUCK_OAUTH_CLIENT_ID is set, and keeps tokens out of workspace files and .git/config by using a one-shot credential header and resetting the clone origin to the clean HTTPS URL.

read1 min views1 publishedOct 25, 2026
Show HN: Repotruck – Mirror and organize GitHub repos with a TUI and MCP server
Image: source

The GitHub CLI is preferred: run gh auth login once and repotruck picks up its token. Without gh, repotruck falls back to a cached device-flow token, or starts a device flow when REPOTRUCK_OAUTH_CLIENT_ID is set (an OAuth App client ID; no callback URL needed).

Tokens are never written into workspace files or .git/config. Clones and pulls use a one-shot credential header, the clone origin is reset to the clean HTTPS URL immediately, and failures print the first error line with the token redacted.

It is a machine-readable map of the workspace for coding agents: metadata (preset, last sync, counts), the internal/community split with relative paths, and agent rules (independent Git projects, search exclusions, community repos are read-only). It is rewritten on every sync, clone, move and create.

Yes. repotruck mcp runs a Model Context Protocol server on stdio that exposes the workspace as agent tools: list and search repositories, resolve owner/name or alias to an absolute path, read AGENTS.md, and run sync, clone, create, move and reorganize. Add it to Claude Code with claude mcp add repotruck -- repotruck mcp, or to any MCP client's mcpServers config with command npx and args ["-y", "repotruck", "mcp"].

No. The preset affects new clones and creates only. To re-file existing repositories, run repotruck reorganize <preset> — preview it with --dry-run and spare manually placed repositories with --keep-custom.

The interactive dashboard needs Node.js >= 26.4 or Bun >= 1.3.14. The headless CLI commands run on Node.js >= 20. git must be on your PATH; the GitHub CLI is optional but is the easiest authentication path.

── more in #ai-agents 4 stories · sorted by recency
── more on @repotruck 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-repotruck-mi…] indexed:0 read:1min 2026-10-25 · —