Skip to content

Alpha · local-first · Ollama

A local coding agent with explicit authority.

local-agent is an experimental terminal coding agent for Ollama, built on Bun and rendered with Tuimark. Inspect repositories, edit files, run commands, and call MCP tools in build; switch to plan and the host removes every mutating tool, not just the prompt.

Mutating effects require approval by default.

Trust boundaryLocal-first validates endpoints. On macOS, commands can run sandboxed; nothing else is.
A demo turn, drawn from the Tuimark client's own render of it: each tool card says how it ended and what an edit changed, and a command waits for your decision before it runs.
Inference
Ollama
Authority
build · plan · chat
Extensions
MCP integrations
Platforms
macOS · Linux

Host-enforced modes

Authority is a mode, not a suggestion.

The host decides which tool surface exists. Changing modes changes real execution policy, not only the wording sent to the model.

Understand the modes
buildInteractive work

Inspect the repository, edit files, run commands, and call MCP tools. Mutating effects require approval by default.

read · edit · command · MCP
planRead-only analysis

The host offers only read-only tools and rejects write, edit, command, and MCP attempts regardless of approval. The policy is enforced by the host, not by the prompt.

read · list · search · fetch · web search
chatQuestions and research

The read-only research tools and read-only subagents, without the coding preamble or the todo list: for questions, documentation lookups, and guides. MCP tools stay, each call behind its approval.

read · search · fetch · web search · subagents · MCP

Model admission

The host admits the model before the first turn.

Interactive runs check Ollama up front: a missing model or an oversized context stops the session with a clear line, not a first-turn surprise.

  • Default model qwen3.5:4b-q4_K_M — the smallest that passed the agent battery.
  • Any installed model with --model; context planned for your memory and capped at the model's native window.
  • A model on Ollama's MLX runner gets a warning: there the size reserves nothing.
  • A 15-second admission check before the screen opens.
  • /provider asks Ollama again at any time: the model, the planned context, and how it is loaded.
Explore Ollama models

Readable effects

See the request, the decision, and the receipt.

By default, repository mutations, commands, and MCP calls require an explicit decision. Every decision is a key press in the same transcript you are already reading.

Decisions stay visible.

When approval is required, the card keeps the tool and its arguments together before execution.

Allow once
y · one request
Allow for session
a · this session
Always allow
! · a saved rule for exactly this
Deny
n or esc · stop this request

Sessions are opt-in, explicit, and inspectable.

Nothing is persisted until you point at a session database with --session-db. Then resume, list, and inspect stay separate, tool-free operations.

Resume
--resume HANDLE continues a session
Inspect
--session-info · --recovery-info
Switch
/sessions picker inside the client
Safety
interrupted outcomes are never auto-replayed

Sessions are experimental and live in a separate SQLite database you choose. Export any transcript to markdown with /export.

When it needs a decision, it asks.

In the Tuimark client the model can stop and ask one question: a choice, a yes or no, or a typed answer. It opens in the transcript, above the composer, and what you were typing waits until it closes.

An answer is never an approval: an edit or command after a "yes" still shows its card.

Give it an objective, and it keeps going.

In the Tuimark client, /goal runs build turns toward an objective until the model reports done or blocked, or a limit stops it: 8 turns by default, 30 minutes, 200k output tokens, or two turns in a row that change nothing. esc or /goal stop ends it.

Every turn keeps its cards, rules and sandbox. Done is the model's word: the closing notice names evidence only for a command that exited 0.

One gateway, every tool, one card each.

Point your MCP config at a gateway such as mcphub and the model finds the tool it needs: resolve_tool routes a goal to a tool, call_tool runs it. Plan mode offers no MCP at all.

The approval names the tool behind the gateway, never call_tool, so a session grant (a) covers that one tool alone. A result the server does not mark as an error still reads unverified.

Ask three things, get three answers at once.

The task tool hands one question to a subagent, and several task calls in one reply run in parallel, up to four at a time. In the Tuimark client they share one Subagents card while they run, a row each. When they finish, each gets a card with the turns it took and the first line of its answer, and /details shows the rest.

A subagent only reads, fetches and searches: no edits, no commands, no MCP, no subagents of its own, and it never asks you anything.

Find it again without scrolling back.

In the fullscreen Tuimark client, ctrl+f (or /search) searches this conversation: your messages, the replies and the tool cards. Up and down choose a match; enter opens it in a viewer, where n and p step through the rest.

Inline, /search prints the matches into your scrollback instead. The client's own notices are not searched.

Inspect the boundary

Local-first is precise, not absolute.

  • 01

    Ollama runs on your machine by default, on loopback. A remote Chalupa provider requires an explicit environment opt-out from local-only.

  • 02

    plan mode removes the mutating tools at the host: write, edit, command, and MCP calls are denied no matter what the model asks for.

  • 03

    Commands run exactly as written — there is no shell — with your permissions, in your workspace, behind an approval card.

Read the full safety model

Focused local tools

One host. A wider local-first toolchain.

Connected integrations, test infrastructure, and related projects keep separate ownership boundaries. MCP-capable does not mean bundled or silently trusted.

Interface and testingTuimark · GlyphrunThe terminal UI engine and terminal contract tests
Context and stateVecgrep · TinyVault · file.cheapRelated search, storage, and secrets tools
EvidenceGlyphrun · Cairntrace · VidtraceTerminal, browser, and recording evidence
OperationsMonitor · BobRelated observation and repository tooling
Explore the ecosystem

Install

Bring the agent to where your code already lives.

Install the command, connect Ollama, and begin with a read-only request in plan mode.

macOS and Linux
curl -fsSL https://local-agent.dev/install.sh | sh
Homebrew
brew install --cask abdul-hamid-achik/tap/local-agent

Local-first by default. Approval-gated by design.