Drop chats & screenshots today. Wake up to codebase-aware, agent-ready plans tomorrow.
An asynchronous AI Pre-Planner desktop app with verified read-only codebase inspection, stable project-scoped #n task numbering, and a built-in AI Skill bridge with optional PR Mode.
English · 简体中文
In daily software development, requirements rarely arrive as neat specifications — they show up as fragmented chat messages, cropped screenshots, and hallway ideas scattered across the day.
The real bottleneck isn't getting a coding agent to write code; it's context-switching, mapping messy feedback onto the real codebase, deciding what belongs together or apart, and writing crisp prompts.
Mornstack sits quietly in your menu bar as an asynchronous AI Pre-Planner: throw in raw chats and screenshots whenever they happen, let Mornstack inspect your repository strictly read-only (via Direct API with built-in read-only file tools, or a local Codex CLI sandbox), and start your morning with a structured, dependency-ordered stack of permanent #n tasks — ready to copy or drive directly from Claude Code, Codex, Antigravity, Cursor, and other AI agents via the built-in Skill.
flowchart LR
A["Chats & Screenshots<br/>⌘⇧M Quick Capture / ⌘V Paste"] --> B["Inbox & Auto-Route<br/>Self-Learning Project Profile"]
B --> C["Read-Only Inspection<br/>Direct API Tools or Codex Sandbox"]
C --> D["Smart Triage<br/>Merge · Split · Siblings · Cross-Day"]
D --> E["Morning Execution Stack<br/>Fixed #n · AI Skill · PR Mode"]
|
Summon the native macOS floating Quick Capture panel anywhere with |
Drop mixed feedback into the Inbox without picking a project first. Mornstack builds compact UI & module profiles for each repo, routes captures via a tool-free pass, asks confirmation on low-confidence matches, and learns your aliases & UI terms over time. |
|
Task numbers are separated from card display order: each project assigns permanent monotonic |
Targeted |
|
Connect Claude Code, Codex, Antigravity, Cursor, or any coding agent via an authenticated localhost bridge and zero-dependency Skill. Agents can read full prompts, original notes & screenshot paths, and mark |
Connect via Direct API (zero Codex CLI required), ChatGPT / Codex Direct, API + Codex, or a local Magpie gateway, with automatic system proxy detection. All todos, plans, and screenshots stay locally in SQLite with one-click retention cleanup. |
Mornstack ships with a built-in authenticated loopback control bridge (127.0.0.1, Bearer token stored in 0600 control.json) and a cross-platform, zero-dependency Skill (skills/mornstack) plus CLI (Mornstack ctl ... / mornstack-ctl).
- Keep Mornstack running and open Settings → AI Skill Integration (
AI Skill 联动). - Click one-click install for Claude Code, Codex, or Antigravity.
- Using Cursor, Windsurf, OpenCode, Cline, Trae, or another AI tool? Click Copy Universal Install Prompt (
复制通用安装提示词) and paste it directly into your AI — Mornstack exports the bundled Skill to a local folder and your AI installs & verifies it automatically.
- Inspect your stack:
list --date today --status open/list --date all(auto-matches the current repo by working directory) - Read full task context:
show <n>returns the execution prompt, verifiedfile:lineevidence, dependencies, cross-day hints, original captured notes (原文), and local screenshot file paths so multimodal agents can inspect screenshots directly - Complete tasks live: tell your AI "done #3" (
done 3 --note "...") — Mornstack updates the desktop card in real time without shifting any#nnumbers - Enforce Project PR Mode: toggle PR Mode (
PR 模式) in Project Settings / Profile. When enabled, external AI completions are strictly validated by the backend (pr_required) and must include both a PR number or URL (--pr "#128"/ URL) and a completion summary (--note), displayed as a clickable PR badge & note directly on the task card.
Mornstack treats repository content, chat text, and screenshots strictly as untrusted data across both execution backends:
| Boundary | Enforcement |
|---|---|
| Direct API Read-Only Tools | Built-in list_files, search_files, and read_file tools operate strictly inside the selected project directory — no shell execution, no writes, no symlink/junction following, and no hidden directories or secret files. Auto-routing disables project file tools completely. |
| Codex CLI Sandbox Probe | Before Codex CLI reads a single file of your repo, Mornstack runs a synthetic capability probe verifying read-only scope, blocked writes, blocked .env* / .git / .codex / .ssh / .aws / *.pem / *.key, blocked symlink/junction escapes, and disabled subprocess networking. |
| Local Control Bridge | Listens exclusively on 127.0.0.1 with a per-launch random Bearer token written with 0600 permissions in <dataDir>/control.json and cleaned up on exit. |
| Isolated Config & Auth | Codex runs with --ignore-user-config, --ephemeral, and a dedicated CODEX_HOME, with web_search / MCP / hooks / plugins disabled. API keys are stored natively in macOS Keychain or Windows Credential Manager. |
| Zero Raw Output Leakage | Only sanitized progress metadata (stage, command/tool summary, file count, token usage) is streamed to the UI — raw command output is never decoded or persisted. |
Configure your preferred connection under Settings → Connection:
- Direct API (
API 直连): No Codex CLI or Windows MXC required. Enter your Base URL, API Key (if required), and Model ID, click Test, confirm data consent, and save. Works out of the box for Project Profiles, Planning,@#nTask Q&A, and Auto-Routing on any provider supporting the OpenAI Responses API, function tool calling, and structured outputs (plus image inputs for screenshots). - Codex Direct / Magpie / API + Codex: Uses a locally installed Codex CLI (
npm install -g @openai/codex, or auto-discovered fromCodex.app/ChatGPT.app/ the OpenAI VS Code extension). On Windows, Codex CLI project analysis requires Windows 11 with MXC Sandbox passing the read-only probe — if unavailable, switch directly to Direct API in Settings.
- Download the latest macOS archive (
Mornstack-v*-darwin-arm64.zip) from GitHub Releases. - Extract and drag
Mornstack.appinto/Applications. - If macOS Gatekeeper flags an unsigned build on first launch, run:
xattr -cr /Applications/Mornstack.app
- Launch Mornstack, open Settings to set up Direct API or Codex, optionally install the AI Skill, add a local repository, and start capturing.
Minimum Requirement: macOS 12.0 (Monterey) or later.
- Download the portable executable (
Mornstack-v*-windows-x64.exe) from GitHub Releases, or build from source withwails build -platform windows/amd64(output atbuild/bin/Mornstack.exe). - Choose Direct API in Settings to run immediately without installing Codex CLI or enabling MXC Sandbox, or use Codex CLI on Windows 11 with MXC Sandbox.
- Add Projects: Click the project switcher to link one or more local repositories (and optionally toggle PR Mode). Mornstack automatically generates a read-only Project Profile (tech stack, pages/modules, UI keywords).
- Capture All Day: Drop screenshots, bug reports, or chat snippets into Today or Tomorrow — or let Auto-Route file them to the right project.
- Plan & Refine: Let background planning run automatically or trigger it manually. Answer any blocking questions, follow cross-day hints, or type
@#nin the composer to ask about or adjust a specific unfinished task (automatically checking related siblings and stale dependencies). - Execute in the Morning: Copy any prompt manually or let your external AI agent read
#n, inspect original screenshots, and mark#ndone via the Mornstack Skill.
| Shortcut | Action |
|---|---|
⌘⇧M (macOS) |
Toggle the global floating Quick Capture panel from any app |
⌘1 / ⌘2 (Quick Capture) |
Switch target date between Today and Tomorrow |
⌘V |
Paste clipboard screenshots anywhere in the main window |
⌘↩ |
Submit capture, or run read-only @#n task Q&A |
@#n |
Mention a fixed-number unfinished task in the composer to ask questions or regenerate |
- Go
1.27+(seego.mod) - Node.js
20+& npm - Wails CLI v2 (
go install github.com/wailsapp/wails/v2/cmd/wails@latest)
# Clone the repository
git clone https://github.com/7innng/mornstack.git
cd mornstack
# Run in live-reload development mode
wails dev
# Build macOS application bundle -> build/bin/Mornstack.app
wails build
# Build Windows x64 portable executable -> build/bin/Mornstack.exe
wails build -platform windows/amd64
# Optional: build standalone CLI controller
go build ./cmd/mornstack-ctl# Backend Go tests (with race detector)
go test -race -count=1 ./...
# Frontend unit & interaction tests
cd frontend && npm test| Layer | Technology |
|---|---|
| Desktop Shell | Wails v2 (Go + native WebView), macOS Objective-C NSPanel & status bar item |
| Frontend | React 19, TypeScript, Tailwind CSS v4, Radix UI, Lucide Icons |
| Local Storage | Embedded SQLite (modernc.org/sqlite, WAL mode) + local image archive |
| Credentials | macOS Keychain (go-keychain) & Windows Credential Manager (advapi32.dll) |
| AI Control Bridge | Authenticated 127.0.0.1 HTTP JSON server (control.json), embedded Agent Skill (skills/mornstack), & Go CLI (mornstack-ctl) |
| Planning Engine | Direct Responses API with built-in read-only project tools & local codex exec sandbox with JSON Schema structured output and multi-image input |
Local Data Locations:
- macOS:
~/Library/Application Support/Mornstack/ - Windows:
%APPDATA%\Mornstack\
Released under the MIT License.