No description
Find a file
Sarthak Agarwal e9b47940fa
Some checks failed
CF-API CI / skip-validate (pull_request) Blocked by required conditions
CF-API CI / validate (pull_request) Blocked by required conditions
Codeflash AiService / No aiservice changes detected (pull_request) Blocked by required conditions
Codeflash AiService / Optimize new code in this PR (pull_request) Blocked by required conditions
Codeflash JS/TS Optimization / No JS/TS changes detected (pull_request) Blocked by required conditions
Codeflash JS/TS Optimization / Optimize cf-api (pull_request) Blocked by required conditions
Codeflash JS/TS Optimization / Optimize cf-webapp (pull_request) Blocked by required conditions
django-unit-tests / No aiservice changes detected (pull_request) Blocked by required conditions
django-unit-tests / unit-tests (pull_request) Blocked by required conditions
django-unit-tests / django-unit-tests-status (pull_request) Blocked by required conditions
end-to-end-tests / No relevant changes detected (pull_request) Blocked by required conditions
end-to-end-tests / Wait for unit tests (pull_request) Blocked by required conditions
end-to-end-tests / futurehouse (pull_request) Blocked by required conditions
end-to-end-tests / init-optimization (pull_request) Blocked by required conditions
end-to-end-tests / coverage (pull_request) Blocked by required conditions
end-to-end-tests / tracer-replay (pull_request) Blocked by required conditions
end-to-end-tests / bubblesort-unittest (pull_request) Blocked by required conditions
end-to-end-tests / topological-sort (pull_request) Blocked by required conditions
end-to-end-tests / bubblesort-pytest-no-git (pull_request) Blocked by required conditions
end-to-end-tests / E2E Tests Status (pull_request) Blocked by required conditions
Mypy Type Checking for Aiservice / type-check-aiservice (pull_request) Blocked by required conditions
Mypy Type Checking for Aiservice / mypy-aiservice-status (pull_request) Blocked by required conditions
Next.js Build Check / skip-build (pull_request) Blocked by required conditions
Build VSCode Extension / build (pull_request) Blocked by required conditions
Mypy Type Checking for Aiservice / skip-type-check (pull_request) Blocked by required conditions
Next.js Build Check / build (pull_request) Blocked by required conditions
CF-API CI / check-changes (pull_request) Failing after 2s
Claude Code / pr-review (pull_request) Failing after 2s
Claude Code / claude-mention (pull_request) Has been skipped
Codeflash AiService / check-changes (pull_request) Failing after 2s
Codeflash JS/TS Optimization / check-changes (pull_request) Failing after 2s
django-unit-tests / check-changes (pull_request) Failing after 2s
Duplicate Code Detector / detect-duplicates (pull_request) Failing after 2s
end-to-end-tests / check-changes (pull_request) Failing after 2s
Mypy Type Checking for Aiservice / check-changes (pull_request) Failing after 2s
Next.js Build Check / check-changes (pull_request) Failing after 1s
Prek (pre-commit checks) checks / prek (pull_request) Failing after 2s
Build VSCode Extension / check-min-version (pull_request) Failing after 5s
prompt update
2026-04-07 20:11:17 +05:30
.claude fix: rename skill files to be Windows-compatible 2026-02-17 05:01:30 +00:00
.codex fix: rename skill files to be Windows-compatible 2026-02-17 05:01:30 +00:00
.gemini fix: rename skill files to be Windows-compatible 2026-02-17 05:01:30 +00:00
.github fix: add DATABASE_URL and DJANGO_SETTINGS_MODULE to pr-review workflow 2026-02-23 03:43:33 -05:00
.idea more cleanup 2026-01-28 22:23:54 +02:00
.tessl chore: add npm tessl tiles from tessl install 2026-02-15 03:56:05 -05:00
.vscode Revert "CF-1041 observability v2 " need more changes and testing (#2375) 2026-02-06 01:18:17 +05:30
cli/code-to-optimize codeflash-omni-java (#2335) 2026-02-13 23:26:55 +05:30
deployment/onprem-simple local setup (#1898) 2025-11-17 12:35:09 -08:00
django prompt update 2026-04-07 20:11:17 +05:30
experiments move sqlalchemy, gen_inspired_tests, and mistral 2025-12-30 15:22:39 -05:00
js changes on msging in pr description 2026-03-18 04:40:46 +05:30
tiles test: add evals for all three Tessl tiles 2026-02-14 22:25:30 -05: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 chore: add gh-aw duplicate code detector workflow (#2418) 2026-02-14 18:14:55 -05:00
.gitignore chore: add .next/ to gitignore 2026-02-15 03:55:12 -05:00
.gitmodules add the new submodule at cli 2025-02-13 01:05:51 -05:00
.mcp.json feat: add Tessl tiles for codeflash-internal (rules, docs, skills) 2026-02-14 22:16:33 -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 feat: add Tessl tiles for codeflash-internal (rules, docs, skills) 2026-02-14 22:16:33 -05:00
CLAUDE.md feat: add Tessl tiles for codeflash-internal (rules, docs, skills) 2026-02-14 22:16:33 -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 Initial js support in aiservice 2026-01-14 22:15:27 -08:00
package.json Initial js support in aiservice 2026-01-14 22:15:27 -08: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
tessl.json chore: update tessl.json with npm tile entries 2026-02-15 03:54:13 -05: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.