{"_id":"@aaditri-globaltech/aria-coding-agent","name":"@aaditri-globaltech/aria-coding-agent","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aaditri-globaltech/aria-coding-agent","version":"0.1.0","description":"Coding agent CLI with read, bash, edit, write tools and session management","type":"module","ariaConfig":{"configDir":".aria"},"bin":{"aria":"dist/cli.js"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"clean":"shx rm -rf dist","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js && npm run copy-assets","build:binary":"npm --prefix ../tui run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm run build && bun build --compile ./dist/bun/cli.js ./src/utils/image-resize-worker.ts --outfile dist/aria && npm run copy-binary-assets","copy-assets":"shx mkdir -p dist/modes/interactive/theme && shx cp src/modes/interactive/theme/*.json dist/modes/interactive/theme/ && shx mkdir -p dist/modes/interactive/assets && shx cp src/modes/interactive/assets/*.png dist/modes/interactive/assets/ && shx mkdir -p dist/core/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html/ && shx cp src/core/export-html/vendor/*.js dist/core/export-html/vendor/","copy-binary-assets":"shx cp package.json dist/ && shx cp README.md dist/ && shx cp CHANGELOG.md dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/assets && shx cp src/modes/interactive/assets/*.png dist/assets/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html dist/export-html/ && shx cp src/core/export-html/vendor/*.js dist/export-html/vendor/ && shx cp -r docs dist/ && shx cp -r examples dist/ && shx cp ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist/","test":"vitest --run","shrinkwrap":"node ../../scripts/generate-coding-agent-shrinkwrap.mjs","prepublishOnly":"npm run clean && npm run build && npm run shrinkwrap"},"dependencies":{"@aaditri-globaltech/aria-agent":"^0.1.0","@aaditri-globaltech/aria-ai":"^0.1.0","@aaditri-globaltech/aria-tui":"^0.1.0","@silvia-odwyer/photon-node":"0.3.4","chalk":"5.6.2","cross-spawn":"7.0.6","diff":"8.0.4","glob":"13.0.6","highlight.js":"10.7.3","hosted-git-info":"9.0.3","ignore":"7.0.5","jiti":"2.7.0","minimatch":"10.2.5","proper-lockfile":"4.1.2","typebox":"1.1.38","undici":"8.3.0","yaml":"2.9.0"},"overrides":{"rimraf":"6.1.2","gaxios":{"rimraf":"6.1.2"}},"optionalDependencies":{"@mariozechner/clipboard":"0.3.9"},"devDependencies":{"@types/cross-spawn":"6.0.6","@types/diff":"7.0.2","@types/hosted-git-info":"3.0.5","@types/ms":"2.1.0","@types/node":"24.12.4","@types/proper-lockfile":"4.1.4","shx":"0.4.0","typescript":"5.9.3","vitest":"3.2.4"},"keywords":["coding-agent","ai","llm","cli","tui","agent"],"author":{"name":"Kumar R Anand"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Aaditri-GlobalTech/aria.git","directory":"packages/coding-agent"},"engines":{"node":">=22.19.0"},"_id":"@aaditri-globaltech/aria-coding-agent@0.1.0","gitHead":"c0ea139e82cc1be93117b4356620a15dbd5371e2","bugs":{"url":"https://github.com/Aaditri-GlobalTech/aria/issues"},"homepage":"https://github.com/Aaditri-GlobalTech/aria#readme","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-qhdmrQwtDip0ZD/hbL6Iya9XuHg9OWZkct/l5cMuZvNldhbulg5X3GCoRtozqGIZgx6YGmxwN7A/ZjESH3Z+nQ==","shasum":"dc36c046d492cda54a82d4008e9575a16dc11acf","tarball":"https://registry.npmjs.org/@aaditri-globaltech/aria-coding-agent/-/aria-coding-agent-0.1.0.tgz","fileCount":778,"unpackedSize":11056964,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICYUkNwgy8LPqTeZRRJxzxTi/9oWvZgH13lighJKCEVfAiAyDwehypuDnljOckSSJz4AmoMg/ZID5viOsgkxeUuP4A=="}]},"_npmUser":{"name":"kumaranand","email":"aaditriglobaltech@gmail.com"},"directories":{},"maintainers":[{"name":"kumaranand","email":"aaditriglobaltech@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aria-coding-agent_0.1.0_1783360993507_0.48160986829976715"},"_hasShrinkwrap":true}},"time":{"created":"2026-07-06T18:03:13.322Z","0.1.0":"2026-07-06T18:03:13.708Z","modified":"2026-07-06T18:03:13.959Z"},"maintainers":[{"name":"kumaranand","email":"aaditriglobaltech@gmail.com"}],"description":"Coding agent CLI with read, bash, edit, write tools and session management","homepage":"https://github.com/Aaditri-GlobalTech/aria#readme","keywords":["coding-agent","ai","llm","cli","tui","agent"],"repository":{"type":"git","url":"git+https://github.com/Aaditri-GlobalTech/aria.git","directory":"packages/coding-agent"},"author":{"name":"Kumar R Anand"},"bugs":{"url":"https://github.com/Aaditri-GlobalTech/aria/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <a href=\"https://aria.dev\">\n    <img alt=\"aria logo\" src=\"https://aria.dev/logo-auto.svg\" width=\"128\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://discord.com/invite/3cU7Bz4UPx\"><img alt=\"Discord\" src=\"https://img.shields.io/badge/discord-community-5865F2?style=flat-square&logo=discord&logoColor=white\" /></a>\n  <a href=\"https://www.npmjs.com/package/@aaditri-globaltech/aria-coding-agent\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/@aaditri-globaltech/aria-coding-agent?style=flat-square\" /></a>\n</p>\n\n> New issues and PRs from new contributors are auto-closed by default. Maintainers review auto-closed issues daily. See [CONTRIBUTING.md](../../CONTRIBUTING.md).\n\n---\n\nAria is a minimal terminal coding harness. Adapt aria to your workflows, not the other way around, without having to fork and modify aria internals. Extend it with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Aria Packages](#aria-packages) and share them with others via npm or git.\n\nAria ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask aria to build what you want or install a third party aria package that matches your workflow.\n\nAria runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps. See [openclaw/openclaw](https://github.com/openclaw/openclaw) for a real-world SDK integration.\n\n## Share your OSS coding agent sessions\n\nIf you use aria for open source work, please share your coding agent sessions.\n\nPublic OSS session data helps improve models, prompts, tools, and evaluations using real development workflows.\n\nFor the full explanation, see [this post on X](https://x.com/badlogicgames/status/2037811643774652911).\n\nTo publish sessions, use [`Aaditri-GlobalTech/aria-share-hf`](https://github.com/Aaditri-GlobalTech/aria-share-hf). Read its README.md for setup instructions. All you need is a Hugging Face account, the Hugging Face CLI, and `aria-share-hf`.\n\nYou can also watch [this video](https://x.com/badlogicgames/status/2041151967695634619), where the original author shows how they published `pi-mono` sessions.\n\nI regularly publish my own `aria` work sessions here:\n\n- [aaditri-globaltech/aria on Hugging Face](https://huggingface.co/datasets/aaditri-globaltech/aria)\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Providers & Models](#providers--models)\n- [Interactive Mode](#interactive-mode)\n  - [Editor](#editor)\n  - [Commands](#commands)\n  - [Keyboard Shortcuts](#keyboard-shortcuts)\n  - [Message Queue](#message-queue)\n- [Sessions](#sessions)\n  - [Branching](#branching)\n  - [Compaction](#compaction)\n- [Settings](#settings)\n- [Context Files](#context-files)\n- [Customization](#customization)\n  - [Prompt Templates](#prompt-templates)\n  - [Skills](#skills)\n  - [Extensions](#extensions)\n  - [Themes](#themes)\n  - [Aria Packages](#aria-packages)\n- [Programmatic Usage](#programmatic-usage)\n- [Philosophy](#philosophy)\n- [CLI Reference](#cli-reference)\n\n---\n\n## Quick Start\n\n```bash\nnpm install -g --ignore-scripts @aaditri-globaltech/aria-coding-agent\n```\n\n`--ignore-scripts` disables dependency lifecycle scripts during install. Aria does not require install scripts for normal npm installs.\n\nInstaller alternative:\n\n```bash\ncurl -fsSL https://aria.dev/install.sh | sh\n```\n\nAuthenticate with an API key:\n\n```bash\nexport ANTHROPIC_API_KEY=sk-ant-...\naria\n```\n\nOr use your existing subscription:\n\n```bash\naria\n/login  # Then select provider\n```\n\nThen just talk to aria. By default, aria gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [aria packages](#aria-packages).\n\n**Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)\n\n---\n\n## Providers & Models\n\nFor each built-in provider, aria maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).\n\n**Subscriptions:**\n- Anthropic Claude Pro/Max\n- OpenAI ChatGPT Plus/Pro (Codex)\n- GitHub Copilot\n\n**API keys:**\n- Anthropic\n- Ant Ling\n- OpenAI\n- Azure OpenAI\n- DeepSeek\n- NVIDIA NIM\n- Google Gemini\n- Google Vertex\n- Amazon Bedrock\n- Mistral\n- Groq\n- Cerebras\n- Cloudflare AI Gateway\n- Cloudflare Workers AI\n- xAI\n- OpenRouter\n- Vercel AI Gateway\n- ZAI\n- ZAI Coding Plan (China)\n- OpenCode Zen\n- OpenCode Go\n- Hugging Face\n- Fireworks\n- Together AI\n- Kimi For Coding\n- MiniMax\n- Xiaomi MiMo\n- Xiaomi MiMo Token Plan (China)\n- Xiaomi MiMo Token Plan (Amsterdam)\n- Xiaomi MiMo Token Plan (Singapore)\n\nSee [docs/providers.md](docs/providers.md) for detailed setup instructions.\n\n**Custom providers & models:** Add providers via `~/.aria/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).\n\n---\n\n## Interactive Mode\n\n<p align=\"center\"><img src=\"docs/images/interactive-mode.png\" alt=\"Interactive Mode\" width=\"600\"></p>\n\nThe interface from top to bottom:\n\n- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions\n- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI\n- **Editor** - Where you type; border color indicates thinking level\n- **Footer** - Working directory, session name, total token/cache usage (`↑` input, `↓` output, `R` cache read, `W` cache write, `CH` latest cache hit rate), cost, context usage, current model\n\nThe editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.\n\n### Editor\n\n| Feature | How |\n|---------|-----|\n| File reference | Type `@` to fuzzy-search project files |\n| Path completion | Tab to complete paths |\n| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |\n| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |\n| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |\n\nStandard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).\n\n### Commands\n\nType `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.\n\n| Command | Description |\n|---------|-------------|\n| `/login`, `/logout` | OAuth authentication |\n| `/model` | Switch models |\n| `/scoped-models` | Enable/disable models for Ctrl+P cycling |\n| `/settings` | Thinking level, theme, message delivery, transport |\n| `/resume` | Pick from previous sessions |\n| `/new` | Start a new session |\n| `/name <name>` | Set session display name |\n| `/session` | Show session info (file, ID, messages, tokens, cost) |\n| `/tree` | Jump to any point in the session and continue from there |\n| `/trust` | Save project trust decision for future sessions (restart required) |\n| `/fork` | Create a new session from a previous user message |\n| `/clone` | Duplicate the current active branch into a new session |\n| `/compact [prompt]` | Manually compact context, optional custom instructions |\n| `/copy` | Copy last assistant message to clipboard |\n| `/export [file]` | Export session to HTML file |\n| `/share` | Upload as private GitHub gist with shareable HTML link |\n| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |\n| `/hotkeys` | Show all keyboard shortcuts |\n| `/changelog` | Display version history |\n| `/quit` | Quit aria |\n\n### Keyboard Shortcuts\n\nSee `/hotkeys` for the full list. Customize via `~/.aria/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).\n\n**Commonly used:**\n\n| Key | Action |\n|-----|--------|\n| Ctrl+C | Clear editor |\n| Ctrl+C twice | Quit |\n| Escape | Cancel/abort |\n| Escape twice | Open `/tree` |\n| Ctrl+L | Open model selector |\n| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |\n| Shift+Tab | Cycle thinking level |\n| Ctrl+O | Collapse/expand tool output |\n| Ctrl+T | Collapse/expand thinking blocks |\n\n### Message Queue\n\nSubmit messages while the agent is working:\n\n- **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls\n- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work\n- **Escape** aborts and restores queued messages to editor\n- **Alt+Up** retrieves queued messages back to editor\n\nOn Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so aria can receive the follow-up shortcut.\n\nConfigure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `\"one-at-a-time\"` (default, waits for response) or `\"all\"` (delivers all queued at once). `transport` selects provider transport preference (`\"sse\"`, `\"websocket\"`, or `\"auto\"`) for providers that support multiple transports.\n\n---\n\n## Sessions\n\nSessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session-format.md](docs/session-format.md) for file format.\n\n### Management\n\nSessions auto-save to `~/.aria/agent/sessions/` organized by working directory.\n\n```bash\naria -c                  # Continue most recent session\naria -r                  # Browse and select from past sessions\naria --no-session        # Ephemeral mode (don't save)\naria --name \"my task\"    # Set session display name at startup\naria --session <path|id> # Use specific session file or ID\naria --fork <path|id>    # Fork specific session file or ID into a new session\n```\n\nUse `/session` in interactive mode to see the current session ID before reusing it with `--session <id>` or `--fork <id>`.\n\n### Branching\n\n**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.\n\n<p align=\"center\"><img src=\"docs/images/tree-view.png\" alt=\"Tree View\" width=\"600\"></p>\n\n- Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→\n- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all\n- Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps\n\n**`/fork`** - Create a new session file from a previous user message on the active branch. Opens a selector, copies the active path up to that point, and places the selected prompt in the editor for modification.\n\n**`/clone`** - Duplicate the current active branch into a new session file at the current position. The new session keeps the full active-path history and opens with an empty editor.\n\n**`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.\n\n### Compaction\n\nLong sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.\n\n**Manual:** `/compact` or `/compact <custom instructions>`\n\n**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.\n\nCompaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.\n\n---\n\n## Settings\n\nUse `/settings` to modify common options, or edit JSON files directly:\n\n| Location | Scope |\n|----------|-------|\n| `~/.aria/agent/settings.json` | Global (all projects) |\n| `.aria/settings.json` | Project (overrides global) |\n\nSee [docs/settings.md](docs/settings.md) for all options.\n\n### Project Trust\n\nOn interactive startup, aria asks before trusting a project folder that contains project-local extensions or settings and has no saved decision for the folder or a parent folder in `~/.aria/agent/trust.json`. Trusting a project allows aria to load `.aria/settings.json` and `.aria` resources, install missing project packages, and execute project extensions.\n\nBefore the trust decision, aria loads only context files, user/global extensions, and CLI `-e` extensions so they can handle the `project_trust` event. Project-local extensions, project package-managed extensions, and project settings are loaded only after the project is trusted. This split also applies when switching to a session from a different cwd whose trust has not been resolved in the current process.\n\nNon-interactive modes (`-p`, `--mode json`, and `--mode rpc`) do not show a trust prompt. Without an applicable saved trust decision, they use `defaultProjectTrust` from global settings: `ask` (default) and `never` ignore trust-gated project inputs, while `always` trusts them. Pass `--approve`/`-a` or `--no-approve`/`-na` to override project trust for one run.\n\nIf no extension or saved decision applies, `defaultProjectTrust` controls the fallback behavior. Set it to `\"ask\"`, `\"always\"`, or `\"never\"` in `~/.aria/agent/settings.json`, or change it with `/settings`.\n\n`aria config` and package commands use the same project trust flow. Pass `--approve` to trust project-local settings for one command or `--no-approve` to ignore them.\n\nUse `/trust` in interactive mode to save a project trust decision for future sessions, including trust for the immediate parent folder. It writes `~/.aria/agent/trust.json` only; the current session is not reloaded, so restart aria for changes to take effect.\n\n### Telemetry and update checks\n\nAria has two separate startup features:\n\n- **Update check:** fetches `https://aria.dev/api/latest-version` to check whether a newer Aria version exists. Disable it with `ARIA_SKIP_VERSION_CHECK=1`. Disabling update checks only turns off this check.\n- **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping to `https://aria.dev/api/report-install`. This setting also controls optional provider attribution headers for OpenRouter, Cloudflare, and direct NVIDIA NIM requests. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `ARIA_TELEMETRY=0`. This does not disable update checks; Aria may still contact `aria.dev` for the latest version unless update checks are disabled or offline mode is enabled.\n\nUse `--offline` or `ARIA_OFFLINE=1` to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.\n\n---\n\n## Context Files\n\nAria loads `AGENTS.md` (or `CLAUDE.md`) at startup from:\n- `~/.aria/agent/AGENTS.md` (global)\n- Parent directories (walking up from cwd)\n- Current directory\n\nUse for project instructions (`AGENTS.md`/`CLAUDE.md`), conventions, common commands. All matching files are concatenated.\n\nDisable context file loading with `--no-context-files` (or `-nc`).\n\n### System Prompt\n\nReplace the default system prompt with `.aria/SYSTEM.md` (project) or `~/.aria/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.\n\n---\n\n## Customization\n\n### Prompt Templates\n\nReusable prompts as Markdown files. Type `/name` to expand.\n\n```markdown\n<!-- ~/.aria/agent/prompts/review.md -->\nReview this code for bugs, security issues, and performance problems.\nFocus on: {{focus}}\n```\n\nPlace in `~/.aria/agent/prompts/`, `.aria/prompts/`, or a [aria package](#aria-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).\n\n### Skills\n\nOn-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.\n\n```markdown\n<!-- ~/.aria/agent/skills/my-skill/SKILL.md -->\n# My Skill\nUse this skill when the user asks about X.\n\n## Steps\n1. Do this\n2. Then that\n```\n\nPlace in `~/.aria/agent/skills/`, `~/.agents/skills/`, `.aria/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [aria package](#aria-packages) to share with others. See [docs/skills.md](docs/skills.md).\n\n### Extensions\n\n<p align=\"center\"><img src=\"docs/images/doom-extension.png\" alt=\"Doom Extension\" width=\"600\"></p>\n\nTypeScript modules that extend aria with custom tools, commands, keyboard shortcuts, event handlers, and UI components.\n\n```typescript\nexport default function (aria: ExtensionAPI) {\n  aria.registerTool({ name: \"deploy\", ... });\n  aria.registerCommand(\"stats\", { ... });\n  aria.on(\"tool_call\", async (event, ctx) => { ... });\n}\n```\n\nThe default export can also be `async`. aria waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling `aria.registerProvider()`.\n\n**What's possible:**\n- Custom tools (or replace built-in tools entirely)\n- Sub-agents and plan mode\n- Custom compaction and summarization\n- Permission gates and path protection\n- Custom editors and UI components\n- Status lines, headers, footers\n- Git checkpointing and auto-commit\n- SSH and sandbox execution\n- MCP server integration\n- Make aria look like Claude Code\n- Games while waiting (yes, Doom runs)\n- ...anything you can dream up\n\nPlace in `~/.aria/agent/extensions/`, `.aria/extensions/`, or a [aria package](#aria-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).\n\n### Themes\n\nBuilt-in: `dark`, `light`. Themes hot-reload: modify the active theme file and aria immediately applies changes.\n\nPlace in `~/.aria/agent/themes/`, `.aria/themes/`, or a [aria package](#aria-packages) to share with others. See [docs/themes.md](docs/themes.md).\n\n### Aria Packages\n\nBundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Aaria-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).\n\n> **Security:** Aria packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.\n\n```bash\naria install npm:@foo/aria-tools\naria install npm:@foo/aria-tools@1.2.3      # pinned version\naria install git:github.com/user/repo\naria install git:github.com/user/repo@v1  # tag or commit\naria install git:git@github.com:user/repo\naria install git:git@github.com:user/repo@v1  # tag or commit\naria install https://github.com/user/repo\naria install https://github.com/user/repo@v1      # tag or commit\naria install ssh://git@github.com/user/repo\naria install ssh://git@github.com/user/repo@v1    # tag or commit\naria remove npm:@foo/aria-tools\naria uninstall npm:@foo/aria-tools          # alias for remove\naria list\naria update                               # update aria and packages (skips pinned packages)\naria update --extensions                  # update packages only\naria update --self                        # update aria only\naria update --self --force                # reinstall aria even if current\naria update npm:@foo/aria-tools             # update one package\naria config                               # enable/disable extensions, skills, prompts, themes\n```\n\nPackages install to `~/.aria/agent/git/` (git) or `~/.aria/agent/npm/` (npm). Use `-l` for project-local installs (`.aria/git/`, `.aria/npm/`). Git `@ref` values are pinned tags or commits; pinned packages are skipped by `aria update`, so use `aria install git:host/user/repo@new-ref` to move an existing package to a new ref. Git packages install dependencies with `npm install --omit=dev` by default, so runtime deps must be listed under `dependencies`; when `npmCommand` is configured, git packages use plain `install` for compatibility with wrappers. If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `[\"mise\", \"exec\", \"node@20\", \"--\", \"npm\"]`.\n\nCreate a package by adding a `aria` key to `package.json`:\n\n```json\n{\n  \"name\": \"my-aria-package\",\n  \"keywords\": [\"aria-package\"],\n  \"aria\": {\n    \"extensions\": [\"./extensions\"],\n    \"skills\": [\"./skills\"],\n    \"prompts\": [\"./prompts\"],\n    \"themes\": [\"./themes\"]\n  }\n}\n```\n\nWithout a `aria` manifest, aria auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).\n\nSee [docs/packages.md](docs/packages.md).\n\n---\n\n## Programmatic Usage\n\n### SDK\n\n```typescript\nimport { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from \"@aaditri-globaltech/aria-coding-agent\";\n\nconst authStorage = AuthStorage.create();\nconst modelRegistry = ModelRegistry.create(authStorage);\nconst { session } = await createAgentSession({\n  sessionManager: SessionManager.inMemory(),\n  authStorage,\n  modelRegistry,\n});\n\nawait session.prompt(\"What files are in the current directory?\");\n```\n\nFor advanced multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`.\n\nSee [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).\n\n### RPC Mode\n\nFor non-Node.js integrations, use RPC mode over stdin/stdout:\n\n```bash\naria --mode rpc\n```\n\nRPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.\n\nSee [docs/rpc.md](docs/rpc.md) for the protocol.\n\n---\n\n## Philosophy\n\nAria is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [aria packages](#aria-packages). This keeps the core minimal while letting you shape aria to fit how you work.\n\n**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)\n\n**No sub-agents.** There's many ways to do this. Spawn aria instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.\n\n**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.\n\n**No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.\n\n**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).\n\n**No background bash.** Use tmux. Full observability, direct interaction.\n\nRead the [blog post](https://mariozechner.at/posts/2025-11-30-aria-coding-agent/) for the full rationale.\n\n---\n\n## CLI Reference\n\n```bash\naria [options] [@files...] [messages...]\n```\n\n### Package Commands\n\n```bash\naria install <source> [-l]     # Install package, -l for project-local\naria remove <source> [-l]      # Remove package\naria uninstall <source> [-l]   # Alias for remove\naria update [source|self|aria]   # Update aria and packages (skips pinned packages)\naria update --extensions       # Update packages only\naria update --self             # Update aria only\naria update --self --force     # Reinstall aria even if current\naria update --extension <src>  # Update one package\naria list                      # List installed packages\naria config                    # Enable/disable package resources\n```\n\n`aria config` and project package commands accept `--approve`/`--no-approve` to trust or ignore project-local settings for one command.\n\n### Modes\n\n| Flag | Description |\n|------|-------------|\n| (default) | Interactive mode |\n| `-p`, `--print` | Print response and exit |\n| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |\n| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |\n| `--export <in> [out]` | Export session to HTML |\n\nIn print mode, aria also reads piped stdin and merges it into the initial prompt:\n\n```bash\ncat README.md | aria -p \"Summarize this text\"\n```\n\n### Model Options\n\n| Option | Description |\n|--------|-------------|\n| `--provider <name>` | Provider (anthropic, openai, google, etc.) |\n| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |\n| `--api-key <key>` | API key (overrides env vars) |\n| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |\n| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |\n| `--list-models [search]` | List available models |\n\n### Session Options\n\n| Option | Description |\n|--------|-------------|\n| `-c`, `--continue` | Continue most recent session |\n| `-r`, `--resume` | Browse and select session |\n| `--session <path\\|id>` | Use specific session file or partial UUID |\n| `--fork <path\\|id>` | Fork specific session file or partial UUID into a new session |\n| `--session-dir <dir>` | Custom session storage directory |\n| `--no-session` | Ephemeral mode (don't save) |\n| `--name <name>`, `-n <name>` | Set session display name at startup |\n\n### Tool Options\n\n| Option | Description |\n|--------|-------------|\n| `--tools <list>`, `-t <list>` | Allowlist specific tool names across built-in, extension, and custom tools |\n| `--exclude-tools <list>`, `-xt <list>` | Disable specific tool names across built-in, extension, and custom tools |\n| `--no-builtin-tools`, `-nbt` | Disable built-in tools by default but keep extension/custom tools enabled |\n| `--no-tools`, `-nt` | Disable all tools by default |\n\nAvailable built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`\n\n### Resource Options\n\n| Option | Description |\n|--------|-------------|\n| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |\n| `--no-extensions` | Disable extension discovery |\n| `--skill <path>` | Load skill (repeatable) |\n| `--no-skills` | Disable skill discovery |\n| `--prompt-template <path>` | Load prompt template (repeatable) |\n| `--no-prompt-templates` | Disable prompt template discovery |\n| `--theme <path>` | Load theme (repeatable) |\n| `--no-themes` | Disable theme discovery |\n| `--no-context-files`, `-nc` | Disable AGENTS.md and CLAUDE.md context file discovery |\n\nCombine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).\n\n### Other Options\n\n| Option | Description |\n|--------|-------------|\n| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |\n| `--append-system-prompt <text>` | Append to system prompt |\n| `--verbose` | Force verbose startup |\n| `-a`, `--approve` | Trust project-local files for this run |\n| `-na`, `--no-approve` | Ignore project-local files for this run |\n| `-h`, `--help` | Show help |\n| `-v`, `--version` | Show version |\n\n### File Arguments\n\nPrefix files with `@` to include in the message:\n\n```bash\naria @prompt.md \"Answer this\"\naria -p @screenshot.png \"What's in this image?\"\naria @code.ts @test.ts \"Review these files\"\n```\n\n### Examples\n\n```bash\n# Interactive with initial prompt\naria \"List all .ts files in src/\"\n\n# Non-interactive\naria -p \"Summarize this codebase\"\n\n# Non-interactive with piped stdin\ncat README.md | aria -p \"Summarize this text\"\n\n# Named one-shot session\naria --name \"release audit\" -p \"Audit this repository\"\n\n# Different model\naria --provider openai --model gpt-4o \"Help me refactor\"\n\n# Model with provider prefix (no --provider needed)\naria --model openai/gpt-4o \"Help me refactor\"\n\n# Model with thinking level shorthand\naria --model sonnet:high \"Solve this complex problem\"\n\n# Limit model cycling\naria --models \"claude-*,gpt-4o\"\n\n# Read-only mode\naria --tools read,grep,find,ls -p \"Review the code\"\n\n# Disable one extension or built-in tool while keeping the rest available\naria --exclude-tools ask_question\n\n# High thinking level\naria --thinking high \"Solve this complex problem\"\n```\n\n### Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `ARIA_CODING_AGENT_DIR` | Override config directory (default: `~/.aria/agent`) |\n| `ARIA_CODING_AGENT_SESSION_DIR` | Override session storage directory (overridden by `--session-dir`) |\n| `ARIA_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |\n| `ARIA_OFFLINE` | Disable startup network operations, including update checks, package update checks, and install/update telemetry |\n| `ARIA_SKIP_VERSION_CHECK` | Skip the Aria version update check at startup. This prevents the `aria.dev` latest-version request |\n| `ARIA_TELEMETRY` | Override install/update telemetry and provider attribution headers. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable. This does not disable update checks |\n| `ARIA_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |\n| `VISUAL`, `EDITOR` | External editor for Ctrl+G |\n\n---\n\n## Contributing & Development\n\nSee [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.\n\n---\n\n## License\n\nMIT\n\n## See Also\n\n- [@aaditri-globaltech/aria-ai](https://www.npmjs.com/package/@aaditri-globaltech/aria-ai): Core LLM toolkit\n- [@aaditri-globaltech/aria-agent](https://www.npmjs.com/package/@aaditri-globaltech/aria-agent): Agent framework\n- [@aaditri-globaltech/aria-tui](https://www.npmjs.com/package/@aaditri-globaltech/aria-tui): Terminal UI components\n","readmeFilename":"README.md","_rev":"1-7d2c6677e6c0247935739f9d812f5fa1"}