Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
2e77f85
fix: resolve jest-runner from project's node_modules for Jest 30 comp…
mohammedahmed18 Feb 16, 2026
31e7116
Merge branch 'main' into fix/jest30-pnpm-resolution
mohammedahmed18 Feb 16, 2026
5694135
Update packages/codeflash/runtime/loop-runner.js
mohammedahmed18 Feb 16, 2026
2fb4b2d
cleaning up
mohammedahmed18 Feb 16, 2026
066980b
Merge branch 'fix/jest30-pnpm-resolution' of github.com:codeflash-ai/…
mohammedahmed18 Feb 16, 2026
2d73cf8
typo
mohammedahmed18 Feb 16, 2026
5e25b7f
debugging for failed workflow
mohammedahmed18 Feb 16, 2026
bfe4224
just for testing
mohammedahmed18 Feb 16, 2026
d13cdb5
fallback to directly require the jest-runner module inside the loop r…
mohammedahmed18 Feb 16, 2026
b4ea8b6
Update packages/codeflash/runtime/loop-runner.js
mohammedahmed18 Feb 16, 2026
fa00422
refactor: simplify and deduplicate code_context_extractor
KRRT7 Feb 16, 2026
547c02e
refactor: move context extraction modules to languages/python/context/
KRRT7 Feb 16, 2026
b1ec824
refactor: delegate PythonSupport context methods to canonical pipeline
KRRT7 Feb 16, 2026
8566cf0
fix: update mypy allowlist paths and fix BaseSuite type narrowing
KRRT7 Feb 16, 2026
fadf6d4
fix: restore progressive fallback for context token limits
KRRT7 Feb 16, 2026
bace611
Optimize _parse_and_collect_imports
codeflash-ai[bot] Feb 16, 2026
73e71d0
style: auto-fix linting issues
github-actions[bot] Feb 16, 2026
29c0a66
fix: resolve mypy type errors in collect_imports
github-actions[bot] Feb 16, 2026
4ff9865
Optimize collect_existing_class_names
codeflash-ai[bot] Feb 16, 2026
69d3268
style: auto-fix linting issues
github-actions[bot] Feb 16, 2026
ea14b2f
Update codeflash/languages/python/context/code_context_extractor.py
KRRT7 Feb 16, 2026
cc77394
Merge pull request #1500 from codeflash-ai/codeflash/optimize-pr1498-…
KRRT7 Feb 16, 2026
bfa55cb
fix: handle ast.Match (Python 3.10+) in collect_imports traversal
github-actions[bot] Feb 16, 2026
82b4002
Merge pull request #1499 from codeflash-ai/codeflash/optimize-pr1498-…
KRRT7 Feb 16, 2026
707703c
refactor: deduplicate Python language support code
KRRT7 Feb 16, 2026
633acce
style: auto-fix linting issues
github-actions[bot] Feb 16, 2026
805d946
Merge pull request #1498 from codeflash-ai/cf-simplify-context-extrac…
KRRT7 Feb 17, 2026
fa452f2
fix: update license format to use license-files
KRRT7 Feb 17, 2026
fc9cdf8
Merge pull request #1503 from codeflash-ai/fix-codeflash-benchmark-build
KRRT7 Feb 17, 2026
c262f3c
Merge branch 'main' into fix/jest30-pnpm-resolution
mohammedahmed18 Feb 17, 2026
e1a45dd
chore: switch Claude workflows from Foundry to AWS Bedrock
aseembits93 Feb 17, 2026
f855c05
Merge pull request #1497 from codeflash-ai/fix/jest30-pnpm-resolution
mohammedahmed18 Feb 17, 2026
0b9dc5d
Merge branch 'main' into chore/claude-workflow-aws-bedrock
aseembits93 Feb 17, 2026
e739649
Merge pull request #1504 from codeflash-ai/chore/claude-workflow-aws-…
aseembits93 Feb 17, 2026
09c026a
fix: use correct Bedrock inference profile ID (no :0 suffix)
aseembits93 Feb 17, 2026
110e9b8
Merge pull request #1507 from codeflash-ai/fix/bedrock-model-id
Saga4 Feb 17, 2026
d307409
fix always execute capture perf for external runner
mohammedahmed18 Feb 17, 2026
7308afe
Merge branch 'main' of github.com:codeflash-ai/codeflash
mohammedahmed18 Feb 17, 2026
cc678ba
Merge pull request #1509 from codeflash-ai/fix/js-capture-perf-for-ex…
Saga4 Feb 17, 2026
7b2692f
fix path mismatch bug
mohammedahmed18 Feb 18, 2026
8cb7209
Merge pull request #1513 from codeflash-ai/fix/gen_test_to_no_of_test…
mohammedahmed18 Feb 18, 2026
325ec7d
refactor: inline async decorators to remove codeflash import dependency
KRRT7 Feb 18, 2026
9f80ea6
Merge branch 'main' into proper-async
KRRT7 Feb 18, 2026
64a18c9
refactor: use helper file for async decorator instrumentation
KRRT7 Feb 18, 2026
e086121
fix: clean up async helper file and combine all decorators into singl…
KRRT7 Feb 18, 2026
9505451
fix: revert async e2e fixture to use time.sleep() for optimization ta…
KRRT7 Feb 18, 2026
6c092b5
fix: update expected coverage lines for optimized async e2e code
KRRT7 Feb 18, 2026
9d23a0e
Merge pull request #1518 from codeflash-ai/proper-async
KRRT7 Feb 18, 2026
0749621
fix: use original repo roots for filtering in worktree diff mode
KRRT7 Feb 18, 2026
d43d9ae
style: auto-fix ruff formatting for long line
github-actions[bot] Feb 18, 2026
6a19b9d
fix: add type assertions for mypy narrowing in worktree path remapping
github-actions[bot] Feb 18, 2026
305210b
fix: resolve git root from module_root for worktree PR creation
KRRT7 Feb 18, 2026
2bcd91c
Merge pull request #1522 from codeflash-ai/cf-fix-worktree-module-roo…
KRRT7 Feb 18, 2026
c76acae
chore: bump version to 0.20.1
KRRT7 Feb 18, 2026
6020c4f
Merge pull request #1533 from codeflash-ai/cf-release-0.20.1
KRRT7 Feb 18, 2026
85d1d4f
Merge commit '6020c4fa' into sync-main-batch-3
KRRT7 Feb 20, 2026
7c7eeb5
fix: update test import for moved code_context_extractor module
KRRT7 Feb 20, 2026
ea48939
style: auto-fix linting and formatting issues
github-actions[bot] Feb 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,17 @@ jobs:
uv venv --seed
uv sync

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
use_foundry: "true"
use_bedrock: "true"
use_sticky_comment: true
allowed_bots: "claude[bot],codeflash-ai[bot]"
prompt: |
Expand Down Expand Up @@ -173,12 +179,9 @@ jobs:
2. For each optimization PR:
- Check if CI is passing: `gh pr checks <number>`
- If all checks pass, merge it: `gh pr merge <number> --squash --delete-branch`
claude_args: '--model claude-opus-4-6 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit"'
claude_args: '--model us.anthropic.claude-opus-4-6-v1 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit"'
additional_permissions: |
actions: read
env:
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}

# @claude mentions (can edit and push) - restricted to maintainers only
claude-mention:
Expand Down Expand Up @@ -240,14 +243,17 @@ jobs:
uv venv --seed
uv sync

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
use_foundry: "true"
claude_args: '--model claude-opus-4-6 --allowedTools "Read,Edit,Write,Glob,Grep,Bash(git status*),Bash(git diff*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git log*),Bash(git merge*),Bash(git fetch*),Bash(git checkout*),Bash(git branch*),Bash(uv run prek *),Bash(prek *),Bash(uv run ruff *),Bash(uv run pytest *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(gh pr comment*),Bash(gh pr view*),Bash(gh pr diff*),Bash(gh pr merge*),Bash(gh pr close*)"'
use_bedrock: "true"
claude_args: '--model us.anthropic.claude-opus-4-6-v1 --allowedTools "Read,Edit,Write,Glob,Grep,Bash(git status*),Bash(git diff*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git log*),Bash(git merge*),Bash(git fetch*),Bash(git checkout*),Bash(git branch*),Bash(uv run prek *),Bash(prek *),Bash(uv run ruff *),Bash(uv run pytest *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(gh pr comment*),Bash(gh pr view*),Bash(gh pr diff*),Bash(gh pr merge*),Bash(gh pr close*)"'
additional_permissions: |
actions: read
env:
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}
12 changes: 7 additions & 5 deletions .github/workflows/duplicate-code-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ jobs:
}
EOF

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
use_foundry: "true"
use_bedrock: "true"
use_sticky_comment: true
allowed_bots: "claude[bot],codeflash-ai[bot]"
claude_args: '--mcp-config /tmp/mcp-config/mcp-servers.json --allowedTools "Read,Glob,Grep,Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(wc *),Bash(find *),mcp__serena__*"'
Expand Down Expand Up @@ -105,10 +111,6 @@ jobs:
- Concrete refactoring suggestion

If no significant duplication is found, say so briefly. Do not create issues — just comment on the PR.
env:
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}

- name: Stop Serena
if: always()
run: docker stop serena && docker rm serena || true
50 changes: 0 additions & 50 deletions .github/workflows/js-tests.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,5 @@ tessl.json

# Tessl auto-generates AGENTS.md on install; ignore to avoid cluttering git status
AGENTS.md
.serena/
.codeflash/
98 changes: 98 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
Business Source License 1.1

Parameters

Licensor: CodeFlash Inc.
Licensed Work: Codeflash Client version 0.20.x
The Licensed Work is (c) 2024 CodeFlash Inc.

Additional Use Grant: None. Production use of the Licensed Work is only permitted
if you have entered into a separate written agreement
with CodeFlash Inc. for production use in connection
with a subscription to CodeFlash's Code Optimization
Platform. Please visit codeflash.ai for further
information.

Change Date: 2030-01-26

Change License: MIT

Notice

The Business Source License (this document, or the “License”) is not an Open
Source license. However, the Licensed Work will eventually be made available
under an Open Source License, as stated in this License.

License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
“Business Source License” is a trademark of MariaDB Corporation Ab.

-----------------------------------------------------------------------------

Business Source License 1.1

Terms

The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.

Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.

If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.

You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.

Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.

This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.

MariaDB hereby grants you permission to use this License’s text to license
your works, and to refer to it using the trademark “Business Source License”,
as long as you comply with the Covenants of Licensor below.

Covenants of Licensor

In consideration of the right to use this License’s text and the “Business
Source License” name and trademark, Licensor covenants to MariaDB, and to all
other recipients of the licensed work to be provided by Licensor:

1. To specify as the Change License the GPL Version 2.0 or any later version,
or a license that is compatible with GPL Version 2.0 or a later version,
where “compatible” means that software provided under the Change License can
be included in a program with software provided under GPL Version 2.0 or a
later version. Licensor may specify additional Change Licenses without
limitation.

2. To either: (a) specify an additional grant of rights to use that does not
impose any additional restriction on the right granted in this License, as
the Additional Use Grant; or (b) insert the text “None”.

3. To specify a Change Date.

4. Not to modify this License in any other way.
98 changes: 98 additions & 0 deletions codeflash-benchmark/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
Business Source License 1.1

Parameters

Licensor: CodeFlash Inc.
Licensed Work: Codeflash Client version 0.20.x
The Licensed Work is (c) 2024 CodeFlash Inc.

Additional Use Grant: None. Production use of the Licensed Work is only permitted
if you have entered into a separate written agreement
with CodeFlash Inc. for production use in connection
with a subscription to CodeFlash's Code Optimization
Platform. Please visit codeflash.ai for further
information.

Change Date: 2030-01-26

Change License: MIT

Notice

The Business Source License (this document, or the “License”) is not an Open
Source license. However, the Licensed Work will eventually be made available
under an Open Source License, as stated in this License.

License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
“Business Source License” is a trademark of MariaDB Corporation Ab.

-----------------------------------------------------------------------------

Business Source License 1.1

Terms

The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.

Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.

If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.

You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.

Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.

This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.

MariaDB hereby grants you permission to use this License’s text to license
your works, and to refer to it using the trademark “Business Source License”,
as long as you comply with the Covenants of Licensor below.

Covenants of Licensor

In consideration of the right to use this License’s text and the “Business
Source License” name and trademark, Licensor covenants to MariaDB, and to all
other recipients of the licensed work to be provided by Licensor:

1. To specify as the Change License the GPL Version 2.0 or any later version,
or a license that is compatible with GPL Version 2.0 or a later version,
where “compatible” means that software provided under the Change License can
be included in a program with software provided under GPL Version 2.0 or a
later version. Licensor may specify additional Change Licenses without
limitation.

2. To either: (a) specify an additional grant of rights to use that does not
impose any additional restriction on the right granted in this License, as
the Additional Use Grant; or (b) insert the text “None”.

3. To specify a Change Date.

4. Not to modify this License in any other way.
15 changes: 15 additions & 0 deletions codeflash-benchmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# CodeFlash Benchmark

A pytest benchmarking plugin for [CodeFlash](https://codeflash.ai) - automatic code performance optimization.

## Installation

```bash
pip install codeflash-benchmark
```

## Usage

This plugin provides benchmarking capabilities for pytest tests used by CodeFlash's optimization pipeline.

For more information, visit [codeflash.ai](https://codeflash.ai).
Loading
Loading