Skip to content

Commit e7cced4

Browse files
committed
refactor(codex): remove peon integration
1 parent 1e1f336 commit e7cced4

File tree

9 files changed

+47
-354
lines changed

9 files changed

+47
-354
lines changed

roles/codex/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Install and configure the OpenAI Codex CLI with version-controlled user memory.
77
- Installs or upgrades `codex`:
88
- macOS: Homebrew cask (`codex`)
99
- Linux (Ubuntu/Fedora/Arch): compares installed version to latest GitHub release and installs `~/.local/bin/codex` when missing or outdated
10-
- Installs `peon-ping` notifications:
11-
- macOS: Homebrew formula from `peonping/tap`
12-
- Ubuntu: upstream installer script
10+
- Removes legacy `peon-ping` integration and local Peon artifacts from older Codex role versions
1311
- Ensures `~/.codex/AGENTS.md` is a symlink to `roles/codex/files/AGENTS.md`
1412
- Ensures `~/.codex/config.toml` is a symlink to `roles/codex/files/config.toml`
1513
- Symlinks custom skills from `roles/codex/files/skills/` into `~/.codex/skills/`
@@ -76,6 +74,7 @@ roles/codex/
7674
├── defaults/main.yml
7775
├── files/AGENTS.md
7876
├── files/config.toml
77+
├── files/skills/
7978
└── tasks/
8079
├── main.yml
8180
├── MacOSX.yml

roles/codex/defaults/main.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,8 @@ codex_agents_source: "{{ role_path }}/files/AGENTS.md"
55
codex_agents_dest: "{{ ansible_facts['env']['HOME'] }}/.codex/AGENTS.md"
66
codex_config_source: "{{ role_path }}/files/config.toml"
77
codex_config_dest: "{{ ansible_facts['env']['HOME'] }}/.codex/config.toml"
8-
codex_notify_script_source: "{{ role_path }}/files/notify-peon.sh"
9-
codex_notify_script_dest: "{{ ansible_facts['env']['HOME'] }}/.codex/notify-peon.sh"
108
codex_skills_source: "{{ role_path }}/files/skills"
119
codex_skills_dest: "{{ ansible_facts['env']['HOME'] }}/.codex/skills"
1210
codex_cleanup_legacy_official_skills: true
1311
codex_legacy_official_skills_prefix: "{{ ansible_facts['env']['HOME'] }}/.local/share/codex/skills/openai-skills/skills/.curated/"
1412
codex_legacy_official_skills_cache_dir: "{{ ansible_facts['env']['HOME'] }}/.local/share/codex/skills/openai-skills"
15-
codex_peon_enabled: true
16-
codex_peon_dir: "{{ ansible_facts['env']['HOME'] }}/.openpeon"
17-
codex_peon_install_base: "{{ ansible_facts['env']['HOME'] }}/.local/share/codex-peon"
18-
codex_peon_install_dir: "{{ codex_peon_install_base }}/hooks/peon-ping"
19-
codex_peon_config_source: "{{ role_path }}/files/peon-config.json"
20-
codex_peon_config_dest: "{{ codex_peon_dir }}/config.json"
21-
codex_peon_default_pack: "jarvis-mk2"
22-
codex_peon_install_script_url: "https://raw.githubusercontent.com/PeonPing/peon-ping/main/install.sh"

roles/codex/files/config.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@ web_search = "live"
1212
model = "gpt-5.4"
1313
plan_mode_reasoning_effort = "xhigh"
1414
service_tier = "fast"
15-
notify = [
16-
"sh",
17-
"-c",
18-
'exec "$HOME/.codex/notify-peon.sh" "$1"',
19-
"sh",
20-
]
2115

2216
[features]
2317
guardian_approval = true
2418
multi_agent = true
2519
undo = true
26-
voice_transcription = true
20+
voice_transcription = false
2721
# # Improves compatibility on Linux hosts where Landlock is unavailable/restricted.
2822
# use_linux_sandbox_bwrap = true
2923

roles/codex/files/notify-peon.sh

Lines changed: 0 additions & 143 deletions
This file was deleted.

roles/codex/files/peon-config.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

roles/codex/tasks/MacOSX.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
name: codex
55
state: present
66

7-
- name: "{{ role_name }} | MacOSX | Install | Add peon-ping Homebrew tap"
8-
community.general.homebrew_tap:
9-
name: peonping/tap
10-
state: present
11-
12-
- name: "{{ role_name }} | MacOSX | Install | peon-ping"
7+
- name: "{{ role_name }} | MacOSX | Remove legacy peon-ping"
138
community.general.homebrew:
149
name: peonping/tap/peon-ping
15-
state: present
10+
state: absent
11+
12+
- name: "{{ role_name }} | MacOSX | Remove legacy peon-ping Homebrew tap"
13+
community.general.homebrew_tap:
14+
name: peonping/tap
15+
state: absent

roles/codex/tasks/Ubuntu.yml

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,3 @@
11
---
22
- name: "{{ role_name }} | Ubuntu | Install | Codex CLI"
33
ansible.builtin.include_tasks: Linux.yml
4-
5-
- name: "{{ role_name }} | Ubuntu | Install | Peon audio and notification dependencies"
6-
become: true
7-
ansible.builtin.apt:
8-
name:
9-
- ffmpeg
10-
- libnotify-bin
11-
state: present
12-
update_cache: true
13-
when: can_install_packages | default(false)
14-
15-
- name: "{{ role_name }} | Ubuntu | Install | Peon dependencies skipped (no sudo)"
16-
ansible.builtin.debug:
17-
msg:
18-
- "peon-ping dependency install skipped due to missing sudo privileges"
19-
- "Ubuntu desktop sound notifications may not work until ffmpeg and libnotify-bin are installed"
20-
when: not (can_install_packages | default(false))
21-
22-
- name: "{{ role_name }} | Ubuntu | Install | Check for managed Peon install"
23-
ansible.builtin.stat:
24-
path: "{{ codex_peon_install_dir }}/peon.sh"
25-
register: codex_peon_ubuntu_install
26-
27-
- name: "{{ role_name }} | Ubuntu | Install | Download Peon installer"
28-
ansible.builtin.get_url:
29-
url: "{{ codex_peon_install_script_url }}"
30-
dest: "/tmp/peon-ping-install.sh"
31-
mode: "0755"
32-
when:
33-
- not codex_peon_ubuntu_install.stat.exists
34-
- not ansible_check_mode
35-
36-
- name: "{{ role_name }} | Ubuntu | Install | Run official Peon installer"
37-
ansible.builtin.command:
38-
argv:
39-
- bash
40-
- /tmp/peon-ping-install.sh
41-
- --global
42-
- --no-rc
43-
- "--packs={{ codex_peon_default_pack }}"
44-
environment:
45-
CLAUDE_CONFIG_DIR: "{{ codex_peon_install_base }}"
46-
register: codex_peon_ubuntu_installer
47-
changed_when: codex_peon_ubuntu_installer.rc == 0
48-
failed_when: false
49-
when:
50-
- not codex_peon_ubuntu_install.stat.exists
51-
- not ansible_check_mode
52-
53-
- name: "{{ role_name }} | Ubuntu | Install | Warn when Peon installer fails"
54-
ansible.builtin.debug:
55-
msg:
56-
- "official peon-ping Ubuntu install failed"
57-
- "{{ codex_peon_ubuntu_installer.stderr | default(codex_peon_ubuntu_installer.stdout | default('no output')) }}"
58-
when:
59-
- codex_peon_ubuntu_installer is defined
60-
- not (codex_peon_ubuntu_installer.skipped | default(false))
61-
- (codex_peon_ubuntu_installer.rc | default(0)) != 0

0 commit comments

Comments
 (0)