AI coding terminal

MendCodeto code

Shape how AI codes: prompt modes, model roles, smart permissions, memory control, packages, worktrees, TSM, mflow, and a TUI your team can make its own.

minimalsmall harness promptPROMPT
focusprovider-family profilePROMPT
fullruntime policy contextPROMPT
reviewsmart permissionsSAFETY
planreview then buildFLOW
routemodel rolesSETUP
approvememory changesCONTROL
trackusage insightsSTATS
syncagent coordinationMFLOW
extendwidgets and pluginsTUI
treesworktree flowTSM
scriptyour own behaviorCUSTOM
minimalsmall harness promptPROMPT
focusprovider-family profilePROMPT
fullruntime policy contextPROMPT
reviewsmart permissionsSAFETY
planreview then buildFLOW
routemodel rolesSETUP
approvememory changesCONTROL
trackusage insightsSTATS
syncagent coordinationMFLOW
extendwidgets and pluginsTUI
treesworktree flowTSM
scriptyour own behaviorCUSTOM
Capabilities

A harness you can shape.
A workflow your team can share.

01

AI Coding Terminal

Open the public mendcode CLI in any repository, start an interactive coding TUI, or run a task with an initial message from the same local harness.

02

Prompt Modes

Choose minimal for low-noise experiments, focus for normal provider-family behavior, or full when package, memory, workflow, and runtime policy context should be present.

03

Model Roles

Assign different models to default, small, plan, build, code, review, subagent, title, compaction, summary, memoryExtractor, and permissionReviewer work.

04

Smart Permissions

Choose approval, smart, or full_access. Smart mode can route configured actions through a permissionReviewer role, and if that reviewer is missing MendCode asks instead of silently approving.

05

Approval-Gated Memory

Keep memory intentional. Generated memories become proposals first, project and global scopes stay separate, and direct saves require explicit user intent.

06

Custom TUI Profiles

Shape prompt chrome, lead strings, bottom status, home title, pet, chat presentation, themes, widgets, routes, dialogs, and plugins without patching runtime internals.

07

Package System

Bundle commands, agents, modes, skills, prompts, MCP config, TUI profiles, model roles, memory settings, permissions, and scripts into reusable team packages.

AB
08

Agent Coordination

Use optional mflow coordination, local locks, TSM, and worktree orchestration when several agents or terminals need to work without stomping each other.

09

Usage Insights

See local usage signals like tokens, sessions, AI time, words, response load, top tools, agents, models, and daily activity from inside the TUI.

Setup

Install. Setup.
Then start coding.

mendcode.install
Install MendCode
$ curl -fsSL https://raw.githubusercontent.com/MendCode/MendCode/main/src/mendcode/install | bash
✓ installed ~/.mendcode/bin/mendcode
$ cd your-project
$ mendcode
→ opens the terminal UI in this repo
Installing binary → linking command → launching TUI.
Ready[ Copy Install ][ Open CLI ]
Prompt and runtime control

Tune the
coding harness.

MendCode makes the AI coding terminal explicit: prompt mode controls how much harness context is added, focus profiles adapt behavior per provider family, and TUI profiles keep the interface shareable without patching runtime internals.

minimal
Small harness boundary for low-noise tasks
focus
Default provider-family prompt policy
full
Adds package, memory, workflow, and product context
TUI ShowcaseAll configurable
Prompt modes
minimal / focus / full harness context
prompt
Focus profiles
codex / claude / gemini / kimi / deepseek / mistral
model
Model roles
default / build / review / subagent / permissionReviewer
roles
Prompt surface
chrome presets / lead string / marker / input placement
profile
Status row
model / provider / mode / context / custom scripts
live
Home identity
ASCII title / logo / welcome layout
profile
Chat presentation
raw / minimal / mendcode transcript rendering
runtime
Widgets & slots
footer widgets / side panels / working indicator / surfaces
plugin
Routes & dialogs
custom commands / setup panes / modal surfaces
extend
Packages & profiles
shareable TUI config / team harness / rollback
package

Customizable home screen

main screen example · 01 / 07
Wordmark welcome preview
Usage Insights

Know your usage.
Keep it local.

Inspect global, project, or directory-level evidence from inside the TUI: tokens, sessions, AI time, tools, agents, models, changed files, cache mix, and daily activity — without cloud analytics.

MendCode Usage Insights dashboard showing token activity, sessions, tools, agents, models, and local daily usage
Memory Center

Remember with
review gates.

Memory Center is the TUI workspace for reviewing saved memories, pending proposals, categories, project scopes, and Dream maintenance without turning every chat into permanent context.

01
Saved memories and generated proposals stay separated until you approve them.
02
Project and global scopes are visible side by side, with categories and risk notes.
03
Dream surfaces maintenance state so overnight cleanup stays reviewable instead of invisible.
04
The side chat answers memory-specific questions without turning Memory Center into the coding agent.
MendCode Memory Center with saved memories, pending proposals, category graph, Dream state, and side chat
Packages

Package your
harness.

Turn a tuned MendCode environment into a reusable bundle: command palette, agents, modes, prompts, TUI profile, model policy, permissions, memory defaults, and worktree rules. No provider tokens or machine-local secrets.

Commands
.mendcode/commands
Agents
.mendcode/agents
Modes
.mendcode/modes
Skills
.mendcode/skills
Prompts
.mendcode/prompts
MCP config
servers / files
Context files
docs / rules / refs
Plugins
.mendcode/plugins
Commands
.mendcode/commands
Agents
.mendcode/agents
Modes
.mendcode/modes
Skills
.mendcode/skills
Prompts
.mendcode/prompts
MCP config
servers / files
Context files
docs / rules / refs
Plugins
.mendcode/plugins
TUI profile
chrome / status / home
Widgets
footer / panels / scripts
Theme tokens
terminal identity
Model roles
build / review / subagent
Focus profile
default context mode
Budget config
limits / guardrails
Memory config
defaults, not personal data
Permissions
approval / smart / full
Worktree policy
parallel work rules
TUI profile
chrome / status / home
Widgets
footer / panels / scripts
Theme tokens
terminal identity
Model roles
build / review / subagent
Focus profile
default context mode
Budget config
limits / guardrails
Memory config
defaults, not personal data
Permissions
approval / smart / full
Worktree policy
parallel work rules
Safety

Control is
non-negotiable.

MendCode keeps control explicit: choose approval, smart, or full_access; keep memory intentional; route smart reviews through a model role; and share packages without provider tokens or local secrets.

approvalsmartfull_accesspermissionReviewermemory proposalsno package secrets

Permission modes

Choose approval, smart, or full_access depending on how much review you want in the current project.

No secrets in packages

Provider tokens, auth files, local credentials, and machine-local state are not part of shareable packages.

Intentional memory

Memory is opt-in. Generated memories become proposals first, and you decide what persists.

Risk-aware review

Smart permissions can route risky shell, script, and delete prompts through a permissionReviewer model role before execution.

CLI runtime

The AI coding terminal
with runtime controls.

MendCode is not just a wrapper around a model. It is the public mendcode CLI, interactive coding TUI, prompt-mode controller, model-role runtime, package system, and local coordination harness for serious repo work.

Prompt modes

Minimal, focus, and full let you control harness context instead of hoping the prompt behaves.

Model roles

Route plan, build, review, subagent, summary, memory extraction, and permission review independently.

Developer harness

Packages, worktrees, TSM, and mflow turn the CLI into a repeatable team workflow.

Custom terminal

Tune prompt chrome, status, home identity, widgets, packages, and profiles from the TUI.

MendCode

Open the AI coding terminal, run a task, inspect setup, or ask for repo status from the same CLI runtime.

# open the coding terminal
mendcode
# inspect provider, models, budget, prompt, package, TUI, memory, permissions
mendcode setup status
# start with intent
mendcode run "review this repo and draft a plan"
# quick control-plane turn
mendcode chat "summarize current status"
Product principles
01 / 04

Make the terminal configurable, not hardcoded.

M

MendCode

Design principle, TUI

Surface

profile-driven terminal

Start the AI coding
terminal in your repo.

Install the public mendcode CLI, run setup once, then choose prompt mode, model roles, permissions, memory, packages, TUI profiles, usage insights, worktrees, TSM, and mflow around your workflow.

macOS installer. Detects Apple Silicon vs Intel automatically.
View GitHubcopy installer, then run mendcode