Commit Graph
4151 Commits
Author SHA1 Message Date
Demircan CelebiandGitHub 48e7b0d2d7 fix: correct typos in thinking texts (transcendent & parroting) (#108)
Ran codex on its own source code to find mistakes & commit, even though
they are commented out.
2025-04-16 21:01:24 -07:00
Thibault SottiauxandGitHub 92e1dcd967 (fix) move funding section before contrib section (#184)
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 21:01:03 -07:00
Thibault SottiauxandGitHub ab2cb61845 (fix) do not transitively rely on deprecated lodash deps (#175)
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 20:52:35 -07:00
Mert ErbakandGitHub 2b2ee70a1b document Codex open source fund (#162)
I added a section about the Codex Open Source Fund to the README to
reach more developers.
2025-04-16 18:34:55 -07:00
Thibault SottiauxandGitHub c5d91dbc61 fmt (#161)
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 18:15:22 -07:00
Thibault Sottiaux 973721c516 w
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 18:10:47 -07:00
Cody PetersonandGitHub aa96d59df4 feat: --config/-c flag to open global instructions in nvim (#158)
I promised I'd never write JavaScript code, but I never said anything
about using AI to write it for me...entirely authored with `codex`. No
idea how good the code is, didn't read it (sorta joking but I really
don't know js/ts)

closes #154


https://github.com/user-attachments/assets/94cf2276-bfcf-4ba1-ad2f-aaefebbf8f06
2025-04-16 18:01:33 -07:00
Thibault SottiauxandGitHub 444c72afd8 (feat) expontential back-off when encountering rate limit errors (#153)
...and try to parse the suggested time from the error message while we
don't yet have this in a structured way

---------

Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 17:37:12 -07:00
Mehmet Vecdi GönülandGitHub 2f9177ca38 minor change in description of Build from source in README.md (#149)
Separated the `node ./dist/cli.js --help ` and `node ./dist/cli.js `.
The comment suggested `node ./dist/cli.js --help ` was to run the
locally-built CLI but in fact it shows the usage an options. It is a
minor change and clarifies the flow for new developers.
2025-04-16 17:07:44 -07:00
Ashwin RamaswamiandGitHub 2ae1829609 Fix markdown table in README (#144)
Before:

<img width="909" alt="image"
src="https://github.com/user-attachments/assets/8de0d798-5587-407a-9196-bda3e26c1331"
/>

After:

<img width="945" alt="image"
src="https://github.com/user-attachments/assets/90454694-2f26-49b1-8c4b-e017237797ca"
/>
2025-04-16 17:01:45 -07:00
Tomas CuprandGitHub 672271b5dc feat: add shell completion subcommand (#138)
Why
---
Improves the usability of the `codex` CLI by adding shell completion for
file paths. This allows users to quickly complete file arguments using
tab completion in bash, zsh, and fish shells. Enable via `eval "$(codex
completion <shell>)"`.
2025-04-16 16:34:44 -07:00
2b4f4c5e77 fix(text-buffer): correct word deletion logic for trailing spaces (Ctrl+Backspace) (#131)
## Description
This fix resolves a bug where Ctrl+Backspace (hex 0x17) deletes the
entire line when the cursor is positioned after a trailing space.

## Problem
When the user has a line like "I want you to refactor my view " (with a
space at the end) and the cursor is after that space, Ctrl+Backspace
deletes the entire line instead of just removing the word "view".

## Solution
- Added a check to detect if the cursor is after spaces
- Modified the logic to delete only one space at a time in this case
- Added a unit test to verify this behavior

## Tests
All tests pass, including the new test that verifies the corrected
behavior.

---------

Signed-off-by: Alpha Diop <[email protected]>
Co-authored-by: Thibault Sottiaux <[email protected]>
2025-04-16 16:25:08 -07:00
rohanoaiandGitHub ee1ca60be2 Adds link to prompting guide in README (#141) 2025-04-16 16:24:52 -07:00
Yonatan LavyandGitHub 0c41b36d7e refactor: improve performance of renderFilesToXml using Array.join (#127)
### Summary

Refactored the `renderFilesToXml` function to improve performance and
readability by replacing iterative string concatenation with
`Array.map().join()`.

### Changes

- Replaced the `for...of` loop with `files.map(...).join('')`
- Reduced number of string mutation operations
- Preserved the existing XML structure and CDATA safety

### Why

Using `join` avoids repeated string concatenation in loops, which can
improve performance, especially when rendering a large number of files.
It also results in more concise and idiomatic code.


I have read the CLA Document and I hereby sign the CLA
---

Let me know if this needs any adjustments!

Signed-off-by: yonatanlavy <[email protected]>
2025-04-16 16:14:57 -07:00
Fouad MatinandGitHub 0cae2c0eef bump(version): 0.1.2504161510 (#135)
Signed-off-by: Fouad Matin <[email protected]>
2025-04-16 15:49:32 -07:00
Felix WaweruandGitHub b9a859dac4 chore: fixed gramatical errors in prompt examples (#136)
Fixed minor gramatical errors in the prompt engineering examples.
2025-04-16 15:45:29 -07:00
Michael BolinandGitHub 94c3c99b79 Removes computeAutoApproval() and tightens up canAutoApprove() as the source of truth (#126)
Previously, `parseToolCall()` was using `computeAutoApproval()`, which
was a somewhat parallel implementation of `canAutoApprove()` in order to
get `SafeCommandReason` metadata for presenting information to the user.
The only function that was using `SafeCommandReason` was
`useMessageGrouping()`, but it turns out that function was unused, so
this PR removes `computeAutoApproval()` and all code related to it.

More importantly, I believe this fixes
https://github.com/openai/codex/issues/87 because
`computeAutoApproval()` was calling `parse()` from `shell-quote` without
wrapping it in a try-catch. This PR updates `canAutoApprove()` to use a
tighter try-catch block that is specific to `parse()` and returns an
appropriate `SafetyAssessment` in the event of an error, based on the
`ApprovalPolicy`.

Signed-off-by: Michael Bolin <[email protected]>
2025-04-16 15:39:41 -07:00
Ilan BigioandGitHub 9a1d1a811b Change bash to shell in README (#132) 2025-04-16 15:33:42 -07:00
Aron JonesandGitHub dadc063837 dotenv support (#122)
Signed-off-by: Aron Jones <[email protected]>
2025-04-16 15:33:12 -07:00
Jon ChurchandGitHub 989850c82b fix: silence deprecation warnings without NODE_OPTIONS (#80)
Signed-off-by: Jon Church <[email protected]>
2025-04-16 15:25:32 -07:00
Ilan BigioandGitHub 9f031314d0 Set up CLA process and remove DCO (#129)
Signed-off-by: Ilan Bigio <[email protected]>
2025-04-16 15:24:31 -07:00
Fouad MatinandGitHub 97fff64017 bump(version): 0.1.04161352 (#125)
Signed-off-by: Fouad Matin <[email protected]>
2025-04-16 15:11:02 -07:00
Michael BolinandGitHub ee7e23d133 Back out @lib indirection in tsconfig.json (#111) 2025-04-16 14:16:53 -07:00
Fouad MatinandGitHub e444d7abbf update: release (#109)
Signed-off-by: Fouad Matin <[email protected]>
2025-04-16 13:47:36 -07:00
Thibault SottiauxandGitHub 856d99e4ec (feat) basic retries when hitting rate limit errors (#105)
* w

Signed-off-by: Thibault Sottiaux <[email protected]>

* w

Signed-off-by: Thibault Sottiaux <[email protected]>

* w

Signed-off-by: Thibault Sottiaux <[email protected]>

* w

Signed-off-by: Thibault Sottiaux <[email protected]>

* w

Signed-off-by: Thibault Sottiaux <[email protected]>

---------

Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 13:47:23 -07:00
Jonathan YangandGitHub 2d5d82d0b1 fix: miss catching auto-edit (#99) 2025-04-16 13:23:18 -07:00
IsaacandGitHub 6951cdf035 docs: add FAQ clarifying relation to OpenAI Codex (2021) (#91)
Signed-off-by: Isaac Gemal <[email protected]>
2025-04-16 13:21:40 -07:00
Fouad MatinandGitHub d3320df369 add: release script (#96)
* add: release script

* add: src to npm module

* fix: readme

Signed-off-by: Fouad Matin <[email protected]>

---------

Signed-off-by: Fouad Matin <[email protected]>
2025-04-16 13:21:22 -07:00
Abhinav DasandGitHub e2f363ad78 changing some readme text to make it more exact (#77)
Making README more factually and grammatically exact.
2025-04-16 12:44:03 -07:00
Varun KhalateandGitHub 9cd3209cf6 fix: prompt typo (#81)
* fix: developer typo

* fix: typo
2025-04-16 12:43:10 -07:00
easong-openaiandGitHub e33a35f6f7 (feat) gracefully handle invalid commands (#79)
* handle invalid commands
* better test
* format
2025-04-16 12:30:43 -07:00
Misha DavidovandGitHub 9af430b12c [readme] security review recipe (#72)
* [readme] security review recipe
2025-04-16 12:12:44 -07:00
7b0cdb0865 (fix) update Docker container scripts (#47)
* Fix Docker container scripts

Signed-off-by:: Eric Burke <[email protected]>

* Build codex TGZ

* fix run_in_container

---------

Co-authored-by: Kyle Kosic <[email protected]>
2025-04-16 12:02:41 -07:00
Samin AmanatandGitHub 1ea0bfebe2 Update README.md (#46)
Fix a typo where a p should have been a q
2025-04-16 11:42:46 -07:00
Thibault SottiauxandGitHub 95a52780b2 remove rg requirement (#50)
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 11:37:16 -07:00
HugoandGitHub e0c60a55b3 add explanation on how to add OPENAI_API_KEY to docs (#28)
Signed-off-by: Hugo Biais <[email protected]>
2025-04-16 11:24:35 -07:00
Adam MontgomeryandGitHub 82b3d59aa5 (feat) add request error details (#31)
Signed-off-by: Adam Montgomery <[email protected]>
2025-04-16 11:23:42 -07:00
oai-ragonaandGitHub d37cef34e6 [readme] Add recipe for code review (#40)
One of my favorite use cases is a read-only one; have `codex` suggest areas of the codebase that need attention. From here, it's also easy for the user to select one of the proposed tasks and have `codex` make the PR.
2025-04-16 11:19:58 -07:00
Yashraj YadavandGitHub f223b50468 (fix) o3 instead of o3-mini (#37)
* o3 instead of o3-mini
2025-04-16 11:18:41 -07:00
Rasmus RygaardandGitHub 378f8d024e Update model in code to o4-mini (#39)
Old docs had o3 as the default
2025-04-16 11:17:52 -07:00
Jon ChurchandGitHub c4794a60d4 (cleanup) remove unused express dep (#20)
* remove unused express dep
* update package-lock.json
2025-04-16 11:09:05 -07:00
Arash Ari SheydaandGitHub 6635dc4f5a chore(readme): fix typos (#27) 2025-04-16 11:03:52 -07:00
ddgondandGitHub 67e9e24052 Update README.md to include correct default (#12) 2025-04-16 10:45:24 -07:00
mkusakaandGitHub d4740c0d8c fix: update package-lock.json name to codex (#4) 2025-04-16 10:44:53 -07:00
Trevor CreechandGitHub 1aa1882981 update summary to auto (#1) 2025-04-16 10:44:19 -07:00
Thibault SottiauxandGitHub 8f49d72f08 remove triaging labels section + avoid capturing exitOnCtrlC for full-context mode
Signed-off-by: Thibault Sottiaux <[email protected]>
2025-04-16 10:41:44 -07:00
Thibault SottiauxandGitHub dd53ab1e93 w (#8) 2025-04-16 10:32:45 -07:00
Thibault SottiauxandGitHub 63e1003868 move all tests under tests/ (#3) 2025-04-16 10:21:48 -07:00
Thibault SottiauxandGitHub dca27c8fa1 Add link to cookbook (#2) 2025-04-16 13:15:46 -04:00
Ilan Bigio ae7b518c53 Initial commit
Signed-off-by: Ilan Bigio <[email protected]>
2025-04-16 13:00:18 -04:00