This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady
What I Built
Every developer knows the dreaded feeling of returning to an interrupted task: you close your laptop at the end of the day or get pulled into a 2-hour meeting, and when you return, you waste 30 to 45 minutes just reconstructing your mental state:
- "Which files was I editing without committing?"
- "What was that terminal error stack trace?"
- "What experiments did I already try that failed so I don't repeat them?"
- "What is my exact next step to resume coding right now?"
To solve this, I built ContextGhost ā an open-source, developer work-memory assistant that captures ephemeral, uncommitted developer context and synthesizes it into actionable Resumption Briefings powered by open-weight AI.
Key Capabilities:
- Zero-Commit Context Capture: Captures uncommitted Git diffs, scratch notes, terminal logs, and previous failed debugging attempts.
-
Multi-Layer Secret Redaction: Automatically strips API keys, JWT tokens, AWS/Stripe credentials, and database connection strings into
[REDACTED_SECRET]before storage or AI synthesis. - AI-Powered Resumption Briefing: Synthesizes an executive summary, checkable unfinished tasks, exact step-by-step resumption instructions, and a Resumption Readiness Score.
- Searchable Work Memory: Fast retrieval across all past debugging sessions and technical notes.
- Built-in User Guide & Manual: An interactive, in-app documentation guide explaining every section.
Demo
- Live Application: https://context-ghost.vercel.app
- In-App User Manual: https://context-ghost.vercel.app/guide
Code
The entire codebase is open-source and organized as a clean monorepo:
ContextGhost š»
Forget where you left off. ContextGhost remembers.
ContextGhost is a developer work-memory assistant that helps software engineers resume interrupted work without reconstructing their entire mental context. It captures your active Git state, modified files, terminal errors, test results, and notes, uses a hosted open-weight AI model (via OpenRouter or Groq) or a local Ollama instance to synthesize a grounded session summary, persists relational records in PostgreSQL, and generates actionable "Resume My Work" briefings whenever you return to your codebase.
Built for Hacktoberfest 2026 Week 3 ("Slow and Steady"), ContextGhost demonstrates that open-weight AI models can eliminate mental fatigue and repetitive context-switching without requiring heavy local server installations or proprietary closed APIs.
ā” The Problem: Context Switching Fatigue
Developers lose up to 40% of their daily productive hours recovering from interruptions:
- What was I implementing right before that 2-hour meeting?
- Which files did I touch, and why?
- ā¦
- Frontend: React, Vite, Tailwind CSS, Lucide Icons (hosted on Vercel)
- Backend: Node.js, Express, Prisma ORM, PostgreSQL (hosted on Render & Prisma Accelerate)
- AI Engine: Hosted open-weight inference (Groq / OpenRouter) with local offline Ollama fallback
How I Built It
ContextGhost was built around the philosophy that AI should assist developer workflow without demanding proprietary lock-in or heavy infrastructure costs:
-
Hosted Open-Weight Models:
- Integrated Qwen 3.8 27B hosted on Groq's high-speed LPU infrastructure, delivering ultra-fast (sub-second) structured JSON analysis on a free tier.
- Built a pluggable AI provider architecture (
GroqProvider,OpenRouterProvider, andOllamaProvider) via a centralizedProviderFactory.
-
Offline & Edge Flexibility:
- If a developer is working offline on an airplane, ContextGhost seamlessly falls back to a local Ollama instance (
qwen2.5:1.5b) without modifying any application code.
- If a developer is working offline on an airplane, ContextGhost seamlessly falls back to a local Ollama instance (
-
Privacy First by Design:
- Context is sanitized through a deterministic regex-based secret scrubber before it ever reaches the AI engine or PostgreSQL database.
- A live "Inspect Sanitized Payload" modal allows developers to review exactly what will be sent to the model with explicit consent toggles.
-
Structured JSON Validation & Fallback:
- Implemented a resilient prompt engineering pipeline that forces deterministic JSON schemas (
summary,immediateObjective,unfinishedTasks,resumptionSteps). - If an AI provider experiences rate-limiting or network timeouts, the system gracefully falls back to a structured
RAW_SNAPSHOTso developer work is never lost.
- Implemented a resilient prompt engineering pipeline that forces deterministic JSON schemas (
Why Does Open Innovation Matter?
Open innovation is the cornerstone of developer tooling:
- Developer Trust & Privacy: Proprietary, closed-source models require piping sensitive source code, internal error traces, and architectural thoughts into opaque corporate black boxes. Open-weight models guarantee that developers can inspect, host, and verify exactly where their data goes.
- Longevity & Portability: Unlike closed APIs that can deprecate models or change pricing overnight, open-weight models (like Qwen, Llama, and Mistral) can run anywhere ā from serverless cloud providers like Groq to an air-gapped local laptop via Ollama.
- Hyper-Specialization: Open innovation allowed us to benchmark and switch open-weight models for structured code synthesis without rewriting any backend logic.
The Lazy Payoff
ContextGhost is the ultimate tool for lazy engineering:
- No More Re-debugging: Instead of spending 45 minutes on Monday morning trying to remember why a webhook signature failed on Friday, ContextGhost presents an exact 3-step checklist of where you left off.
- Effortless Context Dumps: You don't have to write structured documentation. You just paste your raw terminal output and a messy sentence, and the open-weight model turns it into a structured, checkable resumption plan.
Prize Categories
- Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady
- Groq / Open-Weight AI Track
Top comments (1)
Nice project, the resume-my-work idea is handy. I'm Hayden and I build DeployVet, a free site checker (not a pen test). I ran a quick check on your live demo and have a short list of easy tweaks. Want me to send it, free?