Notion で Codex が可能にする機能とは
OpenAI は、自社の AI コード生成モデル「Codex」が Notion の利用体験をどのように拡張し、ユーザーに新たな価値をもたらすかを解説した。
Notion では、Codex がエンジニアの構築方法を変えています。同社は、エージェントが利用できるように、自身が構築するソフトウェアのプリミティブと抽象化を再考しています。チームに新しいエンジニアを迎える際、通常その分野で求められるような経験年数はまだ存在しないため、好奇心と開かれた心を持つ人材を採用しています。また、何年も生産環境のコードを書いたことがなかったマネージャーたちが再びコードベースに戻り、チームと共に成果を出しています。
Ryan Nystrom は Notion で AI 製品エンジニアリングを担当しています。1 年以上の在任期間中、彼のチームは製品のほぼすべての AI 機能の開発または関与を行いました。彼らは、Codex に頼ることで、取り組めることの新たな可能性が切り開かれていることに気づいています。
「私が Codex を評価するのは、実際に構築する前に時間をかけて物事を理解しようとする点です。その結果、通常、Codex が構築するものは最初から私たちのコードベースの基準に合致しており、私が後でその成果を整理し直す必要がありません。」
—Ryan Nystrom, AI 製品エンジニアリング, Notion
Web 上の Notion の AI 音声入力機能の構築
Codex の自律的な実行能力は、最近のプロジェクトではっきりと現れました。Ryan は Notion の AI 音声入力を Web に導入する際、Codex を独占的に使用しました。
「私たちが話しているとき、より多くの文脈を提供できます」と彼は言います。「私がタイピングしているときは、自分の文章や使用する言葉について考えています。この機能を Notion ユーザーに提供することで、彼らはより自然な質問を行い、はるかに多くの文脈を含めることができるようになります。私たちはこれを Notion AI に持ち込みたかったのです。」
機能リクエストが届いた際、Notion のモバイルアプリにはすでに機能的なバージョンが存在していましたが、デスクトップ版と Web クライアントには存在しませんでした。Ryan はその機能がモバイル上でどのように動作するか完全に確信していなかったものの、この問題を Codex に任せることができました。彼は Codex をモバイルのコードベースに向け、Web 上での外観について明確な説明を与え、結果を検証する方法も提示しました。Codex は、Notion のコードベースの規約に十分に合致する Web 実装の最初の完全版を、一発で返してきました。これにより、翌日にはリリースが可能となりました。
「もし私が 2 年前に Notion の音声入力機能を構築していたとしたら、これは私ともう一人のエンジニアで 2 週間かかるプロジェクトだったでしょう」と Ryan は語ります。「Codex を使えば、私はたった一人で 3〜4 時間ほどでこれを構築できました」。
「Codex は私たちのモバイルコードを探索するのにかなりの時間を費やし、その後、ほぼ一発で機能全体を書き上げました。翌日にリリースし、すぐにユーザーにテストを開始させました」
—Ryan Nystrom, AI Product Engineering, Notion
仕事のやり方がどう変わったか
Notion のエンジニアたちは、Codex にタスクのセットとその成果を検証する方法を定期的に渡すことで、実行中は離れておくことができます。「Codex に任せて作業させるために、私が Codex に渡せる仕様書を書くことに、以前よりもずっと多くの時間を費やすようになったと感じています」と Ryan は言います。「正直なところ、私はもはや手書きでコードを書くことはほとんどありません」
Codex 以前は、チームの各エンジニアは会議と同僚へのサポートの合間に挟まれながら、一度に一つのタスクにしか集中できませんでした。現在は複数のタスクを並行して進めつつも、かつてボトルネックとなっていたチームサポートを失うことなく作業を進めています。
「私はチームを管理していますが、従来のマネージャーにはコードを書く時間なんてありませんでした」と彼は言います。「チームへのサポートを続けながら一人で機能を構築できるという事実は驚異的です。5 年以上マネジメントを行ってきましたが、これほど深くコーディングの問題に取り組んだことはありませんでした。」
今では、タスクをキューに並べて会議のブロックに入り、戻れば完成した機能が待っています。あるいは彼と彼のチームには、一緒にリリースできるマネージャーがつき、ライアンは自分が手放したはずの仕事の一部を取り戻します。この利用可能性は勤務時間を超えても続きます。彼は就寝前に研究質問を投げかけ、Codex に一晩中実行させてもらい、朝には完成したレポートを目にします。
Codex は小規模チーム(1 人のチームさえ!)がリリースできるものの基準をリセットし、Notion のエンジニアたちに、最も重視する仕事に集中するための余地を与えました。
「タスクの調査が必要になったとき、バグを修正したいとき、ちょっとした調整を行いたいとき、Codex はいつでもそこにいて、すぐにでも対応してくれます。要するに、Notion には 24 時間 365 日利用可能なインターンがいるようなものです。」
—ライアン・ニストロム、AI プロダクトエンジニアリング、Notion
原文を表示
At Notion, Codex is changing how engineers build. The company is rethinking the software primitives and abstractions it builds so that agents can use them. When bringing a new engineer onto the team, they're hiring for curiosity and open-mindedness, since the years of experience the field would normally call for don't exist yet. And managers who hadn't written production code in years are back in the codebase, shipping alongside their teams.
Ryan Nystrom runs AI Product Engineering at Notion. In his year-plus tenure, his team has built or touched nearly every AI feature in the product. They’re finding that turning to Codex has unlocked new possibilities for what they can take on.
“What I appreciate about Codex is that it takes its time to figure things out before actually building. The result is that usually what it builds is to our codebase’s standards off the bat, rather than me having to go back and clean up a bunch of its work.”
—Ryan Nystrom, AI Product Engineering, Notion
Building Notion’s AI voice input on the web
Codex’s ability to autonomously execute showed up clearly in a recent project. Ryan exclusively used Codex to bring Notion’s AI voice input to the web.
"When we talk, we can provide so much more context," he says. "If I'm typing, I'm thinking about my prose, what words I'm using. By giving this feature to users on Notion, they're able to ask more organic questions and include a lot more context. We wanted to bring that to Notion AI."
When the feature request came in, Notion's mobile app already had a functional version, but the desktop and web client didn't. Even though Ryan wasn't entirely sure how the feature worked on mobile, he was able to give the problem to Codex. He pointed it at the mobile codebase, gave it a clear description of how it would need to look on the web, and provided a way to verify the result. Codex came back with a complete first cut of the web implementation, in one shot, that matched Notion's codebase conventions closely enough to ship the next day.
"If I were to build the Notion voice input feature two years ago, this is a project that would've taken me and maybe another engineer two weeks," Ryan says. "With Codex, I was able to build this in maybe three or four hours, entirely by myself."
“It spent a bunch of time exploring our mobile code, and then finally came back and wrote the entire feature basically in one shot. I shipped it the next day and immediately started letting users test it.”
—Ryan Nystrom, AI Product Engineering, Notion
How the work has changed
Engineers at Notion can routinely hand Codex a set of tasks and a way to check its work, then step away while it runs. "I've almost found myself spending a lot more time writing these spec documents that I can hand to Codex and let it work on," Ryan says. "Honestly, I don't really write code by hand anymore."
Before Codex, each engineer on the team could really focus on only one task at a time, squeezed between meetings and supporting peers. Now they're running multiple tasks in parallel, firing off work without losing any of the team support that used to be the bottleneck.
"I manage a team of people, and traditionally managers haven't had time to write code," he says. "The fact that I can build a feature solo while still supporting my team is crazy. I've been managing for five-plus years and never been able to go this deep on coding problems."
Now he can simply queue up a task, head into a block of meetings, and come back to a finished feature. Or he and his team get a manager who can ship alongside them, and Ryan gets back a part of the job he'd assumed he had traded away. This availability runs past the workday, too. He'll pose a research question before bed, let Codex run overnight, and wake up to a finished report.
Codex has reset the baseline for what a small team (even a team of one!) can ship, and given Notion's engineers more room to focus on the work they care about most.
“Whenever I need to research a task, fix a bug, or make a little tweak, Codex is just there, ready and willing. Basically, I’ve got an intern available at Notion 24/7.”
—Ryan Nystrom, AI Product Engineering, Notion
関連記事
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み