Skip to content
LoopCodeby Heksync

THE TERMINAL IS A WORKSPACE

A terminal AI coding agent for your codebase.

LoopCode CLI runs the coding agent from a project directory. Use an interactive conversation for work that needs review, or a headless prompt for a bounded task whose output another script needs to consume. It uses the same LoopCode account and plan as the desktop app and VS Code extension.

By Heksync product team · Reviewed

What can an AI coding agent do in a terminal?

A terminal AI coding agent works inside a project directory: it reads relevant source files, follows a task across the repository, proposes or makes edits, and runs available commands under its permission policy. You review the resulting diff and the actual command output. LoopCode CLI brings that workflow to macOS, Linux, and Windows without requiring a new editor.

Choose interactive mode when you want to steer the investigation. Choose a bounded headless request when another script needs a final answer or event stream. The examples below are commands you can run; they are not a recording or a benchmark of a completed task.

What can an AI coding agent do in a terminal?
TaskA useful requestEvidence to review
Understand an existing codebaseTrace an API route through its service and tests before changing itCorrect file references and a description that matches the implementation
Debug a failing testReproduce the failure, fix its cause, and add a regression testThe failing case, final patch, and test exit status
Refactor across filesFollow callers and preserve the existing public contractAll affected references, a focused diff, and the existing test results
Script a bounded investigationSummarize the public API without modifying filesStructured output, a turn limit, and an explicit permission policy

Install LoopCode CLI on macOS or Linux

Read the installer before running it. The CLI uses a supported Node.js installation when available and otherwise installs its own runtime. After installation, open your project directory and follow the CLI’s sign-in instructions. Hosted model access requires an account, connectivity, and available plan usage.

macOS / Linux terminal installation
curl -fsSL https://loopcode.heksync.in/cli.sh | sh

Install LoopCode CLI on Windows

Run the Windows installer in PowerShell after reviewing its contents. A CLI installation is different from installing the desktop app; use the download page if you want the graphical workspace and its integrated browser.

Windows PowerShell installation
irm https://loopcode.heksync.in/cli.ps1 | iex

Start with a focused repository question

Run LoopCode in the directory containing your project. The agent can inspect files, search the repository, edit code, and run commands subject to its permissions. An interactive session gives you a place to review requests, see tool output, and refine the task as the evidence changes.

After installation and sign-in
cd /path/to/your-project
loopcode
# Or start with a request:
loopcode "Explain the test setup and find the checkout tests."

Resume the task instead of restating the repository

Use the conversation list to identify earlier work in this workspace. Continue the latest session with -c or resume a selected conversation with -r. Keep project requirements in versioned instructions and review any assumptions retained from an older conversation.

Conversation continuity
loopcode sessions
loopcode -c
loopcode -r <conversation-id>

Make automation output explicit

The -p flag runs a prompt without the interactive UI. Default output is the final answer on stdout, with tool progress on stderr. JSON is useful for a final result object; stream-json reports events for integrations that need progress.

A headless run has nobody to answer a new approval prompt. Actions not covered by the current permission policy are denied rather than silently approved. Begin with a read-only task and test the failure path before integrating a mutating run into CI.

A bounded read-only request
loopcode -p "Summarize the public API. Do not modify files or run commands." \
  --output-format json --max-turns 12

Requirements and boundaries

  • The CLI installs with one command and nothing to set up first: it uses your Node.js when it is 22.18 or newer, and otherwise brings its own copy of the official Node.js, which only LoopCode uses.
  • macOS, Linux, and Windows have installation instructions; Windows uses a PowerShell installer.
  • Hosted inference needs connectivity and an account with available plan usage.
  • A terminal session is not the desktop browser integration. Use project tests and command output for terminal verification.

What is free, and does code leave my machine?

LoopCode offers Free starter usage, with additional free usage for early users and free models refreshed regularly. Free is not unlimited. Starter, Pro and Max offer more capacity; check the current pricing and account usage before starting a large task. Desktop, CLI, and VS Code share the same account and plan allowance.

Local describes the project environment and tool execution. Relevant prompts, code context, and tool results are sent through LoopCode’s service for hosted inference. This is not a fully offline coding agent. Confirm your repository’s sharing policy, keep credentials out of task context, and choose permissions appropriate to the work.

KEEP GOING

A useful next step.

Put it to work in your project.

Desktop, CLI, and VS Code. One LoopCode account. Free to start.

Get LoopCode