Skip to main content
Arka is a terminal coding copilot. You describe what you need in plain English; Arka routes the request to the right skill, runs it locally, and keeps risky writes scoped to your project. Combine the CLI with agent mode, MCP tools in Cursor, and repo health gates for a full coding loop without leaving the terminal.
Summary: Initialize a repo with arka code init ., keep agent mode on for skill execution with security gates, use MCP to expose Arka inside Cursor, and run repo health before merges. Arka complements your editor — terminal for fast asks, reviews, and CI; Cursor for inline diffs when connected over MCP.
New here? Complete Quickstart first, then run arka code init . in the repo you are working on.

Overview

Three pieces work together while you code: Arka is not a replacement for your editor — it complements it. Use the terminal for fast asks, reviews, CI, and autonomous edits; use Cursor for inline diffs when Arka is connected over MCP.

Setup for coding

Run these once per machine (or per repo) before your daily workflow.
1

Confirm agent mode

Agent mode is the default. Verify or switch:
2

Initialize a code project

Scope writes to one repository root:
The goal agent, self improve --apply, and other write skills stay inside this folder until you arka code clear or init another path.
3

Paths with spaces

Quote project paths once when initializing from another directory; Arka preserves the path internally for later CLI and MCP calls:
4

Optional: fish shell

Fish unlocks the full 70+ skill router and natural-language aliases (agent "…", pr_check babysit, etc.). From bash/zsh, use explicit arka subcommands — they work the same.
5

Connect Cursor (recommended)

Let the IDE agent call Arka skills over MCP:
Copy the printed snippet into Cursor Settings → MCP (or use the project-level .cursor/mcp.json in the Arka repo). For shared MCP across multiple coding agents, run arka agent_hub sync --unify. See Agent Hub and MCP integration.

Daily workflow

Use natural language or explicit commands — Arka routes both.

Ask and explain

Orient yourself in an unfamiliar codebase:
arka ask runs the web-answer skill; gemini explain uses the Gemini CLI integration for code-focused explanations. Use repo map for a structured tree of the current project.

Edit code

The goal agent is best for open-ended tasks (debug, set up env, run tests). Coding workflows list an explicit skill sequence before execution — useful when you want predictable steps. Structure is read-only; it suggests moves but never relocates files.

Review

Catch issues before you commit:
review --staged checks the diff against project rules. Council runs multi-persona deliberation for design decisions. Teammate review flags cross-service impact using workspace discovery.

Test and CI

Gate changes locally before opening a PR:
arka ci mirrors the repo’s GitHub Actions gate (Ruff + targeted pytest for the Arka repo). Use repo_health for generic lint/test detection in any project. pr_check babysit loops on CI status until the PR is merge-ready. See Repo health.
Install pre-commit hooks for incremental gates: arka hooks install runs arka ci --changed and arka review --staged --fail-on-hints on each commit.

Self-improve

When you are working on Arka itself (or any repo with tests and routing):
Plan-only is the default; --apply requires agent mode. See Self-improve loop.

Operation modes while coding

Use plan to preview what Arka would do; switch back to agent to execute. Full details: Operation modes.

Cursor and IDE integration

In Cursor chat, ask the agent to call arka_ask, arka_skill, arka_repo_map, or arka_recall. From the terminal, the same tools are available via arka mcp call arka <tool>.

Example session

A realistic five-minute flow in a repo you just cloned:
You oriented in the codebase, reviewed staged changes, ran a fast CI mirror, and (on the Arka repo) generated a self-improvement plan — without leaving the terminal.

Next steps

Goal agent

Autonomous multi-step coding tasks with step budgets.

Coding workflows

Deterministic skill sequences for feature, bugfix, and audit work.

MCP integration

Connect Arka to Cursor and external MCP servers.

Self-improve

Analyze routing, tests, and docs; apply fixes with safety gates.

Repo health

Local CI mirror, review gates, and pre-commit hooks.

Agent Hub

Shared MCP, memory, and skills for ollama launch agents.