Skip to content

A Claude Code / Codex plugin that helps you learn how to build while AI writes the code.

Python

Add Codex support and tighten learning-note handling

Noah Kim6cf815b34906
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
new file mode 100644
index 0000000..0561570
--- /dev/null
+++ b/.agents/plugins/marketplace.json
@@ -0,0 +1,16 @@
+{
+ "name": "vibe-wise",
+ "interface": { "displayName": "VibeWise" },
+ "plugins": [
+ {
+ "name": "vibe-wise",
+ "source": { "source": "local", "path": "./" },
+ "policy": {
+ "installation": "AVAILABLE",
+ "authentication": "ON_INSTALL",
+ "products": ["CODEX"]
+ },
+ "category": "Developer Tools"
+ }
+ ]
+}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 52dc5ea..7463b80 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "vibe-wise",
- "version": "0.1.43",
+ "version": "0.1.44",
"description": "You build. AI writes. Learn how to build software while Claude writes the code.",
"author": { "name": "Noah Kim" },
"repository": "https://github.com/nykooi1/vibe-wise",
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
new file mode 100644
index 0000000..426f548
--- /dev/null
+++ b/.codex-plugin/plugin.json
@@ -0,0 +1,25 @@
+{
+ "name": "vibe-wise",
+ "version": "0.1.44",
+ "description": "You build. AI writes. Learn how to build software while Codex writes the code.",
+ "author": { "name": "Noah Kim" },
+ "homepage": "https://github.com/nykooi1/vibe-wise",
+ "repository": "https://github.com/nykooi1/vibe-wise",
+ "license": "MIT",
+ "keywords": ["learning", "architecture", "engineering"],
+ "skills": "./skills/",
+ "hooks": {},
+ "interface": {
+ "displayName": "VibeWise",
+ "shortDescription": "Learn to build software while Codex writes the code",
+ "longDescription": "VibeWise puts learning first. Codex asks for your approach, helps you examine tradeoffs, and explains unfamiliar concepts. You own the design and decide when it's ready; Codex writes the agreed code and explains what it changed.",
+ "developerName": "Noah Kim",
+ "category": "Developer Tools",
+ "capabilities": ["Interactive", "Read", "Write"],
+ "websiteURL": "https://github.com/nykooi1/vibe-wise",
+ "composerIcon": "./.claude-plugin/icon.svg",
+ "logo": "./assets/vibewise-icon.png",
+ "defaultPrompt": ["$vibe-wise:learn"],
+ "screenshots": []
+ }
+}
diff --git a/README.md b/README.md
index 7addeef..9e7e2fb 100644
--- a/README.md
+++ b/README.md
@@ -4,16 +4,19 @@
**You build. AI writes.**
-A Claude Code plugin that puts learning first and keeps you in control while AI writes the code you designed. Claude **asks for your approach first**, helps you examine tradeoffs, and explains unfamiliar concepts. You shape the design and decide when it's ready to implement. Claude writes the code, then explains what it changed and why.
+A plugin for **Claude Code** and **Codex** that puts learning first and keeps you in control while AI writes the code you designed. The AI **asks for your approach first**, helps you examine tradeoffs, and explains unfamiliar concepts. You shape the design and decide when it's ready to implement. The AI writes the code, then explains what it changed and why.
For anyone who wants to learn as they build—whether you're an aspiring engineer, a junior developer, or an experienced engineer exploring an unfamiliar stack. Practice planning how the pieces fit together, anticipating failures, and checking the result while keeping ownership of the decisions.
## Get started
-You need an up-to-date [Claude Code](https://code.claude.com/docs/en/setup) and
+You need an up-to-date [Claude Code](https://code.claude.com/docs/en/setup) or
+[Codex](https://developers.openai.com/codex), and
[Python 3](https://www.python.org/downloads/). VibeWise uses Python to restore
learning context and reset learning notes. No extra Python packages are needed.
+### Claude Code
+
Install from the built-in **Anthropic Directory**. In Claude Code, run:
```text
@@ -54,6 +57,28 @@ Restart Claude Code, then run `/vibe-wise:learn` in your project.
</details>
+### Codex
+
+In a terminal, run these commands **one at a time**. First, add the marketplace:
+
+```sh
+codex plugin marketplace add nykooi1/vibe-wise
+```
+
+After it finishes, install the plugin:
+
+```sh
+codex plugin add vibe-wise@vibe-wise
+```
+
+Start Codex in your project and run `$vibe-wise:learn`. Run it again at the start
+of each Codex session, and whenever Codex seems to have lost track of learning
+mode. It resumes from your saved notes without repeating setup. To reset, run
+`$vibe-wise:reset`. Claude Code and Codex share the same `.vibe-wise/` notes.
+
+In Codex, the commands in this guide use `$` instead of `/`: `/vibe-wise:learn`
+becomes `$vibe-wise:learn`.
+
## What it feels like
You're building a Notion-style notes app: users sign in, create and edit private
@@ -211,9 +236,9 @@ are with the stack. Checkpoint frequency—Light, Normal, or Frequent—is separ
- “Just implement this one.”
- “Pause learning.” Resume with `/vibe-wise:learn`.
-Preferences, learning notes, and a project map live in `.vibe-wise/` in your project. Learning mode resumes in future sessions and after compaction. Add `.vibe-wise/` to your `.gitignore` to keep your notes out of Git; the plugin won't change it silently.
+Preferences, learning notes, and a project map live in `.vibe-wise/` in your project. In a Git repository, that's the repository root, and VibeWise finds it from any subfolder. Without Git, it's the folder you start in, so always start from your project's top folder. Learning mode resumes in future sessions and after compaction. Add `.vibe-wise/` to your `.gitignore` to keep your notes out of Git; the plugin won't change it silently.
-No extra account, backend, or telemetry. Saved notes are included in Claude's context, so your normal Claude Code data settings still apply.
+No extra account, backend, or telemetry. Saved notes are included in the AI's context, so your normal Claude Code or Codex data settings still apply.
To start learning this project from scratch, run `/vibe-wise:reset`. It shows the
project and asks **Cancel / Reset learning**. After confirmation, it backs up your
@@ -223,7 +248,7 @@ your experience level or preferences, just tell Claude; no reset is needed.
## Updating
-Open `/plugin` → **Installed**, select VibeWise, and choose **Update now**.
+In Claude Code, open `/plugin` → **Installed**, select VibeWise, and choose **Update now**.
For automatic updates, open **Marketplaces**, select the source you installed from,
and enable auto-update if it's off.
@@ -244,6 +269,18 @@ Then restart Claude Code. Your project learning notes stay intact; no reset is n
Run `claude plugin list` to check the installed version.
[More about plugin updates](https://code.claude.com/docs/en/discover-plugins#keep-plugins-updated).
+For Codex, refresh the marketplace, then install the latest version:
+
+```sh
+codex plugin marketplace upgrade vibe-wise
+```
+
+```sh
+codex plugin add vibe-wise@vibe-wise
+```
+
+Then start a new Codex session.
+
## License
[MIT](LICENSE). You can use, modify, and share this software, including commercially. Keep the license notice with copies. The software comes without a warranty.
diff --git a/hooks/session_start.py b/hooks/session_start.py
index b1623a6..b9dac36 100644
--- a/hooks/session_start.py
+++ b/hooks/session_start.py
@@ -37,10 +37,24 @@ def profile_is_active(path):
return has_content
+def git_root(cwd):
+ """Find the nearest repository or worktree root (a .git directory or file)."""
+ for directory in (cwd, *cwd.parents):
+ if (directory / ".git").exists():
+ return directory
+ return None
+
+
def state_directory(cwd):
"""Find the nearest notes directory without crossing a Git project boundary."""
- # Starting in a source subdirectory should still find the project's notes.
- for directory in (cwd, *cwd.parents):
+ root = git_root(cwd)
+ # Within Git, a source subdirectory should still find the project's notes.
+ # Without Git there's no project boundary, so only the starting folder counts:
+ # searching upward could adopt notes from an unrelated parent folder.
+ candidates = [cwd] if root is None else [cwd, *cwd.parents][
+ : len(cwd.relative_to(root).parts) + 1
+ ]
+ for directory in candidates:
# Prefer the new name at the nearest location; keep legacy notes in place.
for name in (".vibe-wise", ".sensible-vibes"):
state = directory / name
@@ -48,9 +62,6 @@ def state_directory(cwd):
# Stop even if this candidate is invalid. Falling back to a parent
# could silently load a different project's learner profile.
return state if state.is_dir() and not state.is_symlink() else None
- # A .git file is a worktree boundary too. Never borrow another repo's state.
- if (directory / ".git").exists():
- break
return None
diff --git a/skills/learn/SKILL.md b/skills/learn/SKILL.md
index b020e49..6c56983 100644
--- a/skills/learn/SKILL.md
+++ b/skills/learn/SKILL.md
@@ -16,6 +16,8 @@ An ordinary build request in this mode retains that loop;
only an explicit request to skip or pause bypasses it.
Do not switch to a subagent or require manual coding by default.
+If you are running in Codex rather than Claude Code, first read [codex.md](codex.md).
+
Use the Read tool for plugin guides instead of printing them with Bash `cat`.
Use Glob to discover optional learner-state files before reading them. A missing
`.vibe-wise/` directory is normal first-time setup, not an error. If a shell
@@ -29,7 +31,8 @@ make a successful instruction read look like a failed tool call.
Starting at the current working directory, look upward for `.vibe-wise/` or legacy
`.sensible-vibes/`, preferring `.vibe-wise/` when both exist at the same level,
stopping at the nearest `.git` directory or file (including a worktree root).
-Use the nearest existing state directory within that boundary. Keep using legacy
+Use the nearest existing state directory within that boundary. Without Git, check
+only the current directory; don't search its parents. Keep using legacy
notes in place; never merge, move, or reset them automatically. If there is none,
create `.vibe-wise/` at the Git root, or current directory without Git. Do not use
state from a parent repository, another worktree, or the installed plugin folder.
diff --git a/skills/learn/agents/openai.yaml b/skills/learn/agents/openai.yaml
new file mode 100644
index 0000000..6a20e31
--- /dev/null
+++ b/skills/learn/agents/openai.yaml
@@ -0,0 +1,5 @@
+interface:
+ display_name: "VibeWise Learn"
+ short_description: "Start or resume learning-first development"
+policy:
+ allow_implicit_invocation: false
diff --git a/skills/learn/behavior.md b/skills/learn/behavior.md
index 5d3e096..434d9fc 100644
--- a/skills/learn/behavior.md
+++ b/skills/learn/behavior.md
@@ -109,6 +109,8 @@ their understanding, assumptions, and uncertainties visible so you can give usef
feedback; clicking an option doesn't reveal that reasoning.
Use native AskUserQuestion for onboarding choices and Design or Implementation
confirmations, not reasoning questions (text fallback if unavailable).
+Write a confirmation's summary in chat before calling the picker; the picker
+shows only the question and options.
Reports need no question.
Headings use `✦ <Type>: <description>` with exact labels:
`Build checkpoint`, `Design checkpoint`, `Implementation checkpoint`, `System check`,
diff --git a/skills/learn/codex.md b/skills/learn/codex.md
new file mode 100644
index 0000000..b9acaa9
--- /dev/null
+++ b/skills/learn/codex.md
@@ -0,0 +1,21 @@
+# VibeWise in Codex
+
+These notes adapt Claude Code tool and command names for Codex. They don't change
+the learning behavior; follow SKILL.md and its guides as written.
+
+- Commands: `/vibe-wise:learn` is `$vibe-wise:learn`; `/vibe-wise:reset` is
+ `$vibe-wise:reset`.
+- Paths: `${CLAUDE_PLUGIN_ROOT}` is not expanded in Codex. The plugin root is two
+ directories above this file; guides such as behavior.md sit beside it.
+- Files: where the guides say Read or Glob, use your file-reading and search tools.
+ Reading plugin guides with a shell command is fine. Check optional learner-state
+ files with a conditional that succeeds when they're missing.
+- Choices: AskUserQuestion doesn't exist here. If a native question tool such as
+ `request_user_input` is available, use it with the same options; otherwise ask
+ one plain-text question with the options listed. Then end your turn and wait.
+- Restoration: Codex has no VibeWise session hook. Learning mode resumes when the
+ learner invokes `$vibe-wise:learn`. If context was compacted and you're unsure
+ whether a decision is pending, search progress.md before acting.
+- Replies: present each checkpoint or question once, at the end of your reply,
+ with its options beneath it. Don't restate it in a separate message, add a
+ closing line after it, or quote these guides to the learner.
diff --git a/skills/learn/state-templates.md b/skills/learn/state-templates.md
index 9d00bb0..c49ece7 100644
--- a/skills/learn/state-templates.md
+++ b/skills/learn/state-templates.md
@@ -55,16 +55,19 @@ As learning occurs, add a `## Topic` with concise bullets under Introduced,
Demonstrated understanding, and Needs reinforcement. Record reasoning evidence,
not quotations of a whole exchange. Product preferences establish requirements;
they aren't evidence of engineering understanding. Keep learner-proposed reasoning
-distinct from concepts Claude explained. Consolidate repeated entries. Keep each
+distinct from concepts the AI explained. Consolidate repeated entries. Keep each
topic independently readable so it can be loaded without the whole file.
-While waiting on a checkpoint, keep a short `## Pending decision` section
-with the proposed approach and what reply is awaited. Remove it once resolved.
-Include the checkpoint's decision name and stage: awaiting reasoning, choice
-confirmation, or implementation approval. Record confirmed choices in the map
-without claiming they are implemented. Keep any proposed coding scope explicit.
+While waiting on a checkpoint, keep a short section headed exactly
+`## Pending decision`, not in a topic, with the proposed approach and what reply is
+awaited. Include the checkpoint's decision name and stage: awaiting reasoning,
+choice confirmation, or implementation approval. Remove it once resolved: record
+the outcome in the map as chosen or implemented, labeling approved additions as
+the AI's, and any reasoning evidence in its topic. Don't move the pending text
+into a topic; update entries the outcome supersedes. Record confirmed choices in
+the map without claiming they are implemented. Keep any proposed coding scope explicit.
Confirmation covers only the proposal presented. Don't append unmentioned fields,
behaviors, rejected alternatives, or reasons to the chosen design. Mark unresolved
-details unknown and Claude's suggestions proposed; never attribute them to the learner.
+details unknown and the AI's suggestions proposed; never attribute them to the learner.
## project-map.md
diff --git a/skills/reset/SKILL.md b/skills/reset/SKILL.md
index a2a4397..e4c0aef 100644
--- a/skills/reset/SKILL.md
+++ b/skills/reset/SKILL.md
@@ -10,6 +10,8 @@ Run this in the main conversation, only when explicitly invoked. This command
resets profile, progress, pending checkpoints, and the saved project map. Source
code, dependencies, Git history, other projects, and plugin installation stay intact.
+If you are running in Codex rather than Claude Code, first read [codex.md](codex.md).
+
1. Run the read-only preview for the user's current project directory. Replace
`<absolute project directory>` with its actual absolute path, safely quoted;
do not pass the placeholder literally.
diff --git a/skills/reset/agents/openai.yaml b/skills/reset/agents/openai.yaml
new file mode 100644
index 0000000..e78692c
--- /dev/null
+++ b/skills/reset/agents/openai.yaml
@@ -0,0 +1,5 @@
+interface:
+ display_name: "VibeWise Reset"
+ short_description: "Back up learning notes and restart onboarding"
+policy:
+ allow_implicit_invocation: false
diff --git a/skills/reset/codex.md b/skills/reset/codex.md
new file mode 100644
index 0000000..b0e1a43
--- /dev/null
+++ b/skills/reset/codex.md
@@ -0,0 +1,14 @@
+# VibeWise Reset in Codex
+
+These notes adapt Claude Code tool and command names for Codex. Follow SKILL.md
+as written otherwise.
+
+- Paths: `${CLAUDE_PLUGIN_ROOT}` is not expanded in Codex. Run `reset.py` from
+ this file's directory, using its absolute path. The Learn guide is
+ `../learn/SKILL.md` relative to this file.
+- Commands: suggest `$vibe-wise:learn` where SKILL.md says `/vibe-wise:learn`.
+- Choices: AskUserQuestion doesn't exist here. If a native question tool such as
+ `request_user_input` is available, use it with the same options; otherwise ask
+ the same question in text. Then end your turn and wait for an explicit answer.
+- Replies: ask the confirmation once, at the end of your reply. Don't add a
+ closing line after it or quote these guides to the user.
diff --git a/tests/test_reset.py b/tests/test_reset.py
index 7ad2b22..80de06b 100644
--- a/tests/test_reset.py
+++ b/tests/test_reset.py
@@ -129,6 +129,15 @@ class ResetTests(unittest.TestCase):
(child / ".git").mkdir()
self.assertEqual(self.preview(child)["status"], "no_notes")
+ def test_no_git_folder_never_resets_parent_notes(self):
+ parent = self.root / "documents"
+ parent.mkdir()
+ state, originals = self.notes(parent)
+ plain = parent / "plain-project"
+ plain.mkdir()
+ self.assertEqual(self.preview(plain)["status"], "no_notes")
+ self.assert_originals(state, originals)
+
def test_no_state_and_empty_state_do_not_create_files(self):
self.assertEqual(self.preview()["status"], "no_notes")
self.assertEqual(list(self.project.iterdir()), [self.project / ".git"])
diff --git a/tests/test_session_start.py b/tests/test_session_start.py
index e55cf4d..5295978 100644
--- a/tests/test_session_start.py
+++ b/tests/test_session_start.py
@@ -97,6 +97,29 @@ class SessionStartTests(unittest.TestCase):
self.state(project)
self.assertIn(str(project / ".vibe-wise"), self.context(cwd=project))
+ def test_no_git_project_ignores_parent_folder_notes(self):
+ # A session once started in a shared parent (like ~/Documents) must not
+ # supply notes to every plain project folder beneath it.
+ parent = self.root / "documents"
+ project = parent / "throwaway" / "plain-project"
+ project.mkdir(parents=True)
+ self.state(parent)
+ self.assertIsNone(self.run_hook(cwd=project))
+ empty = parent / "other"
+ empty.mkdir()
+ (empty / ".vibe-wise").mkdir()
+ nested = empty / "plain"
+ nested.mkdir()
+ self.assertIsNone(self.run_hook(cwd=nested))
+
+ def test_no_git_project_prefers_its_own_notes_over_parent_notes(self):
+ parent = self.root / "documents"
+ project = parent / "plain-project"
+ project.mkdir(parents=True)
+ self.state(parent, mode="paused")
+ self.state(project)
+ self.assertIn(str(project / ".vibe-wise"), self.context(cwd=project))
+
def test_legacy_notes_restore_without_migration(self):
state = self.state()
legacy = state.with_name(".sensible-vibes")