open-swe/apps/cli
Palash Shah 3caa492ffd
feat: modify cli for deep agents + formatting (#792)
* feat: update cli for local

* feat: file diff formatting

* fix: udate diff format

* fix: show green/red diffs

* fix: modifications

* feat: str based replacement

* feat: update streaming to allow submissions

* feat: traces

* fix: wrap text

* feat: update cli

* fix: remove json

* fix: remove write fill diff

* fix: mods

* fix: updates to logging

* fix: add trace replay service

* feat: update logs

* fix: remove debugging

* fix: lint

* fix: unused vars

* fix: updates

* fix: formatting

* fix: update streaming value

* fix: replace constants

* feat: mods

* nit: change interrupt

* nit: remove question
2025-08-22 16:58:27 -04:00
..
src feat: modify cli for deep agents + formatting (#792) 2025-08-22 16:58:27 -04:00
.env.example feat: move programmer to local mode, guardrails, remove web interface (#627) 2025-08-05 22:52:45 +00:00
eslint.config.js feat: move programmer to local mode, guardrails, remove web interface (#627) 2025-08-05 22:52:45 +00:00
package.json feat: move programmer to local mode, guardrails, remove web interface (#627) 2025-08-05 22:52:45 +00:00
README.md feat: move programmer to local mode, guardrails, remove web interface (#627) 2025-08-05 22:52:45 +00:00
tsconfig.json feat: add updates to cli application (#503) 2025-07-29 17:37:13 -04:00

Open SWE CLI

⚠️ Under Development
This CLI is currently under active development and may contain bugs or incomplete features.

A command-line interface for Open SWE that provides a terminal-based chat experience to interact with the autonomous coding agent. Built with React and Ink, it offers real-time streaming of agent logs and works directly on your local codebase without requiring GitHub authentication.

Documentation

Development

  1. Install dependencies: yarn install
  2. Create a .env file and set OPEN_SWE_LOCAL_PROJECT_PATH to point to an existing git repository:
    echo "OPEN_SWE_LOCAL_PROJECT_PATH=/path/to/your/git/repository" > .env
    
  3. Build the CLI: yarn build
  4. Run the CLI: yarn cli

Usage

Run the CLI and start chatting with the agent about your local codebase:

yarn cli

The CLI will:

  1. Start in local mode (no authentication required)
  2. Work directly on files in your current directory
  3. Provide interactive chat with the Open SWE agent
  4. Stream real-time logs and responses

Prerequisites

  • An existing git repository that you want to work on
  • The repository must be initialized with git and have at least one commit

Features

  • Local Mode Only: Works directly on your local codebase without GitHub integration
  • Real-time Streaming: See agent logs and responses as they happen
  • Interactive Chat: Type your requests and get immediate feedback
  • Plan Approval: Review and approve/deny proposed plans before execution