No description
Find a file
2026-01-12 12:15:16 -08:00
.github feat: add ty type checker to pre-k hooks (#2213) 2026-01-09 22:36:53 -05:00
.idea rename impact to review 2025-10-20 12:06:49 -07:00
.vscode formatting 2025-12-22 02:59:52 -05:00
deployment/onprem-simple local setup (#1898) 2025-11-17 12:35:09 -08:00
django fix tests 2026-01-12 12:15:16 -08:00
experiments move sqlalchemy, gen_inspired_tests, and mistral 2025-12-30 15:22:39 -05:00
js update the min CLI version to be 0.19.1 for 2026-01-09 21:00:03 +02:00
.dockerignore local setup (#1898) 2025-11-17 12:35:09 -08:00
.editorconfig consistency in formatting across ide & js projs (#1499) 2025-03-04 23:52:45 +00:00
.gitattributes consistency in formatting across ide & js projs (#1499) 2025-03-04 23:52:45 +00:00
.gitignore Async subscription reset (#1703) 2025-09-15 21:23:38 +05:30
.gitmodules add the new submodule at cli 2025-02-13 01:05:51 -05:00
.pre-commit-config.yaml add pre-k GHA 2025-12-30 01:17:05 -05:00
.prettierrc Rename some auth0 mgmt things 2023-12-10 17:40:07 -08:00
AGENTS.md add claude 2025-12-22 03:34:07 -05:00
lefthook.yml saga4 misc fixes (#2018) 2025-11-14 20:23:58 -08:00
mypy.ini Byesian analysis implementation 2025-01-17 17:44:24 -08:00
package-lock.json changes 2025-05-29 23:06:27 +00:00
package.json add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00
README.md Update README.md 2024-12-27 11:55:26 -08:00
secretlint.config.js add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00

CodeFlash MonoRepo

Here's the projects that are part of the CodeFlash MonoRepo:

  • CodeFlash Client - /cli/
  • CodeFlash Python Django ai service - /django/aiservice
  • CodeFlash NodeJS CF API - /js/cf-api
  • CodeFlash Webapp - /js/cf-webapp

Project Setup

Prerequisites

  • Node.js and npm: Ensure Node.js is installed and npm is set up for installation of pre-commit hook(Lefthook).
  • Python and Mamba: Ensure Python is installed and Mamba is set up.

post clone run npm install to install all the dependencies at root level.

Glossary

Optimization

  • Codeflash Optimizer - The overarching technology that solves Code optimization.
  • Function to Optimize - The target function that we want to optimize.
  • Optimization Candidate - generated code that we think might be an optimization of the code to optimize.
  • Helper function - This a function being called by, and is under the code path of the function to optimize.
  • Read-Write Context - The part of the code context provided to the LLM that it can modify. Aka - Code To Optimize
  • Read-Only Context - The part of the context that is only provided as info to the LLM. It is not expected to be modified.

Test generation

  • Verification - System to verify if the optimization candidate has the same functional behavior as the function to optimize.
  • Existing Tests - All the existing tests that are present in a repo.
  • Generated Test - The tests that we create for the user using the LLM.
  • Tracer - Our technology that collects and dumps the input arguments and other info for a Python executable.
  • Replay test - This test reruns all the inputs for a function to optimize that were collected by the tracer.
  • Inspired Regression tests - Newly generated Tests that were "inspired" by existing tests. That means these are new test cases that are generated by the llm understanding how the code works by looking at the existing test cases and function to optimize.
  • Comparator - Our function that compares any two Python objects and returns True if they are equal and False if they are not equal.

Infra and Systems

  • CF API - The javascript webservice that currently serves the GitHub App.
  • AI Service - The Python Django service that serves the AI endpoints.
  • Webapp - The react web application written in Next.js. Users can generate API Key etc here.
  • PostHog - Our events tracking and product analytics 3rd party tool.
  • Sentry - Our code crash telemetry service that helps us understand how codeflash fails.