Giter Site home page Giter Site logo

salonast / rift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from morph-labs/rift

0.0 0.0 0.0 829 KB

Rift: an AI-native language server for your personal AI software engineer

Home Page: https://morph.so

License: Apache License 2.0

JavaScript 8.22% Python 83.39% TypeScript 8.39%

rift's Introduction

Rift

At Morph, we believe that:

  • Future software will be mostly written by AI, and augmented/supervised by humans.
  • Keeping personal data safe and computations secure will become increasingly important.
  • The future of software belongs to everyone.

That is why we are releasing Rift, an open-source language server and IDE extension that lets everyone deploy a personal AI software engineer โ€” locally hosted, private, secure, open-source, and free.

GVHwCk88-qW3-tMF.mp4

The road ahead

Existing code generation tooling is presently mostly code-agnostic, operating at the level of tokens in / tokens out of code LMs. The language server protocol (LSP) defines a standard for language servers, objects which index a codebase and provide structure- and runtime-aware interfaces to external development tools like IDEs.

The Rift Code Engine is an AI-native language server which will expose interfaces for code transformations and code understanding in a uniform, model- and language-agnostic way --- e.g. rift.summarize_callsites or rift.launch_ai_swe_async should work on a Python codebase with StarCoder as well as it works on a Rust codebase using CodeGen. Within the language server, models will have full programatic access to language-specific tooling like compilers, unit and integration test frameworks, and static analyzers to produce correct code with minimal user intervention. We will develop UX idioms as needed to support this functionality in the Rift IDE extensions.

Getting started

VSCode extension

Install the VSCode extension from the VSCode Marketplace or by building and installing from the VSIX bundle produced by the following steps:

  • cd ./editors/rift-vscode
  • Increment the semver number (e.g. 0.0.8 to 0.0.9) in the package.json
  • run vsce package

If you also want to develop the extension itself, you should open the extension in an extension development host using the following steps:

  • cd ./editors/rift-vscode
  • Run code . to open a VSCode process on the rift-vscode workspace.
  • Press Ctrl + F5 to compile the extension and create a new VSCode window with the extension loaded.

Rift Code Engine

Run the Rift server by following the instructions in the readme.

Rift Agents API

Add support for third-party coding agents written in Python and use access to the Rift Code Engine to propagate edits and gather input directly from the user in the IDE. See the README here for the Rift Agents API.

u7vt42Cz_BaSwiZJ.mp4

Running local models

From the Rift VSCode extension, press Ctrl + , to open the settings tab, then search for Rift and select the models you want to use for chat and code completions from the dropdown menu.

Contributing

We welcome contributions to Rift at all levels of the stack, from adding support for new open-source models in the Rift Code Engine, to implementing the Rift API for your favorite programming language, to UX polish in the VSCode extension, to adding support for your favorite editor.

Programming is evolving. Join the community, contribute to our roadmap, and help shape the future of software.

rift's People

Contributors

cristianoc avatar edayers avatar jesse-michael-han avatar jeremylan avatar kataqatsi avatar jwd-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.