https://github.com/websitebutlers/codefire-app
CodeFire gives AI coding tools persistent memory, task tracking, and project intelligence. A desktop companion for the AI-native workflow.
https://github.com/websitebutlers/codefire-app
claude claudecode context-engineering context-engineering-framework mcp
Last synced: about 2 months ago
JSON representation
CodeFire gives AI coding tools persistent memory, task tracking, and project intelligence. A desktop companion for the AI-native workflow.
- Host: GitHub
- URL: https://github.com/websitebutlers/codefire-app
- Owner: websitebutlers
- License: mit
- Created: 2026-02-22T00:20:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-07T07:45:06.000Z (4 months ago)
- Last Synced: 2026-03-07T14:57:48.047Z (4 months ago)
- Topics: claude, claudecode, context-engineering, context-engineering-framework, mcp
- Language: Swift
- Homepage: https://codefire.app/
- Size: 11.8 MB
- Stars: 117
- Watchers: 1
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CodeFire
A local-first project wiki and persistent memory layer for AI coding agents
Give Claude Code, Gemini CLI, Codex CLI, and OpenCode durable project context they can actually use
Website · Getting Started · Wiki Memory · Electron Parity · Discord · Community · Download
---
## What is CodeFire?
Your AI coding agent forgets everything between sessions. CodeFire fixes that.
CodeFire gives every project a durable, local-first wiki for the things agents usually lose: architecture notes, schema explanations, runbooks, decisions, roadmaps, and glossaries. The wiki is markdown-native, initializes itself from your repo, supports `[[Wiki Links]]`, backlinks, page metadata, and cloud sync, and is exposed directly to agents through MCP so curated project knowledge can beat random grep results.
Around that wiki, CodeFire auto-discovers your projects, tracks tasks and sessions, monitors live coding activity, and exposes project data back to your AI via MCP — creating a persistent memory layer where your agent knows what you were working on, what decisions were made, and what's left to do.
### Wiki Memory
- **One-click project wiki initialization** *(Swift)* — Seed architecture, schema, runbook, roadmap, and glossary pages from your current repo, then edit them as living project memory.
- **Agent-readable curated context** *(Swift)* — Agents can create, update, search, read, list, and suggest wiki pages through MCP. `context_search` returns `wiki_results`, and RAG context includes relevant curated wiki pages before raw code snippets.
- **Markdown links and backlinks** *(Swift)* — Use `[[Page Title]]` links to connect decisions, files, systems, and tasks; CodeFire tracks backlinks so related knowledge stays navigable.
- **Metadata and sync hardening** *(Swift, new in v1.11.0)* — Wiki pages carry status, source, verification, related files, attribution, title uniqueness, soft-delete tombstones, and incremental cloud pull state for safer team sync.
- **Local-first by default** — Wiki data lives in the same local SQLite database as tasks, notes, and sessions. Cloud sync is optional for teams.
Two platform implementations share the same SQLite database schema and MCP protocol:
| Platform | Technology | Status |
|----------|-----------|--------|
| **macOS (Apple Silicon)** | Swift / SwiftUI | Beta — primary platform |
| **Windows (x64)** | Electron / React / TypeScript | Early Alpha |
| **Linux (x64)** | Electron / React / TypeScript | Early Alpha |
| **macOS (Intel)** | Electron / React / TypeScript | Early Alpha |
### Features
- **Persistent memory** — Tasks, notes, wiki pages, and session context that survive across CLI sessions
- **Project wiki** *(Swift, new in v1.11.0)* — Local-first markdown wiki for roadmaps, architecture, schema explanations, runbooks, decisions, and glossaries, with one-click initialization, `[[Wiki Links]]`, backlinks, page metadata, title uniqueness, and team cloud sync hardening
- **Wiki-aware MCP context** *(Swift)* — Agents can create, update, search, read, list, and suggest wiki pages. `context_search` returns `wiki_results`, and RAG context includes relevant curated wiki pages before raw code snippets
- **Task tracking** — Drag-and-drop Kanban board with priorities, labels, and task notes
- **Live session monitoring** — Real-time token usage, cost tracking, and tool call stats
- **Semantic code search** — Vector + keyword hybrid search across your indexed codebase
- **Project workspace** *(Swift)* — Icon-first project header for terminal, open-in-editor, index status, filesystem/profile, MCP status, and sessions access without crowding the tab bar
- **Multi-tab file editor** — Browse and edit project files in tabs, with syntax highlighting, line numbers, Cmd+F find, unsaved-change protection, and a right-click context menu to turn any selection into a task, note, or terminal command
- **Rendered markdown** — Notes and Claude Code memory files render as styled markdown (tables, headings, code blocks) with a one-click Edit/Preview toggle
- **Claude Code memory editor** — Edit the memory files Claude Code auto-loads every session, straight from the app
- **Built-in terminal** — Tabbed terminal sessions alongside your project views, with show/hide toggle
- **CLI orchestration** *(Swift, new in v1.9.0)* — One agent can spawn a complementary CLI in a new terminal tab and feed it a prompt — e.g. Claude Code asking Codex to investigate something — without you copy-pasting between terminals
- **Agent handoffs** *(Swift, new in v1.9.0)* — Structured cross-CLI task handoffs: the sender creates a labeled task with the prompt, the receiving agent finds it in its inbox, reports progress through task notes, and closes the loop with a result note. Hidden from your Kanban by default behind a toolbar toggle so the chatter doesn't crowd user-tracked work
- **Session-aware context engine** *(Swift, new in v1.10.0)* — When a Claude Code or Codex session starts in a tracked project, CodeFire detects it and runs an incremental verify pass that re-chunks only files that drifted since last index. An hourly scheduler does a full rebuild for any project past the configurable staleness threshold (default 7 days)
- **Freshness contract on context_search** *(Swift, new in v1.10.0)* — `context_search` never blocks. When the index is stale, results return immediately with a `freshness` object indicating drift, and a background refresh is auto-enqueued so the next call sees fresh data
- **Explicit context_search rule for agents** *(Swift, new in v1.10.0)* — MCP `serverInfo.instructions` ships a two-rule guidance block telling agents to prefer `context_search` for code exploration. Same rule is also written into per-project `CLAUDE.md` / `AGENTS.md` when a CLI is enabled
- **Browser automation** — 40+ MCP tools for navigating, clicking, typing, screenshotting (Electron)
- **Git integration** — Commits, staged changes, diffs, and branch management
- **AI chat** — Ask questions about your codebase with RAG-powered context
- **Image generation** — Text-to-image via OpenRouter (Gemini, DALL-E, etc.)
- **Notes & briefings** — Pin lightweight observations, capture gotchas, get AI-generated daily briefings
- **Gmail integration** — Sync emails into tasks with whitelist rules
- **MCP server** — 79 tools exposing project data, wiki memory, browser automation, git, terminal orchestration, and context search to any AI coding CLI
- **Universal compatibility** — Works with Claude Code, Gemini CLI, Codex CLI, and OpenCode
For a deeper explanation of the wiki, metadata model, MCP tools, and context-drift guardrails, see [CodeFire Wiki](docs/wiki.md). For the Windows/Linux parity roadmap, see [Electron Wiki Parity Handoff](docs/electron-wiki-parity.md).
## Download
| Platform | Download | Notes |
|----------|----------|-------|
| **macOS (Apple Silicon)** | [CodeFire-macOS.zip](https://github.com/websitebutlers/codefire-app/releases/download/v1.11.0/CodeFire-macOS.zip) | Native Swift app. Unzip and drag to Applications. |
| **macOS (Electron alpha DMG)** | [CodeFire-1.10.0-arm64.dmg](https://github.com/websitebutlers/codefire-app/releases/download/v1.10.0/CodeFire-1.10.0-arm64.dmg) | Current Electron macOS build from v1.10.0. |
| **macOS (Electron alpha zip)** | [CodeFire-1.10.0-arm64-mac.zip](https://github.com/websitebutlers/codefire-app/releases/download/v1.10.0/CodeFire-1.10.0-arm64-mac.zip) | Current Electron macOS zip from v1.10.0. |
| **Windows** | [CodeFire.Setup.1.10.0.exe](https://github.com/websitebutlers/codefire-app/releases/download/v1.11.0/CodeFire.Setup.1.10.0.exe) | NSIS installer. Windows 10+ required. |
| **Linux AppImage** | [CodeFire-1.10.0.AppImage](https://github.com/websitebutlers/codefire-app/releases/download/v1.11.0/CodeFire-1.10.0.AppImage) | Portable Linux build. |
| **Linux deb** | [codefire-electron_1.10.0_amd64.deb](https://github.com/websitebutlers/codefire-app/releases/download/v1.11.0/codefire-electron_1.10.0_amd64.deb) | Debian/Ubuntu package. |
> For detailed setup instructions including API key configuration, see the **[Getting Started guide](https://codefire.app/getting-started)**.
## Quick Start
### 1. Install & Open
Download for your platform above, install, and launch CodeFire.
### 2. Add Your OpenRouter API Key
Open Settings and go to the **Engine** tab (Electron) or **CodeFire Engine** tab (Swift). Paste your [OpenRouter API key](https://openrouter.ai/keys). This powers AI chat, semantic code search, and image generation.
### 3. Connect Your CLI
The fastest way is the one-click install — visit [codefire.app/getting-started](https://codefire.app/getting-started) and click the button for your CLI.
Or configure manually:
```bash
# Claude Code — macOS (Swift)
claude mcp add codefire ~/Library/Application\ Support/CodeFire/bin/CodeFireMCP
# Claude Code — Linux (AppImage, auto-synced on first launch)
claude mcp add codefire node ~/.local/share/CodeFire/mcp-server/server.js
# Claude Code — Windows
claude mcp add codefire node "%APPDATA%\CodeFire\resources\mcp-server\server.js"
```
Other CLI tools
**Gemini CLI** — `~/.gemini/settings.json`:
```json
{
"mcpServers": {
"codefire": {
"command": "~/Library/Application Support/CodeFire/bin/CodeFireMCP",
"args": []
}
}
}
```
**Codex CLI** — `~/.codex/config.toml`:
```toml
[mcp_servers.codefire]
command = "~/Library/Application Support/CodeFire/bin/CodeFireMCP"
args = []
```
**OpenCode** — `opencode.json` (project root):
```json
{
"mcpServers": {
"codefire": {
"type": "local",
"command": ["~/Library/Application Support/CodeFire/bin/CodeFireMCP"]
}
}
}
```
> Electron users: the MCP server path differs by platform. See the [setup guides](#4-add-system-instructions) for exact paths. Linux AppImage users: the MCP server is automatically synced to `~/.local/share/CodeFire/mcp-server/` on first launch.
### 4. Add System Instructions
For the best experience, add CodeFire instructions to your CLI's system prompt file. This teaches your AI agent how to use CodeFire's tools effectively — session workflows, task tracking, notes, and more.
| CLI | Setup Guide |
|-----|-------------|
| Claude Code | [codefire-claude-md-setup.md](docs/codefire-claude-md-setup.md) |
| Gemini CLI | [codefire-gemini-setup.md](docs/codefire-gemini-setup.md) |
| Codex CLI | [codefire-codex-setup.md](docs/codefire-codex-setup.md) |
| OpenCode | [codefire-opencode-setup.md](docs/codefire-opencode-setup.md) |
Each guide includes platform-specific MCP connection instructions (macOS, Windows, Linux) and copy-pasteable system instructions.
### 5. Start Coding
Open a project folder in CodeFire, then start a CLI session. Your agent now has access to persistent memory, task tracking, browser automation, and code search — all through MCP.
## MCP Server
CodeFire's MCP server exposes **79 tools** to your AI coding agent:
| Category | Tools | Examples |
|----------|-------|---------|
| **Tasks** | 6 | Create, update, list, and annotate tasks with notes |
| **Notes** | 5 | Create, search, pin, and manage project notes |
| **Wiki** *(Swift)* | 6 | Create, update, search, read, list, and suggest curated project wiki pages |
| **Projects** | 2 | List projects, get current project context |
| **Sessions** | 2 | List and search session history |
| **Code Search** | 1 | Hybrid code search with freshness metadata and wiki results |
| **Browser** | 40+ | Navigate, click, type, screenshot, eval JS, manage cookies |
| **Terminal** *(Swift)* | 3 | Launch a CLI in a new tab, send text to a tab, list open tabs |
| **Agent Handoffs** *(Swift)* | 3 | Create a cross-CLI handoff task, list your inbox, close with a result |
| **Images** | 1 | List generated images |
| **Clients** | 2 | List and create client groups |
## Build from Source
### macOS (Swift)
```bash
cd swift
swift build -c release
```
See [`swift/README.md`](swift/) for full build and signing instructions.
### Windows / Linux / macOS Intel (Electron)
```bash
cd electron
npm install # Install deps + rebuild native modules
npm run dev # Start dev server + Electron
npm run build # TypeScript compile + Vite build
npm test # Run tests (Vitest)
npm run dist # Package for current platform
npm run dist:win # Windows installer (NSIS)
npm run dist:linux # Linux packages (AppImage + deb)
npm run dist:mac # macOS DMG + zip
```
See [`electron/README.md`](electron/) for detailed architecture and development docs.
## Repository Structure
```
swift/ macOS app (Swift/SwiftUI) — Beta
electron/ Windows/Linux/macOS Intel app (Electron/React/TypeScript) — Alpha
landing/ Marketing website (codefire.app)
assets/ Shared screenshots and branding
scripts/ Build and packaging scripts
CLAUDE.md Architecture docs for AI coding agents
SECURITY.md Security policy and vulnerability reporting
```
## Architecture
Both apps follow the same data model:
- **SQLite database** at `~/Library/Application Support/CodeFire/codefire.db` (macOS), `~/.config/CodeFire/codefire.db` (Linux), or `%APPDATA%\CodeFire\codefire.db` (Windows)
- **MCP server** communicates via stdio — no network listeners, fully local
- **Project discovery** scans `~/.claude/projects/` for Claude Code session data
- **Shared schema** — both Swift and Electron apps read/write the same database
### Electron Architecture
The Electron app follows strict **main/preload/renderer** process separation:
- **Main process** (`src/main/`) — Database, IPC handlers, services (Git, Terminal, Search, MCP)
- **Preload** (`src/preload/`) — Typed bridge exposing `window.api` via contextBridge
- **Renderer** (`src/renderer/`) — React 19 + Tailwind CSS 4 + Vite
- **MCP server** (`src/mcp/`) — Standalone Node.js process spawned by CLI tools
Path aliases: `@shared`, `@renderer`, `@main`
## Contributing
We're actively looking for contributors, especially for the Electron app on Windows and Linux.
- **[Getting Started guide](https://codefire.app/getting-started)** — Set up the app
- **[Testers Wanted](https://github.com/websitebutlers/codefire-app/discussions/48)** — Testing guide with platform-specific instructions
- **[Developer Wishlist](https://github.com/websitebutlers/codefire-app/discussions/49)** — Areas where we need help (search engine, browser automation, testing, MCP)
- **[Community Guidelines](https://github.com/websitebutlers/codefire-app/discussions/47)** — How to get involved
- **[CONTRIBUTING.md](CONTRIBUTING.md)** — Code style, branch naming, and PR guidelines
- **[SECURITY.md](SECURITY.md)** — Vulnerability reporting
### Priority Contribution Areas
1. **Semantic search improvements** — Local embedding fallback, reranking, better chunking
2. **Browser automation** — Network capture, session persistence, Web Vitals
3. **Testing** — Swift unit tests, MCP protocol tests, E2E browser tests, CI matrix builds
4. **Cross-platform parity** — Port features between Swift and Electron
5. **MCP server extensions** — Git operations, custom tool plugins, metrics
## Requirements
- **macOS (Swift):** macOS 14.0 (Sonoma) or later, Apple Silicon
- **Electron:** Windows 10+, Ubuntu 20.04+, or macOS 10.15+ (Intel or Apple Silicon via Rosetta)
- **OpenRouter API key** for AI-powered features ([get one here](https://openrouter.ai/keys))
- An AI coding CLI: [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [Codex CLI](https://github.com/openai/codex), or [OpenCode](https://github.com/sst/opencode)
## License
MIT