-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathinstall.yaml
More file actions
56 lines (56 loc) · 3.43 KB
/
Copy pathinstall.yaml
File metadata and controls
56 lines (56 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# OpenAI Codex CLI adapter manifest.
#
# Codex reads `<project>/.codex/config.toml` (also `~/.codex/config.toml` for
# user-global). We ship the project-local form so `vouch install-mcp codex`
# doesn't touch home-directory state -- see issue #179 scope decision.
#
# `.codex/config.toml` is codex's *primary* config file (model, approval
# policy, other MCP servers), so T1 deep-merges into an existing one instead
# of skipping it -- see issue #384. Existing user values always win.
host: codex
pretty: OpenAI Codex CLI
fence:
begin: "<!-- BEGIN vouch -->"
end: "<!-- END vouch -->"
tiers:
T1:
- { src: config.toml, dst: .codex/config.toml, toml_merge: true }
# T2 = AGENTS.md fenced snippet (codex reads AGENTS.md for project
# instructions the way cursor does -- see issue #385). Kept in lockstep
# with adapters/cursor/AGENTS.md.snippet modulo the host name.
T2:
- { src: AGENTS.md.snippet, dst: AGENTS.md, fenced_append: true }
# T3 = the vouch guided flows as codex *skills* under the project-local
# `.codex/skills/` -- see issue #386. Scope decision recorded here per
# that ticket: codex custom prompts load only from ~/.codex/prompts/
# (user-global) and are deprecated upstream in favour of skills, and the
# #179 rule forbids a project-scoped install from touching home-directory
# state, so prompts are out and project-local skills are in. The SKILL.md
# files are referenced from the openclaw mirror rather than duplicated;
# their bodies are sync-tested against the claude-code commands.
T3:
- { src: ../openclaw/skills/vouch-recall/SKILL.md, dst: .codex/skills/vouch-recall/SKILL.md }
- { src: ../openclaw/skills/vouch-status/SKILL.md, dst: .codex/skills/vouch-status/SKILL.md }
- { src: ../openclaw/skills/vouch-resolve-issue/SKILL.md, dst: .codex/skills/vouch-resolve-issue/SKILL.md }
- { src: ../openclaw/skills/vouch-propose-from-pr/SKILL.md, dst: .codex/skills/vouch-propose-from-pr/SKILL.md }
- { src: ../openclaw/skills/vouch-ask/SKILL.md, dst: .codex/skills/vouch-ask/SKILL.md }
- { src: ../openclaw/skills/vouch-remember/SKILL.md, dst: .codex/skills/vouch-remember/SKILL.md }
- { src: ../openclaw/skills/vouch-record/SKILL.md, dst: .codex/skills/vouch-record/SKILL.md }
- { src: ../openclaw/skills/vouch-followup/SKILL.md, dst: .codex/skills/vouch-followup/SKILL.md }
- { src: ../openclaw/skills/vouch-standup/SKILL.md, dst: .codex/skills/vouch-standup/SKILL.md }
# T4 = automatic session capture (issue #388) plus per-prompt KB context
# injection (issue #425). codex's hooks system fires Stop when a turn
# completes; the handler re-ingests the session's rollout idempotently
# (`vouch capture ingest-codex --hook` exits 0 even on failure, so capture
# can never break a codex turn), updating the session's single PENDING
# summary proposal as the session grows. codex also fires UserPromptSubmit
# with the same {prompt, session_id, ...} shape and additionalContext
# response contract as claude-code's UserPromptSubmit, so the same
# `vouch context-hook` command (see hooks.py, #425) serves both hosts
# unmodified. hooks live in their own `.codex/hooks.json` file
# (project-local in trusted projects) and json_merge preserves any hooks
# the user already has. note: the legacy `notify` setting can't be used
# here -- codex only honours it in user-global config, which the #179
# rule forbids touching.
T4:
- { src: hooks.json, dst: .codex/hooks.json, json_merge: true }