A Golang port of the original agent-skill-fcontext python library, inspired by the article: How to build a Shared Brain for AI Agents: The Context-as-Code Pattern.
fcontext helps coordinate multiple AI coding agents by giving them a "shared brain". It persists context across sessions and makes it trivial to import/export domain knowledge to new projects.
This go port has few external dependencies and natively compiles to a single binary for easier distribution.
In addition to supporting standard agents like Copilot, Claude Code, Cursor, Trae, etc., this Go port introduces native support for Google Antigravity.
Google Antigravity is a new agentic development platform designed to help you operate at a higher, task-oriented level. It isn't just an editor—it's a development platform that combines a familiar, AI-powered coding experience with a new agent-first interface. This allows you to deploy agents that autonomously plan, execute, and verify complex tasks.
By running fcontext enable antigravity, a SKILL.md is generated in .agents/skills/fcontext/ which acts as an Antigravity Agent Skill. This turns your AI from a generic coding assistant into a specialized employee that knows your codebase's exact context, structure, requirements, and historical topics.
go install github.com/ikozinov/fcontext/cmd/fcontext@latest# 1. Initialize in any project
cd your-project
fcontext init
# 2. Activate your AI agent
fcontext enable antigravity # or: copilot, claude, cursor, trae, qwen, opencode, openclaw
# 3. Index your documents
fcontext index docs/
# 4. Check status
fcontext statusFor the rest of the commands and usages, they are 1-to-1 compatible with the original python CLI. Run fcontext -h to see all available commands.