Skip to content
7innngPublic

About

Drop chats & screenshots today. Wake up to codebase-aware, agent-ready plans tomorrow.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Mornstack App Icon

Mornstack

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.

Release Platform Built with Wails v2 MIT License

English  ·  简体中文


Why Mornstack?

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"]
Loading

Key Features

Zero-Friction Capture

Summon the native macOS floating Quick Capture panel anywhere with ⌘⇧M — without pulling the main window to the front — or paste screenshots anywhere in the app with ⌘V. Tag items for Today or Tomorrow in one keystroke.

Auto-Routing & Project Profiles

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.

Permanent #n Numbering & Cross-Day Context

Task numbers are separated from card display order: each project assigns permanent monotonic #n IDs that never shift on completion, deferral, reordering, or 1-to-1 regeneration. Unfinished tasks from other dates appear as read-only clickable hints (e.g. Related to Yesterday #12) without auto-moving dates.

Smarter Triage, Implicit Siblings & Dependency Release

Targeted @#n adjustments automatically inspect unfinished sibling tasks touching the same file, API, or business rule without forcing unnecessary serialization, and can explicitly release obsolete dependencies when plans evolve — while preserving finished work and flagging blocking questions instead of guessing.

External AI Skill Control & PR Mode

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 #n done live. Enable per-project PR Mode to enforce registering a PR number/link and completion summary on every completed task.

Four Connection Modes & 100% Local Data

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.


AI Skill Integration & PR Mode

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).

Setup in 10 Seconds

  1. Keep Mornstack running and open Settings → AI Skill Integration (AI Skill 联动).
  2. Click one-click install for Claude Code, Codex, or Antigravity.
  3. 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.

What External AIs Can Do

  • 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, verified file:line evidence, 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 #n numbers
  • 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.

Security & Read-Only Isolation

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.

Connection Modes

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, @#n Task 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 from Codex.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.

Installation

macOS (Recommended)

  1. Download the latest macOS archive (Mornstack-v*-darwin-arm64.zip) from GitHub Releases.
  2. Extract and drag Mornstack.app into /Applications.
  3. If macOS Gatekeeper flags an unsigned build on first launch, run:
    xattr -cr /Applications/Mornstack.app
  4. 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.

Windows x64

  • Download the portable executable (Mornstack-v*-windows-x64.exe) from GitHub Releases, or build from source with wails build -platform windows/amd64 (output at build/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.

Quick Start & Shortcuts

  1. 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).
  2. Capture All Day: Drop screenshots, bug reports, or chat snippets into Today or Tomorrow — or let Auto-Route file them to the right project.
  3. Plan & Refine: Let background planning run automatically or trigger it manually. Answer any blocking questions, follow cross-day hints, or type @#n in the composer to ask about or adjust a specific unfinished task (automatically checking related siblings and stale dependencies).
  4. Execute in the Morning: Copy any prompt manually or let your external AI agent read #n, inspect original screenshots, and mark #n done via the Mornstack Skill.

Keyboard Shortcuts

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

Build from Source

Requirements

  • Go 1.27+ (see go.mod)
  • Node.js 20+ & npm
  • Wails CLI v2 (go install github.com/wailsapp/wails/v2/cmd/wails@latest)

Commands

# 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

Run Tests

# Backend Go tests (with race detector)
go test -race -count=1 ./...

# Frontend unit & interaction tests
cd frontend && npm test

Architecture & Tech Stack

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\

License

Released under the MIT License.

About

Drop chats & screenshots today. Wake up to codebase-aware, agent-ready plans tomorrow.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages