SpaceCode

        # SpaceCode: a terminal coding agent

        SpaceCode runs on your machine. It edits files and runs commands in your repo, shows every diff and asks before it changes anything, remembers your project between sessions, and can hand long tasks to a cloud sandbox. Install with npm i -g spacecode, run spacecode login, then spacecode.

        
          [Sign in and get started](https://app.spacecode.app)
          [read how it works](/features.html)
        
      
      
        
          
          session demo
        
        Demo session: record 312 requests from staging, replay them locally where 309 match and one body differs, then diff the failure.

        &#10095; record --target api.staging.example.dev --filter 'GET /v1/users'&#9679; recording &middot; proxy on :4820 &middot; ctrl-c to stop&#10003; captured 312 requests &middot; wrote sessions/users.session&#10095; replay sessions/users.session --against localhost:3000&#10003; 309 matched   &#9888; 2 header drifts   &#10007; 1 body diff&#10095; diff run:41f2 --only failures-   "status": "ok"+   "status": "degraded"1 response drifted &middot; exit 1
      
    
  

  
    
      ## The workflow

      
      
        
          01
        
        
          ### Local agent REPL

          A full-screen terminal interface with a scrolling transcript, colored diffs for every file edit, a multiline prompt with @file mentions, and slash commands such as /compact, /resume and /model.

        
      
      
        
          02
        
        
          ### You approve every change

          By default the agent asks before each file edit or command. Shift+Tab switches modes, including a read-only plan mode, and --yolo skips prompts when you want it to.

        
      
      
        
          03
        
        
          ### Project memory

          After a session SpaceCode extracts decisions and open work items and shows them when you resume. Conversations are saved per project, so spacecode --continue picks up the last one.

        
      
    
  

  
    
      
        
          ## Pick up where you left off

        
        [Sign in and install the CLI](https://app.spacecode.app)