← All projects

Grenmind

Grenmind is a native macOS app for running open-weight language and image models on Apple Silicon. It is a local-first personal AI environment: chat, a coding agent, and image generation, with secrets kept on the machine. Chat and coding run locally; heavier image edits can run on an on-demand cloud GPU the owner controls.

Swift · SwiftUI · Python · FastAPI

  • Python and FastAPI services, with automated tests. The Mac app is backed by FastAPI services for memory, LLM inference and tool calling, image generation, and GPU work, plus a tools package for the coding agent. Those packages ship with unittest and pytest suites. Swift and Xcode tests exist and are run on a Mac.
  • LLM tool calling across model families, not one prompt format. The coding agent uses the local OpenAI-compatible server’s native tools / tool_calls interface when the server provides it. Otherwise it parses each model family’s native text format: Qwen XML, Hermes JSON inside <tool_call>, and Mistral [TOOL_CALLS]. Broken JSON is repaired before a call is counted as malformed. Where the template supports it, thinking is turned off with chat_template_kwargs.enable_thinking=false; leaked <think> blocks are stripped, and reasoning-only output is never used as the final answer.
  • Swift and SwiftUI product engineering, not a script around a server. A Developer ID–signed macOS app, with SwiftData and schema migrations, is the control plane for local chat, the coding agent, and image generation. Secrets are stored in the macOS Keychain, not in the repo. The memory service can encrypt its local store with SQLCipher.
  • Safe, testable agent edits. edit_file accepts a unique whitespace-normalized match and puts the file’s indentation back. Ambiguous or missing matches do not write. Secrets in step previews are redacted.
  • Model quality is measured, not guessed. Models are compared on agent tasks — tool calling, edits, and tests — rather than by vibe. The companion Python harness, agent-task-bench, is the standalone form of that evaluation, so a reviewer does not have to stand up the full Mac app.

Stack

Swift · SwiftUI · Python · FastAPI

Repository

Source available on request

Get in touch

Email is the best way to reach me.

glen@gmbxdigital.com