<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinshin86</author_name>
  <author_url>https://blog.hatena.ne.jp/shinshin86/</author_url>
  <blog_title>at backyard</blog_title>
  <blog_url>https://shinshin86.hateblo.jp/</blog_url>
  <categories>
    <anon>Codex</anon>
  </categories>
  <description>macOSのターミナルからCodexアプリを開くときに、今いるプロジェクトフォルダを選択した状態で新規スレッドを開始したくて小さな関数を作った。 この関数を使うと、現在のディレクトリをCodexのworkspaceとして開ける。引数で別のディレクトリを渡すことも可能。 macOSにCodexアプリがインストールされている前提。また、コマンド内部の python3 はローカルパスを安全に URL エンコードするためだけに使っている。これもmacOSではじめから使えるコマンドなので採用している次第。 以下の関数を .zshrc などに書いて source ~/.zshrc を実施して使う想定です。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinshin86.hateblo.jp%2Fentry%2F2026%2F06%2F21%2F075838&quot; title=&quot;macOSのターミナルから現在のプロジェクトを選択した状態でCodexアプリを開く方法 - at backyard&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-21 07:58:38</published>
  <title>macOSのターミナルから現在のプロジェクトを選択した状態でCodexアプリを開く方法</title>
  <type>rich</type>
  <url>https://shinshin86.hateblo.jp/entry/2026/06/21/075838</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
