Skip to content
skundu42Public

About

A light-weight terminal coding agent built on NVIDIA's NOAA framework.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Noah Code terminal wordmark

Noah Code

A durable, repository-aware terminal coding agent built on NVIDIA's NOOA framework

PyPI CI Python

Noah Code showing a sample build team, conversation, changed files, and review progress

The real Textual interface with deterministic sample data: a build team hands pagination changes to a read-only reviewer.

Noah keeps the conversation central while the sidebar tracks the current action, changed files, active plan, and agent handoffs. Tool execution stays visible, completed work compacts into readable records, and every session remains scoped to its repository.

Built on the NVIDIA OO Agents (NOOA) 0.0.13 runtime.

Install

Install Noah Code and its managed Python runtime with one command:

curl -LsSf https://raw.githubusercontent.com/skundu42/noah-code/main/install.sh | sh

Open a new terminal, move into a repository, and start Noah:

cd your-project
noah .

Noah is compatible with macOS on Apple Silicon and Intel, plus Linux on arm64 and x86_64. On Intel macOS (x86_64), the installer automatically selects the tracing extra (omitting mcp where no prebuilt cryptography wheel is published; override with NOAH_CODE_EXTRAS=mcp,tracing). Common installer flags:

# Inspect options, install a pinned release, or stop any running daemon and uninstall
curl -LsSf https://raw.githubusercontent.com/skundu42/noah-code/main/install.sh | sh -s -- --help
curl -LsSf https://raw.githubusercontent.com/skundu42/noah-code/main/install.sh | sh -s -- --version 3.0.0
curl -LsSf https://raw.githubusercontent.com/skundu42/noah-code/main/install.sh | sh -s -- --uninstall

Noah starts in Auto permission mode by default (auto_approve = true), approving routine actions automatically without prompting on every step while keeping protective denies and risky-action approvals enabled (switch to Normal or YOLO anytime with --permissions normal|yolo, NOAH_CODE_AUTO=0, or auto_approve = false in ~/.config/noah-code/config.toml). If a supported provider API key is already exported in your environment (for example ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, or GEMINI_API_KEY) or saved in Noah's private auth file, Noah auto-detects a coding model immediately without interrupting you (override anytime with --model, /model, or Ctrl+L). Otherwise, Noah opens the 1-step Quick Model Picker directly with Codex / ChatGPT account, local Ollama, popular coding models, and the on-demand provider wizard. Keys are stored in Noah's private auth file with owner-only permissions (0600); they are never written to project configuration or session history.

Why Noah

  • Universal model adaptation. A structured model capability registry automatically selects Chat Completions vs. OpenAI Responses API transport (with incremental streaming on both), clamps unsupported reasoning parameters per model, discovers live models across cloud APIs and local runtimes (Ollama /api/show, LM Studio, vLLM, llama.cpp), recovers tool calls and truncated replies from weaker or non-FC models, and handles outages with sticky circuit-breaker failover.
  • Repository-aware exploration. Run lock-free parallel ripgrep searches (with pure-Python fallback), inspect Git history and diffs, navigate and refactor across 35+ languages through monorepo-aware language servers (definition, type_definition, references, call_hierarchy, incoming_calls, outgoing_calls, code_actions, rename_preview, atomic rename_apply, status) with project-local and toolchain binary discovery, use an mtime-cached repository map, and search the web via DuckDuckGo or optional Tavily/Brave/Exa APIs.
  • Controlled, resilient edits. Apply anchored edits backed by a 5-stage fuzzy recovery cascade (exact, line-ending normalized, line-trimmed, indentation-flexible, and block-anchor) with strict uniqueness guards, or apply atomic multi-hunk unified diffs and Codex (*** Begin Patch) patches with 3-tier multi-language pre-write syntax validation, concurrent-change detection, fast bounded post-edit LSP diagnostics (prioritizing [new error]), inline diff cards, and rollback.
  • Visible execution & verification. Stream bounded shell output while commands run, run allowlisted polyglot test/lint/typecheck runners (pytest, uv run, bun, deno, node --test, cargo, go, sh -n) and workspace-internal && verification chains in default Auto mode, keep servers and watchers as managed background jobs, track revision-fingerprinted checks, and revisit activity details with F2.
  • Crash-safe work. Durable file intents roll back interrupted workspace-tool writes, rolling Git checkpoints (/checkpoints restore) protect shell-driven changes, and interrupted model runs resume after restart.
  • Persistent sessions & branching. Resume repository-scoped conversations, inspect turns in the message-level /timeline, /fork at any turn, /export to Markdown or JSON, rewind files and history with /undo --conversation, and save prompt drafts across restarts with /stash.
  • Token-efficient by construction. Lean tool-output bounds with disk-backed recall, lazy MCP loading by default (efficiency.lazy_mcp = true), cache-stable static-first request prefixes, zero-LLM-cost soft pruning of stale outputs and superseded deltas, adaptive context-window compaction, selective memory distillation, and route-aware cache telemetry via /tokens.
  • OpenCode-grade TUI craft. Signal-only chrome with a unified live turn bar (concrete file/shell/LSP action, elapsed time, and active todo), coalesced exploration rows, deduplicated inline edit diff cards, 13 built-in semantic themes + auto terminal detection + custom JSON themes with live preview, zero-freeze async fuzzy @file/@agent/@sym: completion, unified Command Palette (Ctrl+P / Ctrl+K), 1-step Quick Model Picker (Ctrl+L) + 1-key reasoning cycle (Alt+V / Ctrl+X v), configurable Ctrl+X leader chords, separated reasoning panels, diff line gutters with hunk staging/reverting, and large-paste chips.
  • Explicit control. Switch between implementation-focused build mode and read-only plan mode, with ordered allow, ask, and deny permission rules.
  • Extensible workflows. Add slash commands, opt-in skills (including .claude/skills, .claude/commands, and .claude/agents), 1-click MCP presets (noah mcp / /mcp), or markdown subagents; attach @files, @sym: symbols, and images when the task needs more context.
  • Coordinated agent teams & parallel orchestration. Launch a build, review, or investigation workflow from F9 or /team, or fan out parallel subagents (task.orchestrate, including isolated Git worktree writers) with live step telemetry in the TUI subagent strip and work ledger.
  • Long-running by design. Exponential retries, sticky circuit-breaker cooldowns, ordered fallback models, automatic rejected-media recovery & image-limit collapse, native CodeAct length auto-continuation, loop-guard nudges, cell-deadline background command handover (with /work toasts), and cancelled partial-output preservation keep long turns moving, while workspace leases, session lock-owner diagnostics (pid@host), sandbox environment scrubbing (env_allowlist), subagent OTel trace nesting, and NOOA 0.0.13 harness metrics in /health, /status, /trace, and /tokens keep unattended sessions observable.

Noah follows repository instructions from AGENTS.md, CLAUDE.md, and .noah-code/instructions.md.

Quick start

Describe the outcome you want rather than prescribing every edit:

Find the cause of the failing parser tests, implement the smallest safe fix, and run the
focused test file.

For work that benefits from several perspectives, give a team one clear objective:

/team build Add pagination to the search endpoint and cover its edge cases
/team review Find regressions in the current changes
/team investigate Trace why login fails after a session expires

Build teams analyze, implement, then review. Review and investigation teams stay read-only, including in plan mode. Press F9 to choose a workflow and edit its objective before sending; use F4 to inspect live team progress. In the console, /team lists the workflows.

Useful launch modes:

Noah runs in Auto permission mode by default (auto_approve = true) without a blocking first-run prompt:

  • Auto (default): Approve routine actions automatically without prompting on every step; block interpreters and keep protective denies and risky-action approvals.
  • Normal: Ask before commands that need approval; keep protective blocks enabled.
  • YOLO: Skip permission checks and approval prompts; use only in isolated, trusted workspaces.

This choice is separate from the AI model and build/plan mode. Switch anytime with --permissions normal, --permissions auto, or --permissions yolo (--yolo), NOAH_CODE_AUTO=0 for Normal, or auto_approve = false in ~/.config/noah-code/config.toml.

# Open another workspace
noah /path/to/repository

# Inspect and plan without editing
noah --mode plan .

# Run one task and exit
noah run "Explain how authentication is wired" .

# Emit one structured result on stdout (progress goes to stderr)
noah run --json "Fix the failing unit test" .

# Ask before commands that need approval (Normal mode)
noah --permissions normal .

# Explicitly select Auto mode (also the default)
noah --auto .

# Resume previous work (picker for last 3 repo chats, latest chat, or exact ID)
noah --resume .
noah --continue .
noah --session SESSION_ID .

# Use the line-oriented interface
noah --console .

# Bypass the background daemon and run in-process (or set NOAH_LOCAL=1)
noah --local .
noah run --local "Summarize this repository" .

By default, noah and noah run connect to an on-demand local background daemon over an owner-only Unix domain socket so repeated launches stay warm and active turns survive terminal disconnects. Use /detach or Ctrl+Q in the TUI to detach while keeping a running turn alive in the background, then reopen noah . to reattach seamlessly. Pass --local (or set NOAH_LOCAL=1) to run entirely in-process. Manage the daemon directly with:

noah daemon status          # add --json for structured status
noah daemon start
noah daemon stop            # add --force to stop while turns are active
noah daemon restart         # add --if-running to restart only if active
noah daemon logs -n 50

run --json reports status (completed, needs_input, failed, or cancelled), exit_code, explanation, session_id, run_id, session usage, and recorded checks. Check status when automating: a request for input keeps the existing exit code 0, but its status is needs_input. Check results are separate from task completion; an empty list means no checks were recorded. Errors keep nonzero exit codes and Ctrl+C returns 130. Delegated agents also retain needs_input in the work ledger.

Check the installation, environment diagnostics, and resolved configuration with:

noah --version
noah doctor .               # fast parallel check (<200ms) incl. workspace LSP status; add --deep, --strict, or --json
noah config show .
noah update --check         # alias: noah upgrade --check

The package also installs noah-code alongside noah as an equivalent entry point.

Inside the TUI

The interface keeps frequent actions within reach:

  • Unified palette, quick model picker, and leader chords. Press Ctrl+P (or Ctrl+K) for a categorized fuzzy Command Palette across actions, sessions, models, themes, agents, and tools. Press Ctrl+L for a 1-step Quick Model Picker with favorites (Ctrl+F), recents, and curated coding routes; cycle reasoning levels with Alt+V or Ctrl+X v; or use macOS/tmux-friendly Ctrl+X <key> leader chords.
  • Zero-freeze mentions, paste chips, and stashes. Type @file, @agent, or @sym: for async fuzzy completion without blocking the UI. Large pastes (>= 6 lines or >= 500 chars) collapse into inline paste chips that expand losslessly on submit, and /stash persists prompt drafts per workspace.
  • Inline diffs, reasoning panels, and hunk review. File edits render compact inline diff cards in the transcript, reasoning streams into visually separated panels when enabled, and Ctrl+D / /diff shows aligned line gutters, split/wrap modes (S/W), and active-hunk staging/reverting (G/H).
  • Compact approvals & inspectable teams. See the command and session scope together; expand the reason and rule with D. Use F9 to launch a team workflow and F4 to search assignments, filter work needing attention, and read agent results.

Type / to search the full command and configuration reference. The most common controls are:

Control Action
Enter Send the current prompt or accept a selected suggestion
Shift+Enter / Ctrl+J Insert a newline
Alt+Enter Expand or collapse the composer
Alt+Z Restore a displaced draft
Click / arrows in the prompt Position the editing cursor
Ctrl+A / Ctrl+V Select all / paste prompt text (large pastes collapse into paste chips)
Ctrl+X With selection: cut prompt text; with no selection: arm Ctrl+X <key> leader chord
Ctrl+Z / Ctrl+Y Undo / redo prompt edits
Ctrl+Home / Ctrl+End Jump to the beginning / end of the prompt; Shift selects
Drag, then Cmd+C / Ctrl+Shift+C Select and copy TUI text
Ctrl+Shift+C with no selection Copy the latest Noah reply
Ctrl+P / Ctrl+K Open the unified categorized Command Palette (Ctrl+K when composer is empty or unfocused)
Ctrl+L Open the 1-step Quick Model Picker (Ctrl+F toggles favorite)
Alt+V / Ctrl+X v Cycle reasoning effort to the next level supported by the active model
Alt+E Open the reasoning-effort picker
Ctrl+X <key> Leader chords (m model, t theme, d diff, s sessions, l timeline, f fork, u undo, e export, k palette, v variant, b sidebar, ? help)
Ctrl+G Open the searchable skills picker
Ctrl+O Open the session picker
Ctrl+R Search and recall a prior prompt
Ctrl+T Expand or collapse live tool output
Alt+Up Recall the newest queued prompt for editing
Ctrl+] Return to live transcript output
Tab / Shift+Tab Navigate focus; Tab completes suggestions (/ commands, @file, @agent, @sym:)
Enter or click a command Run the selected slash command or open its picker; required arguments stay editable
Ctrl+B Switch between build and plan mode
Ctrl+D Review changes with line gutters, split/wrap toggles, and hunk staging/reverting
Ctrl+C Stop the current run and pause queued follow-ups
Ctrl+Q Detach from the daemon session without cancelling active turns (or quit in --local mode)
F2 Open execution activity
F3 Open paginated conversation history
F4 Open the live agent, terminal, and job ledger
F5 Edit, reorder, resume, or discard queued follow-ups
F8 Show or hide the sidebar
F9 Choose a build, review, or investigation team workflow
Shift+F7 Focus or leave the scrollable context rail
Ctrl+E Edit the current prompt in $EDITOR
Ctrl+F Search messages in the active transcript
Alt+C Copy the latest fenced code block
F7 Inspect active context sources and token budget
/resume Choose from the last 3 chats in this repository
/timeline Open the message-level timeline to jump, fork, restore prompts/checkpoints, or export
/fork [TURN] Fork the session at HEAD or a specific turn
/export [md|json] [PATH] Export the current session to Markdown or JSON
/stash [push|pop|list|apply|drop] Save and restore persistent prompt drafts per workspace
/mcp Connect 1-click MCP presets, import Claude/Cursor MCPs, or add a server
/model Open the 1-step Quick Model Picker, or configure a provider/API key
/reasoning [cycle|EFFORT] Show, cycle, or set reasoning effort
/theme [NAME] Live-preview and pick from 13 built-in themes, auto, or custom JSON themes (Esc reverts)
/diff Review staged and unstaged changes with line gutters and hunk controls
/undo [--checkpoint|--conversation] / /redo Revert journaled edits, restore a Git checkpoint, or rewind conversation + files
/checkpoints [restore REF] List or restore rolling Git worktree checkpoints
/health Inspect durable runtime health, sandbox isolation & env_allowlist scrubbing, and NOOA 0.0.13 harness telemetry
/tokens Inspect tokens, cache usage, prefix stability, model wait, tool output, and NOOA 0.0.13 harness counters
/efficiency Switch between fast, balanced, and deep budgets
/team WORKFLOW OBJECTIVE Run a coordinated team, or queue it while another turn is active
/detach Detach the TUI from the background daemon while leaving active turns running
/update (/upgrade) Check for updates and open the Update Available dialog

On wide terminals, the side rail prioritizes the active operation, delegated agents, named terminals, Git branch and change counts, session, model usage, update state, and plan. Git status is refreshed in the background at turn boundaries, so the animated working state stays responsive. The main pane remains centered on the large Noah wordmark until the first prompt, then becomes the conversation and execution timeline. The composer footer keeps contextual keys and compact token, cache, and cost telemetry visible at every terminal width where they fit.

See the command menu and compact approval dialog

Noah Code command menu with aligned descriptions and a subtle selection highlight

The real command menu, captured with deterministic sample conversation data.

Noah Code compact permission dialog showing a shell command, session scope, and approval choices

The real approval dialog with a sample request. Screenshots illustrate UI behavior, not a live provider run or test result.

Sessions and crash recovery

Start a new session with noah ., resume the latest repository session with noah --continue ., or reopen an exact session with noah --session SESSION_ID .. Inside the TUI, use Ctrl+O, /sessions, or /continue.

Noah stores conversational history and host runtime state separately. If the process stops during an active run, the next launch restores pending steering, usage and budget counters, durable job logs, and the original request. Incomplete workspace-tool writes are rolled back, verified orphan process groups are cleaned up, and non-interactive runs continue automatically. A request that was waiting for user input remains paused for the next user message.

By default, only one Noah process may own a checkout at a time. Use /worktree create when independent agents need to work concurrently. See Reliability and long-running sessions for the recovery model, provider retry controls, quotas, and operational limits.

Child agents also retain their own conversation snapshots and task IDs. Noah can start, inspect, cancel, wait for, and follow up with a child independently. Background writers use an optional Git worktree created from committed HEAD; local uncommitted changes stay in the parent checkout. See persistent child tasks.

Models and providers

Noah supports OpenAI, Anthropic, OpenRouter, NVIDIA, and custom OpenAI-compatible providers. It also works with Ollama, LM Studio, vLLM, llama.cpp, Azure OpenAI, Bedrock, Gemini, Groq, Mistral, xAI, DeepSeek, Together AI, and Perplexity.

You can also connect your Codex / ChatGPT account directly in /model, without an API key. Install the Codex CLI (0.153.4 or newer), then select that option or run noah providers login codex. On a headless machine, add --device-code. Noah uses the official Codex app server and a separate Codex-managed login store; account usage counts toward your Codex limits. See account setup.

Once configured, Ctrl+L or /model opens a 1-step Quick Model Picker grouped by Favorites, Recent, Popular Coding, and Configured/Local models, with a shortcut back to the full provider setup wizard. Environment variables and the CLI remain available for scripts and headless environments:

export OPENAI_API_KEY="..."  # or ANTHROPIC_API_KEY / OPENROUTER_API_KEY
noah providers list
noah providers add openai --model MODEL_NAME
noah .

Setup offers live model discovery across configured cloud APIs, Ollama (/api/tags + /api/show for context window, tools, vision, and thinking), and local OpenAI-compatible runtimes (LM Studio, vLLM, llama.cpp), with fallback to the bundled coding catalog and manual model entry. Catalog entries whose account access has not been checked are labeled. Both Chat Completions and OpenAI Responses API clients stream incremental text and reasoning deltas in a live preview before the parsed answer is saved, and Noah's capability registry automatically routes Responses-only models (such as gpt-5.3-codex, gpt-5.4-pro, and o3-pro) to the Responses API.

/model MODEL changes only the current session and remembers that choice when resumed. Use /model --global MODEL to set the default for future sessions in every repository.

For compatible reasoning models, choose default, none, minimal, low, medium, high, or xhigh (or cycle supported levels with Alt+V, Ctrl+X v, or /reasoning cycle). default omits the provider parameter, and unsupported levels are safely clamped or omitted per model:

noah --model openai/MODEL --reasoning-effort high .

See the provider configuration guide for gateway-specific setup. Provider request deadlines, exponential retry, sticky circuit-breaker cooldowns, and ordered fallback models are configured under [reliability.retries].

Integrations

noah serve exposes authenticated loopback HTTP and resumable event streams; set NOAH_CODE_SERVER_TOKEN to a random token of at least 32 characters before starting it. noah acp exposes the same agent host through ACP v1 for compatible editors. See service and ACP for endpoints and supported capabilities.

noah browser setup configures the pinned Playwright MCP browser preset. It uses an isolated browser profile and Noah's tool permissions; Node.js and a supported browser are required. See browser tools. Trusted user configuration can also run lifecycle hooks for session, turn, and worktree events.

Updates

Noah checks PyPI in a non-blocking background thread at most once every 24 hours (disable with NOAH_CODE_NO_UPDATE_CHECK=1 or [updates] check_enabled = false). When a newer version is available on startup, the TUI shows an Update Available dialog (and /update or /upgrade opens it on demand): uv tool installs offer Upgrade now followed by Restart now / Keep working, other installs offer Copy command, and both include Later and Skip vX.Y.Z. Installation remains explicit by default, and upgrading automatically restarts an idle background daemon:

noah update --check
noah update       # alias: noah upgrade

Documentation

Development

uv sync --extra dev --extra mcp --extra tracing
uv run ruff check src tests
uv run pytest tests
uv build

Regenerate the README screenshots from deterministic sample data with uv run python scripts/capture_readme.py. This renders the real Textual widgets without making provider calls or changing a workspace.

See the development guide for platform checks and the release process.

License

Apache-2.0. NOOA remains separately licensed by its upstream project.

Credits

Built on NVIDIA OO Agents (NOOA). Thanks to the NVIDIA NeMo team and NOOA contributors for the agent runtime that powers Noah Code.

About

A light-weight terminal coding agent built on NVIDIA's NOAA framework.

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages