yc-duan/fastctx

Fast, context-efficient repository tools for AI agents (MCP)

What it solves

AI agents are usually limited to the machine they run on. Fastctx adds a single MCP tool named run to the agents you already use (23 supported, including Claude Code, Codex, and Cursor). With it, an agent can execute commands, view and edit files, copy files between machines, and leave long-running jobs in the background on any of your Windows, macOS, or Linux machines — all without you switching tools or habits.

How it works

Fastctx connects to your agent by registering itself as an MCP server in the agent's config file (e.g. config.toml for Codex, .claude.json for Claude Code). It also writes usage instructions into the agent's global instruction file and turns off the agent's built-in shell so commands go through run (for 10 agents whose shell can't be turned off, both remain available). run takes a bash script that targets machines with on <machine>. Each call starts a fresh login shell in the home directory on the target machine. Fastctx also provides file commands: fastctx view reads multiple files (with line numbers, image support, and PDF/Office extraction), edit performs SEARCH/REPLACE, and write overwrites files. Files can be copied between machines with fastctx copy. Background jobs can wait up to 10 minutes or go straight to background; manage them with fastctx w, wait, and stop. Machines connect through your own Hub (self-hostable) via outbound HTTPS/WebSocket, requiring no public IP. Every action an agent takes through Fastctx is recorded in that machine's Activity log.

Who it’s for

Developers who use AI coding agents like Claude Code, Codex, or Cursor and need them to work across multiple machines — a desktop, a laptop, or Linux servers. It's also for teams that want to share a machine with another account or let one agent sign-in assist another account, all while keeping control and visibility through Activity logs.

Highlights

  • Works with 23 supported agents, no need to change your primary agent.
  • Data travels only through your own Hub (or direct between machines), never through third-party servers.
  • Read files including PDFs, Word, PowerPoint, Excel; extract text or images as needed.
  • Copy files between machines without passing bytes through the model's context; skip re-sending identical files.
  • Long-running jobs keep running even if you close the conversation or shut your laptop lid.
  • Activity logs record what agents did on each machine, with 90-day detailed retention and one-year hourly summaries.
  • Workbench feature (for Claude Code and Codex) lets you chat with the agent from desktop or Android, wake it when background jobs finish, and even hand off subtasks to another model.
  • Available as desktop apps (Windows, macOS, Linux), an Android app, and a CLI; automatic updates for desktop.

Related

  • Dispatch
  • Dispatch
  • Project
  • Project
  • Project