Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); GitHub - pitimon/exp-myCodex: แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness · GitHub
Skip to content

Latest commit

History

50 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

exp-myCodex

A public, evidence-first Codex workstation playbook: memory, plugins, governance, token visibility, and runtime validation from real setup work.

Public handoffRuntime verifiedCodex pluginsMIT License

exp-myCodex is a professional handoff kit for preparing Codex on another machine. It packages the useful parts of one real workstation setup into public runbooks, manifests, overlays, and prompts that another Codex session can read and execute safely.

It is built around one principle: do not call a Codex setup healthy until the active runtime proves it.

What This Repo Is

This repository is not a marketing demo, a private incident log, or a one-shot installer. It is a public-safe operating kit for Codex users who want:

  • memory through claude-mem and mcp-search
  • curated second-brain notes through Obsidian
  • workflow discipline through 8-habit-ai-dev
  • governance and ADR support through claude-governance
  • token/cost visibility through TokenTracker
  • compact command output through RTK
  • multi-agent handoff through the CHANGES.log Bridge Pattern
  • bounded worker coordination through a local Meta-Loop Control ledger
  • bounded dispatch and child-telemetry audit for Meta Loop cost control
  • reviewer-routing pattern for high-impact Meta Loop decisions
  • exact-version overlays when fast-moving plugins break Codex behavior
  • repeatable validation prompts for target machines

Private infrastructure details, secrets, customer context, raw transcripts, and machine-specific incident records are intentionally excluded.

Start Here

For a new workstation, install and authenticate the Codex CLI first. Then paste this single bootstrap prompt into Codex. It authorizes the documented baseline installation on that workstation, but requires a pre-flight, backups, and runtime verification before anything is called healthy:

You are preparing this as a new Codex workstation. Codex is already installed
and authenticated. Read the canonical bootstrap prompt at
https://github.com/pitimon/exp-myCodex/blob/main/docs/prompts/codex-plugin-validation-prompt.md
and follow it in full. Do not clone, install, or mutate anything until its
Phase 0 read-only pre-flight completes; it authorizes a local working copy only
at the Phase 1 gate.
Run its Phase 0 pre-flight before changing anything. If the pre-flight passes,
install and verify the documented baseline components that are supported on
this platform. Back up any existing user configuration before changing it,
never print secrets, do not use private repositories, and report every skipped
or blocked component instead of guessing. Finish with the prompt's evidence
report and clearly state whether a Codex restart is required.

The prompt cannot install Codex itself and does not use sudo, change network or security policy, overwrite existing user configuration without a backup, or claim that optional tooling is healthy without its runtime checks. It keeps the first prompt stable by discovering the target's active versions first, then selecting an exact reviewed path or a no-mutation discovery path. This matters because Codex, claude-mem, Node, shell, and marketplace versions can differ between machines.

For claude-mem, issues #5, #6, and #8 remain public live errata. They are consulted only when the detected version or symptom makes them relevant; they are not a blanket instruction to copy historical workarounds to every workstation.

Expected outcome on a target workstation is not "the latest plugin installed." Expected outcome is a concise bootstrap report that proves the active runtime:

  • plugin and marketplace state were read from the target machine
  • claude-mem worker health was matched to the current user
  • Codex plugin path, versioned cache, staging roots, and user-level hooks were inspected separately
  • any exact-version overlay or issue-documented workaround was applied only after the active version was identified
  • CHANGES.log Bridge setup was verified when Claude Code and Codex may share a repository
  • Meta-Loop Control completed a temporary-ledger, validate-only lifecycle when multi-agent coordination is in scope; it did not install a hook or launch a worker
  • a real codex exec lifecycle smoke completed startup, prompt, tool, and stop hooks with no Failed entries

For a human reading the repo, use this path:

StepReadOutcome
1docs/README.mdUnderstand the documentation map
2docs/prompts/codex-plugin-validation-prompt.mdGet the target-machine validation prompt
3docs/manifests/verified-versions.yamlCompare the target version to reviewed support
4docs/manifests/codex-plugins.yamlSee recommended plugin selectors and versions
5docs/manifests/codex-tools.yamlSee adjacent CLI tools and smoke tests
6docs/runbooks/tools/changes-log-bridge.mdPrepare multi-agent local handoff
7docs/runbooks/plugins/claude-mem.mdValidate the memory layer and its drift policy
8issues #5, #6, and #8 when relevantResolve live claude-mem errata without guessing
9docs/runbooks/claude-mem-scenario-tests.mdStress-test the runbook on a real machine
10docs/prompts/meta-loop-validation-prompt.mdValidate the workflow-only control ledger safely

System View

flowchart TB
repo["exp-myCodex<br/>public docs + manifests + prompts + overlays"]
mirrors["Public mirrors<br/>GitHub + Gitea"]
prompt["Target-machine prompt<br/>docs/prompts/codex-plugin-validation-prompt.md"]
subgraph target["Target Codex Workstation"]
direction TB
subgraph control["Install + Runtime Verification"]
direction LR
install["Install/update<br/>codex plugin add<br/>marketplace refresh"]
verify["Verify active runtime<br/>codex plugin list<br/>codex mcp list<br/>lifecycle smokes"]
evidence["Evidence report<br/>versions, paths, health,<br/>warnings, skips"]
end
subgraph coordination["Workflow-only Coordination"]
direction LR
orchestrator["Codex Orchestrator<br/>decision and native spawn outside ledger"]
ledger["Meta-Loop Control ledger<br/>workflow-only; never launches workers"]
receipts["Managed receipts<br/>recorded after independent spawn/outcome evidence"]
workers["Native workers<br/>spawned outside the ledger"]
end
subgraph capabilities["Operational Capabilities"]
direction LR
memory["claude-mem<br/>hooks + worker + mcp-search"]
workflow["8-Habit AI Dev<br/>workflow skills"]
governance["claude-governance<br/>ADR + compliance checks"]
handoff["CHANGES.log Bridge<br/>multi-agent handoff"]
end
subgraph support["Support Tooling"]
direction LR
obsidian["Obsidian<br/>curated project notes"]
rtk["RTK<br/>compact command output"]
tokens["TokenTracker<br/>token/cost visibility"]
overlays["Exact-version overlays<br/>Codex compatibility fixes"]
end
end
repo --> prompt --> target
repo --> mirrors
install --> verify --> evidence
orchestrator -->|records lifecycle decision| ledger
ledger -->|records receipts only| receipts --> evidence
orchestrator -->|native spawn decision| workers
workers -. independent spawn/outcome evidence .-> receipts
verify --> memory
verify --> workflow
verify --> governance
verify --> handoff
memory --> obsidian
overlays --> verify
rtk --> evidence
tokens --> evidence
Loading

The Meta-Loop Control Pattern

Meta-Loop Control is a local, workflow-only ledger for a bounded task. The Codex Orchestrator remains the decision-maker and owns any native worker spawn; that decision occurs outside the ledger. The ledger records claims, operator attestations, returns, and synthesis only after independent spawn or outcome evidence exists. It never launches, observes, authenticates, or authorizes a worker, and its receipt is not spawn proof. Use its temporary-ledger validation to prove the CLI lifecycle, then retain independent spawn evidence when a real worker is used.

Evidence Model

This repo avoids the common failure mode where documentation says “installed” but the active Codex runtime is still stale, disabled, or pointed at a different cache.

Every runbook pushes the operator toward observable evidence:

LayerDo Not Trust AloneVerify Instead
Codex pluginsrepo files, release tags, old screenshotscodex plugin list, active plugin path, installed version
MCPplugin manifest onlycodex mcp list, tool availability, smoke queries
claude-mem workerone healthy HTTP responseport, workerPath, process owner, worker.pid, settings
claude-mem hooksstartup banner texthook JSON shape, SessionStart payload probe, warm-up behavior
Obsidian notesraw capture files, transcript dumpscurated project note, source IDs, index link, no secrets
Overlaysnewest directory by timestampexact active plugin version and matching overlay directory
TokenTracker/RTKpackage install successversion output, service status, smoke tests
CHANGES.log Bridgecopied prose or assumed global ignoreprotocol parity, top-level fallback, git check-ignore -v
Meta-Loop Controla ledger receipt as spawn prooftemporary-ledger lifecycle plus independent native-spawn evidence

Toolchain

AreaComponentWhy It Is HereRunbook
Memoryclaude-memReuse historical agent memory through Codex hooks and mcp-searchdocs/runbooks/plugins/claude-mem.md
Second brainObsidianStore curated human-readable project notes without replacing claude-memdocs/runbooks/tools/obsidian.md
Workflow8-habit-ai-devKeep AI-assisted engineering structured and reviewabledocs/runbooks/plugins/8-habit-ai-dev.md
Governanceclaude-governanceAdd ADR, compliance, and engineering governance supportdocs/runbooks/plugins/claude-governance.md
VisibilityTokenTrackerTrack token/cost usage and run a local dashboard/servicedocs/runbooks/tools/tokentracker.md
EfficiencyRTKReduce noisy command output before it reaches Codex contextdocs/runbooks/tools/rtk.md
HandoffCHANGES.log BridgeCoordinate Claude Code and Codex through a local git-ignored scratchpaddocs/runbooks/tools/changes-log-bridge.md
Dispatch controlMeta Loop bounded dispatchLimit inherited context, suppress duplicate scope, and audit child telemetrydocs/runbooks/tools/meta-loop-dispatch-control.md
Review routingMeta Loop reviewer receiptsRecord adapter-reported route, identity, and read-only metadata; disclose fallback or holddocs/runbooks/tools/meta-loop-review-routing.md
CoordinationMeta-Loop ControlRecord task lifecycle and attestations; never launch workersdocs/runbooks/tools/meta-loop.md
Compatibilityclaude-mem overlaysPatch known Codex compatibility breaks by exact plugin versionoverlays/

The CHANGES.log Bridge Pattern

The Bridge Pattern prepares a target workstation for projects where Claude Code and Codex may work in the same git repository. It is intentionally a userspace setup, not a repo-local config change.

The runbook verifies:

  • the same Bridge Protocol exists in ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md
  • project_doc_fallback_filenames = ["CLAUDE.md"] is a top-level Codex config key, so Codex can read project CLAUDE.md files when no AGENTS.md exists
  • CHANGES.log is ignored through the configured global git excludesfile
  • the latest handoff entry matches recent file changes and is not staged for PRs
  • core.hooksPath is noted when repo-tracked git hooks need separate handling

Use docs/runbooks/tools/changes-log-bridge.md for the full implementation and verification steps. The repo documents the pattern for other machines; it should not mutate this workstation's global ~/.claude, ~/.codex, or git config unless the operator explicitly requests that.

The claude-mem Pattern

The most important memory lesson from this setup is to validate Claude Code first, then attach Codex to the already-working memory worker.

The runbook checks:

  • Claude Code-first claude-mem preflight
  • Codex plugin install/update state
  • health on ports 37701 and 37777
  • foreign worker detection on shared hosts
  • mcp-search availability
  • unsupported suppressOutput hook regressions
  • exact-version overlay handling for 13.4.0, 13.4.1, 13.4.2, 13.6.2, and 13.8.0
  • scenario tests for read-only and state-changing validation

When claude-mem releases a new version, this repo intentionally treats that as a new runtime contract. Do not apply an old overlay to a new cache just because the file names look familiar.

Issues #5, #6, and #8 are the living records for this failure class:

https://github.com/pitimon/exp-myCodex/issues/5
https://github.com/pitimon/exp-myCodex/issues/6
https://github.com/pitimon/exp-myCodex/issues/8

Use them for newly observed hook failures, schema/parser drift, and version-specific upgrade workarounds. Keep the repo runbooks as the stable baseline, and add concise issue comments when a target machine reveals a new Codex or claude-mem runtime edge case.

The current verified Codex baseline is claude-mem13.8.0 with the local overlay under overlays/claude-mem/13.8.0/. The older 13.6.2 overlay remains available for exact-version legacy workstations. Both overlays record the same core rule: patch only the matching active version, inspect every live-resolvable root, and finish with real Codex lifecycle smokes.

The Obsidian Pattern

Obsidian is useful here as a curated, human-readable second brain. It should not replace claude-mem historical observations, and it should not receive raw transcripts by default.

The pattern from the source workstation is:

  • use claude-mem and mcp-search for historical agent memory and evidence
  • stage raw local captures under Codex/Inbox/ when a capture hook exists
  • promote only durable summaries, decisions, runbooks, and lessons into Claude-Mem/Projects/<project>/
  • keep each project note concise, dated, source-backed, and linked from an Index.md
  • never store secrets, tokens, private keys, customer-sensitive data, or raw operational logs in Obsidian

Use docs/runbooks/tools/obsidian.md when adding this layer to a new machine or project.

Repository Structure

docs/
README.md
manifests/
codex-plugins.yaml
codex-tools.yaml
public-mirrors.yaml
verified-versions.yaml
prompts/
codex-plugin-validation-prompt.md
runbooks/
claude-mem-scenario-tests.md
codex-claude-mem-memory-runbook.md
plugins/
8-habit-ai-dev.md
claude-governance.md
claude-mem.md
template.md
tools/
changes-log-bridge.md
meta-loop.md
obsidian.md
rtk.md
tokentracker.md
overlays/
claude-mem/
13.4.0/
13.4.1/
13.4.2/
13.6.2/
13.8.0/
scripts/
claude-mem-codex-compat.cjs

Public Mirrors

The project is published in two public locations:

https://github.com/pitimon/exp-myCodex
https://gitea.ipv9.me/pitimon/exp-myCodex

Mirror policy lives in:

docs/manifests/public-mirrors.yaml

Keep main aligned on both mirrors after public documentation updates.

Maintenance Standard

Before publishing a change:

  1. Verify the behavior on a real machine or label the gap clearly.
  2. Update the runbook and the relevant manifest together.
  3. Use exact plugin selectors and versions where possible.
  4. Add overlays only for exact active plugin versions.
  5. Run markdown and whitespace checks.
  6. Scan changed public files for secrets and private paths.
  7. Push main to both public mirrors.

Public-Safety Boundary

Do not publish:

  • API keys, OAuth tokens, bearer tokens, private keys, passwords, or kubeconfigs
  • raw transcripts or sensitive local logs
  • customer context or private operations details
  • private issue links
  • machine-specific paths unless they are generic examples

When inspecting local settings, report only safe derived facts such as boolean secret presence and value length.

Contributing

Useful contributions improve repeatability:

  • clearer install/update steps
  • better cross-platform validation
  • corrected version manifests after live verification
  • new scenario tests from real target machines
  • troubleshooting notes backed by observed behavior

Avoid claims that are not backed by runtime evidence.

License

MIT. See LICENSE.

About

แชร์ประสบการณ์เตรียม Codex แบบ public-safe เพื่อให้เพื่อน ๆ ใช้ Codex ได้ดีขึ้น ทั้ง memory, workflow discipline, runtime verification, token awareness

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages