vercel-labs/fx

Unix like coding agent

What it solves

fx provides a lightweight, high-performance coding agent that integrates directly into your terminal workflow. It solves the problem of bulky, resource-heavy AI tools by offering a single, fast binary that works seamlessly with your existing shell environment, aliases, and project files without requiring a complex runtime.

How it works

Built in Zig, fx operates as a native CLI tool that treats your terminal like a scrollable log rather than a static IDE window. It connects to your preferred AI models (like ChatGPT, Grok, or local models via Ollama) and executes tasks using your local shell. It includes built-in security permissions that automatically vet actions for malicious behavior, and it can be extended via MCP servers, custom skills, or by embedding its core library into other JavaScript applications.

Who it’s for

fx is designed for developers who want an AI coding assistant that feels like a native Unix tool. It is ideal for those who work in the terminal, require fast performance in CI/CD pipelines, or want to build their own agent-powered applications using a modular, embeddable core.

Highlights

  • Extremely fast: Benchmarked to respond in under 2ms for core commands.
  • Shell-native: Runs within your existing login shell, respecting your aliases, functions, and environment variables.
  • Flexible integration: Use it as a CLI, embed it via the Agent Client Protocol (ACP), or use the libfx library in JavaScript/WebAssembly projects.
  • Smart security: Features an 'auto' permission mode that automatically checks for malicious actions or prompt injection before execution.
  • Persistent context: Automatically saves sessions to disk and compacts conversation history to manage context limits effectively.

Related

  • Project
  • Project
  • Project
  • Project
  • Project