config tweaks
This commit is contained in:
@@ -1,10 +1,27 @@
|
|||||||
|
# doc: https://developers.openai.com/codex/config-advanced
|
||||||
|
# https://developers.openai.com/codex/config-reference
|
||||||
approval_policy = "on-failure"
|
approval_policy = "on-failure"
|
||||||
preferred_auth_method = "apikey"
|
preferred_auth_method = "apikey"
|
||||||
model = "oca/gpt-5-codex"
|
# model = "oca/gpt-5-codex"
|
||||||
profile = "gpt-5-codex"
|
# profile = "gpt-5-codex"
|
||||||
sandbox_mode = "workspace-write"
|
# model = "oca/gpt-5.1-codex"
|
||||||
|
# profile = "gpt-5-1-codex"
|
||||||
|
|
||||||
|
model = "oca/gpt-5.1-codex-mini"
|
||||||
|
profile = "gpt-5-1-codex-mini"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
web_search_request = true
|
web_search_request = true
|
||||||
trust_level = "trusted"
|
trust_level = "trusted"
|
||||||
|
|
||||||
|
sandbox_mode = "workspace-write"
|
||||||
|
[sandbox_workspace_write]
|
||||||
|
network_access = true
|
||||||
|
writable_roots = [ "/Users/jetpac/.codex/skills" ]
|
||||||
|
|
||||||
|
[analytics]
|
||||||
|
enabled = false
|
||||||
[model_providers.oca-responses]
|
[model_providers.oca-responses]
|
||||||
base_url = "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm"
|
base_url = "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm"
|
||||||
http_headers = { "client" = "codex-cli", "client-version" = "0" }
|
http_headers = { "client" = "codex-cli", "client-version" = "0" }
|
||||||
@@ -55,6 +72,7 @@ model = "oca/gpt-5.1-codex"
|
|||||||
model_provider = "oca-responses"
|
model_provider = "oca-responses"
|
||||||
review_model = "oca/gpt-5.1-codex"
|
review_model = "oca/gpt-5.1-codex"
|
||||||
personality = "pragmatic"
|
personality = "pragmatic"
|
||||||
|
model_reasoning_effort = "high"
|
||||||
[profiles.gpt-5-1-codex-mini]
|
[profiles.gpt-5-1-codex-mini]
|
||||||
model = "oca/gpt-5.1-codex-mini"
|
model = "oca/gpt-5.1-codex-mini"
|
||||||
model_provider = "oca-responses"
|
model_provider = "oca-responses"
|
||||||
|
|||||||
@@ -104,13 +104,14 @@
|
|||||||
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
||||||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||||
cpu_arch # CPU architecture
|
cpu_arch # CPU architecture
|
||||||
|
battery
|
||||||
time # current time
|
time # current time
|
||||||
# =========================[ Line #2 ]=========================
|
# =========================[ Line #2 ]=========================
|
||||||
newline
|
newline
|
||||||
# ip # ip address and bandwidth usage for a specified network interface
|
# ip # ip address and bandwidth usage for a specified network interface
|
||||||
# public_ip # public IP address
|
# public_ip # public IP address
|
||||||
proxy # system-wide http/https/ftp proxy
|
proxy # system-wide http/https/ftp proxy
|
||||||
battery # internal battery
|
# battery # internal battery
|
||||||
# wifi # wifi speed
|
# wifi # wifi speed
|
||||||
# example # example user-defined segment (see prompt_example function below)
|
# example # example user-defined segment (see prompt_example function below)
|
||||||
)
|
)
|
||||||
|
|||||||
75
.spacemacs
75
.spacemacs
@@ -76,6 +76,7 @@ This function should only modify configuration layer settings."
|
|||||||
org-enable-bootstrap-support t
|
org-enable-bootstrap-support t
|
||||||
org-enable-jira-support t
|
org-enable-jira-support t
|
||||||
jiralib-url "https://jira.oci.oraclecorp.com"
|
jiralib-url "https://jira.oci.oraclecorp.com"
|
||||||
|
jiralib-target-api-version 2
|
||||||
;; org-enable-roam-support t
|
;; org-enable-roam-support t
|
||||||
;; org-enable-roam-ui t
|
;; org-enable-roam-ui t
|
||||||
;; org-roam-completion-everywhere t
|
;; org-roam-completion-everywhere t
|
||||||
@@ -111,6 +112,7 @@ This function should only modify configuration layer settings."
|
|||||||
org-mac-link
|
org-mac-link
|
||||||
org-alert
|
org-alert
|
||||||
org-msg
|
org-msg
|
||||||
|
ai-code
|
||||||
;org-caldav
|
;org-caldav
|
||||||
;org-protocol
|
;org-protocol
|
||||||
)
|
)
|
||||||
@@ -278,8 +280,9 @@ It should only modify the values of Spacemacs settings."
|
|||||||
;; List of themes, the first of the list is loaded when spacemacs starts.
|
;; List of themes, the first of the list is loaded when spacemacs starts.
|
||||||
;; Press `SPC T n' to cycle to the next theme in the list (works great
|
;; Press `SPC T n' to cycle to the next theme in the list (works great
|
||||||
;; with 2 themes variants, one dark and one light)
|
;; with 2 themes variants, one dark and one light)
|
||||||
dotspacemacs-themes '(doom-solarized-dark
|
dotspacemacs-themes '(
|
||||||
spacemacs-dark
|
spacemacs-dark
|
||||||
|
doom-solarized-dark
|
||||||
spacemacs-light
|
spacemacs-light
|
||||||
doom-solarized-dark-high-contrast-theme
|
doom-solarized-dark-high-contrast-theme
|
||||||
)
|
)
|
||||||
@@ -637,6 +640,32 @@ configuration.
|
|||||||
Put your configuration code here, except for variables that should be set
|
Put your configuration code here, except for variables that should be set
|
||||||
before packages are loaded."
|
before packages are loaded."
|
||||||
|
|
||||||
|
|
||||||
|
;; codex config
|
||||||
|
(use-package ai-code
|
||||||
|
;; :straight (:host github :repo "tninja/ai-code-interface.el") ;; if you want to use straight to install, no need to have MELPA setting above
|
||||||
|
:config
|
||||||
|
;; use codex as backend, other options are 'claude-code, 'gemini, 'github-copilot-cli, 'opencode, 'grok, 'cursor, 'kiro, 'codebuddy, 'aider, 'claude-code-ide, 'claude-code-el
|
||||||
|
(ai-code-set-backend 'codex)
|
||||||
|
;; Enable global keybinding for the main menu
|
||||||
|
;; (global-set-key (kbd "C-c a") #'ai-code-menu)
|
||||||
|
(spacemacs/set-leader-keys "oi" 'ai-code-menu)
|
||||||
|
;; Optional: Use eat if you prefer, by default it is vterm
|
||||||
|
;; (setq ai-code-backends-infra-terminal-backend 'eat) ;; the way to config all native supported CLI. for external backend such as claude-code-ide.el and claude-code.el, please check their config
|
||||||
|
;; Optional: Enable @ file completion in comments and AI sessions
|
||||||
|
(ai-code-prompt-filepath-completion-mode 1)
|
||||||
|
;; Optional: Ask AI to run test after code changes, for a tighter build-test loop
|
||||||
|
(setq ai-code-auto-test-type 'test-after-change)
|
||||||
|
;; Optional: In AI session buffers, SPC in Evil normal state triggers the prompt-enter UI
|
||||||
|
(with-eval-after-load 'evil (ai-code-backends-infra-evil-setup))
|
||||||
|
;; Optional: Turn on auto-revert buffer, so that the AI code change automatically appears in the buffer
|
||||||
|
(global-auto-revert-mode 1)
|
||||||
|
(setq auto-revert-interval 1) ;; set to 1 second for faster update
|
||||||
|
;; (global-set-key (kbd "C-c a C") #'ai-code-toggle-filepath-completion)
|
||||||
|
;; Optional: Set up Magit integration for AI commands in Magit popups
|
||||||
|
(with-eval-after-load 'magit
|
||||||
|
(ai-code-magit-setup-transients)))
|
||||||
|
|
||||||
;; email config
|
;; email config
|
||||||
;; the saved command is a work-around for not working address completion
|
;; the saved command is a work-around for not working address completion
|
||||||
(setq notmuch-show-logo nil
|
(setq notmuch-show-logo nil
|
||||||
@@ -901,7 +930,7 @@ before packages are loaded."
|
|||||||
(spacemacs/set-leader-keys "ot" 'toggle-proxy)
|
(spacemacs/set-leader-keys "ot" 'toggle-proxy)
|
||||||
|
|
||||||
;; Bind ai for aidermacs
|
;; Bind ai for aidermacs
|
||||||
(spacemacs/set-leader-keys "ai" 'aidermacs-transient-menu)
|
;; (spacemacs/set-leader-keys "ai" 'aidermacs-transient-menu)
|
||||||
|
|
||||||
;; idea from chatgpt
|
;; idea from chatgpt
|
||||||
(defun jp/set-dotfiles-environment ()
|
(defun jp/set-dotfiles-environment ()
|
||||||
@@ -1316,7 +1345,7 @@ This function is called at the very end of Spacemacs initialization."
|
|||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(custom-enabled-themes '(doom-solarized-dark))
|
;; '(custom-enabled-themes '(doom-solarized-dark))
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
'("d97ac0baa0b67be4f7523795621ea5096939a47e8b46378f79e78846e0e4ad3d"
|
'("d97ac0baa0b67be4f7523795621ea5096939a47e8b46378f79e78846e0e4ad3d"
|
||||||
"21d2bf8d4d1df4859ff94422b5e41f6f2eeff14dd12f01428fa3cb4cb50ea0fb"
|
"21d2bf8d4d1df4859ff94422b5e41f6f2eeff14dd12f01428fa3cb4cb50ea0fb"
|
||||||
@@ -1469,23 +1498,25 @@ This function is called at the very end of Spacemacs initialization."
|
|||||||
'((:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105])
|
'((:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105])
|
||||||
(:name "To me Unread" :query "tag:me AND tag:unread" :key [109])))
|
(:name "To me Unread" :query "tag:me AND tag:unread" :key [109])))
|
||||||
'(notmuch-search-oldest-first nil)
|
'(notmuch-search-oldest-first nil)
|
||||||
|
'(org-hide-leading-stars t)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent aidermacs aio
|
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent ai-code
|
||||||
alect-themes alert all-the-icons ample-theme ample-zen-theme
|
aidermacs aio alect-themes alert all-the-icons ample-theme
|
||||||
anaconda-mode anti-zenburn-theme apropospriate-theme auto-compile
|
ample-zen-theme anaconda-mode anti-zenburn-theme apropospriate-theme
|
||||||
auto-highlight-symbol auto-yasnippet autothemer badwolf-theme
|
auto-compile auto-highlight-symbol auto-yasnippet autothemer
|
||||||
birds-of-paradise-plus-theme blacken bmx-mode bubbleberry-theme bui
|
badwolf-theme birds-of-paradise-plus-theme blacken bmx-mode
|
||||||
busybee-theme centered-cursor-mode cherry-blossom-theme chocolate-theme
|
bubbleberry-theme bui busybee-theme centered-cursor-mode
|
||||||
clean-aindent-mode closql clues-theme code-cells code-review
|
cherry-blossom-theme chocolate-theme clean-aindent-mode closql
|
||||||
color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow
|
clues-theme code-cells code-review color-theme-sanityinc-solarized
|
||||||
column-enforce-mode company company-anaconda company-box
|
color-theme-sanityinc-tomorrow column-enforce-mode company
|
||||||
company-quickhelp company-shell company-statistics company-terraform
|
company-anaconda company-box company-quickhelp company-shell
|
||||||
company-web concurrent cond-let conda ctable cyberpunk-theme cython-mode
|
company-statistics company-terraform company-web concurrent cond-let
|
||||||
dakrone-theme dap-mode darkmine-theme darkokai-theme darktooth-theme
|
conda ctable cyberpunk-theme cython-mode dakrone-theme dap-mode
|
||||||
deferred define-word devdocs diminish dired-quick-sort disable-mouse
|
darkmine-theme darkokai-theme darktooth-theme deferred define-word
|
||||||
django-theme docker dockerfile-mode doom-themes dotenv-mode dracula-theme
|
devdocs diminish dired-quick-sort disable-mouse django-theme docker
|
||||||
drag-stuff dumb-jump eat edit-indirect editorconfig ef-themes elisp-def
|
dockerfile-mode doom-themes dotenv-mode dracula-theme drag-stuff
|
||||||
elisp-demos elisp-slime-nav emacsql emmet-mode emojify emr epc esh-help
|
dumb-jump eat edit-indirect editorconfig ef-themes elisp-def elisp-demos
|
||||||
|
elisp-slime-nav emacsql emmet-mode emojify emr epc esh-help
|
||||||
eshell-prompt-extras eshell-z espresso-theme eval-sexp-fu evil-anzu
|
eshell-prompt-extras eshell-z espresso-theme eval-sexp-fu evil-anzu
|
||||||
evil-args evil-cleverparens evil-collection evil-easymotion evil-escape
|
evil-args evil-cleverparens evil-collection evil-easymotion evil-escape
|
||||||
evil-evilified-state evil-exchange evil-goggles evil-iedit-state
|
evil-evilified-state evil-exchange evil-goggles evil-iedit-state
|
||||||
@@ -1493,12 +1524,12 @@ This function is called at the very end of Spacemacs initialization."
|
|||||||
evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line
|
evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line
|
||||||
evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar
|
evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar
|
||||||
exotica-theme expand-region eyebrowse eziam-themes fancy-battery
|
exotica-theme expand-region eyebrowse eziam-themes fancy-battery
|
||||||
farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido forge
|
farmhouse-themes fish-mode flatland-theme flatui-theme flx-ido flycheck
|
||||||
frame-local gandalf-theme ggtags gh-md ghub git-link git-messenger
|
forge frame-local gandalf-theme ggtags gh-md ghub git-link git-messenger
|
||||||
git-modes git-timemachine gitignore-templates gntp gnuplot golden-ratio
|
git-modes git-timemachine gitignore-templates gntp gnuplot golden-ratio
|
||||||
google-translate gotham-theme grandshell-theme groovy-imports groovy-mode
|
google-translate gotham-theme grandshell-theme groovy-imports groovy-mode
|
||||||
gruber-darker-theme gruvbox-theme haml-mode hc-zenburn-theme hcl-mode
|
gruber-darker-theme gruvbox-theme haml-mode hc-zenburn-theme hcl-mode
|
||||||
helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
|
helm helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
|
||||||
helm-descbinds helm-git-grep helm-ls-git helm-lsp helm-make
|
helm-descbinds helm-git-grep helm-ls-git helm-lsp helm-make
|
||||||
helm-mode-manager helm-notmuch helm-org helm-org-rifle helm-projectile
|
helm-mode-manager helm-notmuch helm-org helm-org-rifle helm-projectile
|
||||||
helm-purpose helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme
|
helm-purpose helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme
|
||||||
|
|||||||
Reference in New Issue
Block a user