A Kernwise Labs project
Understand the repository. Ground the task in real evidence. Hand off a reviewable Task Pack.
ContextForge is a local-first desktop workspace that understands your repository, selects real project evidence, and turns tasks into reviewable Task Packs for Codex, Cursor, Claude Code, Gemini, and other coding agents.
Product tour · Capabilities · Local MCP · Architecture · Roadmap
One local workspace for project readiness, grounded context, Task Packs, and agent handoff.
| Scan a real repository, detect stack and project signals, assess AI readiness, and understand the task before choosing files. | Select implementation context from real repository evidence instead of inventing files, owners, APIs, or architecture. | Build a reviewable Task Pack shaped for the target coding agent, with rules, constraints, context, and verification guidance. |
Repository → Task Understanding → Grounded Context → Review → Task Pack → Coding Agent
ContextForge is designed around one idea: better coding-agent results start with better context, not bigger prompts.
Review project readiness, checks, memory, and real repository context before generation.
Generate a portable instruction package with the selected context, constraints, agent profile, and verification guidance.
Agent profiles change how a Task Pack is framed — context shape, instruction style, verification expectations, and boundaries — without silently running an agent or writing to the repository.
Reports summarize project readiness, recurring gaps, Task Pack activity, and the next useful actions across the local workspace.
- Local-first by default. Repository scanning, SQLite storage, context selection, Task Packs, and MCP run locally.
- Grounded instead of guessed. Context is selected from real inventory paths and repository evidence.
- Explainable selection. Files carry roles, reasons, confidence/evidence signals, review state, and diagnostics.
- Guarded workflows. Missing values, weak ownership evidence, unsafe targets, and ambiguous scope can stay in clarification, review, or investigation flows.
- Reusable project knowledge. Project Memory, templates, rule profiles, acceptance criteria, AGENTS.md, and saved Task Packs survive restarts.
- Agent-aware handoff. The same project context can be shaped differently for Codex, Cursor, Claude Code, Gemini, or a generic coding agent.
- Add and rescan local repositories.
- Detect stack, package manager, scripts, tests, documentation, CI, configuration, and repository inventory signals.
- Track AI-readiness issues and workspace-level priorities.
- Maintain project-specific memory and decisions.
- Review local Git state and lightweight project changes.
- Understand informal English, Russian, and mixed-language tasks before file selection.
- Ask focused clarification questions when required information is missing.
- Select grounded implementation and supporting context from real project evidence.
- Apply templates, rule profiles, custom rules, and acceptance criteria.
- Generate, edit, save, copy, and export Task Packs as Markdown or text.
- Show selector, generation, context, and performance diagnostics.
- Persist Task Packs locally with lifecycle/revision foundations under active development.
- Optional local or configured AI refinement with validated fallback.
- GitHub device authentication and Issue ↔ Task Pack workflows.
- Explicit Desktop Link handoff to the ContextForge website.
- Local stdio MCP server for Codex and other MCP-compatible clients.
ContextForge keeps source code local unless the user explicitly starts an external workflow.
- SQLite is the default desktop storage.
- Absolute local project roots are omitted from exported Task Pack metadata.
- Diagnostics avoid persisting raw prompts, model responses, source snippets, secrets, and absolute paths where they are not required.
- GitHub workflows send repository/issue metadata only when explicitly requested.
- Website publication transfers only the selected Task Pack and applies privacy checks.
- MCP list operations avoid exposing full Task Pack prompts by default and redact secret-like values.
- ContextForge does not silently edit repository files, mutate Git, publish releases, or launch coding-agent work.
- Node.js 20+
- npm
- Optional: Ollama for local AI refinement
- Optional: Docker for PostgreSQL adapter experiments
npm install
npm run devDevelopment mode starts the local Express API, Vite renderer, and Electron desktop shell.
npm run buildnpm run test:generation:taskpack
npm run test:task-pack-lifecycle
npm run test:task-pack-lifecycle-storage
npm run test:mcp
npm run test:repository-hygieneAdditional selector, grounding, safety, performance, benchmark, and Validation Lab commands are available in package.json.
ContextForge includes a local stdio MCP server that uses the same local storage and guarded Task Pack pipeline as the desktop backend.
Task Pack creation is disabled by default and requires both:
- an explicit local permission;
confirmCreate: trueon the individual tool call.
npm run build
npm run mcp:start
npm run test:mcpSee docs/mcp.md for setup, permissions, tools, resources, prompts, Codex registration, and troubleshooting.
ContextForge Desktop
├─ Electron shell
├─ React + TypeScript + Vite renderer
├─ Local Express API
│ ├─ scanner and readiness
│ ├─ Task Understanding and clarification
│ ├─ context selection / ownership / authorization
│ ├─ Context Builder and Task Pack generation
│ ├─ Git + GitHub workflows
│ └─ SQLite-first StorageAdapter
└─ Local MCP stdio server
├─ project / memory / Task Pack reads
└─ explicitly authorized Task Pack creation
ContextForge is currently in the 0.7.1-alpha development cycle.
The desktop product, local storage, Context Engine, Task Pack generation, and MCP foundation are working. The current development focus is the Task Pack lifecycle: immutable revisions, history, drafts, review state, safe editing, and stronger recovery guarantees.
A packaged installer is intentionally not published yet. The goal is to stabilize the desktop workflow before the first public 1.0.0 release.
0.7.x alpha → desktop + context foundation
0.8.x alpha → Task Pack lifecycle, revisions, drafts, review
0.9.x beta → stabilization, UX, packaging, real-world testing
1.0.0-rc → release candidate
1.0.0 → first stable ContextForge Desktop release
docs/ROADMAP.md— product roadmap and milestonesdocs/MVP.md— current alpha product boundarydocs/mcp.md— local MCP server and Codex setupdocs/CONTEXT_ENGINE_V2_ROADMAP.md— Context Engine v2 baseline and rollout notesdocs/VALIDATION_LAB.md— portable validation workflowdocs/SELECTOR_BENCHMARK.md— selector benchmark modelCHANGELOG.md— detailed change historyCONTRIBUTING.md— contribution workflowSECURITY.md— security and vulnerability reporting
ContextForge — local project context, grounded for coding agents.




