Giter Club home page Giter Club logo

codecontext's Introduction

codecontext

llms support long context and it's more beneficial to share context from your files to any current llm subscription you have

this will save you money and time, since you won't need to purchase copilot, sourcegraph cody, use your api key, etc

motivation

  • the best RAG performance is: you understanding the codebase and putting effort in tracing the logic. codebases are just a huge factorio map
  • current agents don't perform well with opening relevant files, and take an extremely long time contributing value when you could just increase your prompting skills and save money now
  • why would you rob yourself from onbboarding to a new codebase and understanding it
  • this tool simply allows you to copy paste quicker and use the best model you know to tackle the issue, saving you ~20/month

features

  • starts a public facing tunnel for your code context, allowing you to easily integrate with other GPT wrappers, or huggingchat
  • gets the context from the opened files

future

  • add feature to knowledge distill from the open files, to improve performance of GPT / Anthropic long context performance

    • /api/context/distilled
    • this assumes current LLMs perform worse the more context you give it, if you give it 100k context and ask some cognitive task, it will likely perform worse than if you knowledge distill that 100k context and feed the most relevant from that
    • different techniques to knowledge distill:
      • brute force LLM pass through (ask claude haiku if snippet is relevant to query)
      • vectorDB search and rerank with cohere rerank
      • integrate with phorm.ai and leverage their repo-level vector search
  • private context sharing, allow sign in with github on the client side

  • create a frontend that integrates with this service

how to use

  • use vscode insiders (we use code-tunnels to port forward the context which is in preview mode right now)
  • clone repo
  • npm i
  • press run and debug
  • new vscode insiders window pops up
  • now press cmd shift p
  • look up codecontext and press share context
  • agree to public port opening (future we will support private ports)

codecontext's People

Contributors

jonathanpv avatar

Watchers

 avatar

Forkers

dannyl1u

codecontext's Issues

[BUG] Url is not shared to user

code-tunnel API doesn't seem to sync with the tunnel provider, so the URL is not shown to the user

user currently needs to look at the logs to see where the url is located

// in extension.ts
await vscode.workspace.registerTunnelProvider(

the above line is where the service should be registered but doesn't actually share it

reproduce

run the codecontext: share code context command from ctrl shift p menu in vscode

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.