Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 2 additions & 4 deletions .zellij-layout.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ layout {
pane command="nvim"

floating_panes {
pane command="claude" x="10%" y="10%" width="80%" height="80%" {
args "--ide"
}
pane command="codex" x="10%" y="10%" width="80%" height="80%"
}

pane size=1 borderless=true {
Expand All @@ -53,7 +51,7 @@ layout {
pane command="zsh"

floating_panes {
pane command="codex" x="10%" y="10%" width="80%" height="80%"
pane command="zsh" x="10%" y="10%" width="80%" height="80%"
}

pane size=1 borderless=true {
Expand Down
34 changes: 29 additions & 5 deletions nix/users/ilkecan/llm/codex.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
lib,
pkgs,
...
}:

let
inherit (lib)
getExe
;
in
{
home = {
sessionVariables = {
Expand All @@ -18,22 +24,38 @@
codex = {
enable = true;
package = pkgs.llm-agents.codex;
enableMcpIntegration = true;
# enableMcpIntegration = true; # disable until lazy loading is implemented https://github.com/openai/codex/issues/9266
settings = {
model = "gpt-5.4";
model_reasoning_effort = "xhigh";
plan_mode_reasoning_effort = "xhigh";
model_reasoning_effort = "medium";
plan_mode_reasoning_effort = "high";
personality = "pragmatic";

features = {
guardian_approval = true;
# guardian_approval = true; # to prevent wasting tokens (?)
js_repl = true;
multi_agent = true;
use_linux_sandbox_bwrap = true;
};

notify = [
(getExe (
pkgs.writeShellApplication {
name = "codex-notify";
runtimeInputs = with pkgs; [
jq
libnotify
];
text = ''
thread_id=$(echo "$1" | jq -r '."thread-id"')
last_message=$(echo "$1" | jq -r '."last-assistant-message"')
notify-send "Codex - $thread_id" "$last_message"
'';
}
))
];

tui = {
theme = "solarized-dark";
status_line = [
"model-with-reasoning"
"context-remaining"
Expand All @@ -51,6 +73,8 @@
"total-input-tokens"
"total-output-tokens"
];

theme = "solarized-dark";
};
};
};
Expand Down
17 changes: 7 additions & 10 deletions nix/users/ilkecan/utilities/zellij/layouts/code.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
_children = [
{ pane._props.command = "nvim"; }
{
floating_panes.pane = {
_props = {
command = "claude";
x = "10%";
y = "10%";
width = "80%";
height = "80%";
};
args = [ "--ide" ];
floating_panes.pane._props = {
command = "codex";
x = "10%";
y = "10%";
width = "80%";
height = "80%";
};
}
{
Expand All @@ -49,7 +46,7 @@
{ pane._props.command = config.home.defaultShell.meta.mainProgram; }
{
floating_panes.pane._props = {
command = "codex";
command = "zsh";
x = "10%";
y = "10%";
width = "80%";
Expand Down