Skip to content

Commit e256b30

Browse files
samuelcolecodex
andauthored
Explain bringing your own agent through a guitar lesson (#28)
Use a guitar lesson to show what the site supplies, what the reader chooses to share, and how their agent can help. Carry the example through the homepage’s API and permissions sections. Co-Authored-By: GPT-6 (Codex) <codex@openai.com>
1 parent 23c7cd9 commit e256b30

1 file changed

Lines changed: 25 additions & 27 deletions

File tree

‎whitepaper/index.html‎

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ <h2>Whose side is your agent on?</h2>
9292
<!-- ===================== PROPOSAL ===================== -->
9393
<section class="section section-tint" id="proposal">
9494
<div class="wrap">
95-
<h2>What if you could use your own AI on your local paper’s site?</h2>
96-
<p class="lead">Your grandmother sold tickets at Union Station. You’ve told your agent
97-
about her. You open your local paper’s archive.</p>
95+
<h2>What if you could use your own AI on the sites you visit?</h2>
96+
<p class="lead">You search the web for the guitar chords to a song you love.
97+
You find a version you can play, until you get to the chorus.</p>
9898
<div class="prose measure">
99-
<p>You choose “Search with my AI” and ask, “What did people say when the old station closed?” Your browser asks, “Let the paper use your AI to answer this question?”</p>
100-
<p>You allow it. Your agent picks three words, <em>Union Station closure</em>, and sends them to the archive.
101-
The paper sends back matching stories. Your agent points you to the ticket clerks’
102-
recollections because it knows about your grandmother. Her name never appeared
103-
in the search.</p>
104-
<p>Now suppose your agent wants to search for her by name. Does that permission cover sending her name,
105-
or would you want it to show you the search and ask again before sending her name
106-
to the newspaper?</p>
107-
<p><a class="link" href="#invite">What would you want your own agent to keep to itself? →</a></p>
99+
<p>Imagine you click “Learn this song with my AI” and ask your agent, “Can I play the chorus
100+
with the chords I know? Use my last lesson note for this song.” Your browser asks whether to let the site use your AI
101+
to work out a version you can play. You choose “This time only.”</p>
102+
<p>The site supplies the arrangement. Your agent looks up the note you saved together last week,
103+
spots a chord you practiced,
104+
and shows you an easier way to play the chorus with it. You can switch between the two
105+
versions and hear what changes.</p>
106+
<p>Next week you come back ready to learn the harder part.</p>
107+
<p><a class="link" href="#invite">Who decides whether last week’s lesson should shape what you see today? →</a></p>
108108
</div>
109109

110110
<div class="grid-3">
@@ -113,21 +113,19 @@ <h2>What if you could use your own AI on your local paper’s site?</h2>
113113
<h4>Your model.</h4>
114114
<p>Today you connect Harbor to a model on your computer or through a provider.
115115
Choosing a model doesn’t import another assistant’s conversations or memories.
116-
Your agent could learn about your grandmother from this conversation or from a saved note
117-
you give it permission to read.</p>
116+
The guitar example imagines an agent that already has access to your lesson notes.</p>
118117
</div>
119118
<div>
120119
<p class="num">B.</p>
121120
<h4>Your context.</h4>
122-
<p>With a model running on your computer, the prompt is processed on your device.
123-
With a hosted model, the provider receives the prompt, including any conversation or
124-
saved-note text sent with it. If that text mentions your grandmother, the provider sees
125-
that detail. In this example, the newspaper receives just the search terms.</p>
121+
<p>The music site sees what you ask and how your agent answers, so it can see any lesson details that come up in their exchange.
122+
If you use a hosted model, its provider receives your question, the arrangement, and any lesson notes or chat history included in the request.</p>
126123
</div>
127124
<div>
128125
<p class="num">C.</p>
129-
<h4>Mediated by the browser.</h4>
130-
<p>When a site asks to use your agent, you decide what to allow. Your browser enforces your choice. As with camera access, you can give one site permission and take it back later.</p>
126+
<h4>Controlled by you.</h4>
127+
<p>Your browser asks whether the music site may use your AI.
128+
You tell your agent which lesson to draw on for this song.</p>
131129
</div>
132130
</div>
133131
</div>
@@ -153,7 +151,7 @@ <h2 style="max-width: 22ch">What can a website do with Harbor?</h2>
153151

154152
<div class="codecard">
155153
<div class="codecard-head"><span>2 · run an agent that can call tools the user has approved</span><span class="num">window.agent</span></div>
156-
<pre><code><span class="tk-k">for await</span> (<span class="tk-k">const</span> <span class="tk-n">ev</span> <span class="tk-k">of</span> <span class="tk-n">window</span>.<span class="tk-p">agent</span>.<span class="tk-f">run</span>({ <span class="tk-p">task</span>: <span class="tk-s">"find recent press on quantum chips"</span> })) {
154+
<pre><code><span class="tk-k">for await</span> (<span class="tk-k">const</span> <span class="tk-n">ev</span> <span class="tk-k">of</span> <span class="tk-n">window</span>.<span class="tk-p">agent</span>.<span class="tk-f">run</span>({ <span class="tk-p">task</span>: <span class="tk-s">"find a fingering for an F chord on guitar"</span> })) {
157155
<span class="tk-k">if</span> (<span class="tk-n">ev</span>.<span class="tk-p">type</span> === <span class="tk-s">"tool_call"</span>) <span class="tk-n">console</span>.<span class="tk-f">log</span>(<span class="tk-s">"→"</span>, <span class="tk-n">ev</span>.<span class="tk-p">tool</span>);
158156
<span class="tk-k">if</span> (<span class="tk-n">ev</span>.<span class="tk-p">type</span> === <span class="tk-s">"final"</span>) <span class="tk-n">console</span>.<span class="tk-f">log</span>(<span class="tk-n">ev</span>.<span class="tk-p">output</span>);
159157
}</code></pre>
@@ -162,10 +160,10 @@ <h2 style="max-width: 22ch">What can a website do with Harbor?</h2>
162160
<div class="codecard">
163161
<div class="codecard-head"><span>3 · a page declares its own tool · Harbor API</span><span class="num">navigator.modelContext</span></div>
164162
<pre><code><span class="tk-n">navigator</span>.<span class="tk-p">modelContext</span>.<span class="tk-f">addTool</span>({
165-
<span class="tk-p">name</span>: <span class="tk-s">"search_archive"</span>,
166-
<span class="tk-p">description</span>: <span class="tk-s">"Search our 20-year archive"</span>,
167-
<span class="tk-p">inputSchema</span>: { <span class="tk-p">type</span>: <span class="tk-s">"object"</span>, <span class="tk-p">properties</span>: { <span class="tk-p">query</span>: { <span class="tk-p">type</span>: <span class="tk-s">"string"</span> } } },
168-
<span class="tk-p">handler</span>: ({ <span class="tk-n">query</span> }) =&gt; <span class="tk-f">searchArchive</span>(<span class="tk-n">query</span>),
163+
<span class="tk-p">name</span>: <span class="tk-s">"get_chords"</span>,
164+
<span class="tk-p">description</span>: <span class="tk-s">"Get the chords for a section of this song"</span>,
165+
<span class="tk-p">inputSchema</span>: { <span class="tk-p">type</span>: <span class="tk-s">"object"</span>, <span class="tk-p">properties</span>: { <span class="tk-p">section</span>: { <span class="tk-p">type</span>: <span class="tk-s">"string"</span> } } },
166+
<span class="tk-p">handler</span>: ({ <span class="tk-n">section</span> }) =&gt; <span class="tk-f">getChords</span>(<span class="tk-n">section</span>),
169167
});</code></pre>
170168
</div>
171169
</div>
@@ -190,7 +188,7 @@ <h2 style="max-width: 22ch">What can a website do with Harbor?</h2>
190188
<h2>Harbor is the working sketch of the proposal.</h2>
191189
<p>
192190
You can try your model today with the <a class="link" href="#get-started">Page Summarizer in Firefox</a>.
193-
The newspaper archive is an example of what a site could build.
191+
The guitar lesson is an example of what a music site could build.
194192
</p>
195193
<p style="margin-top: 18px;">
196194
<a class="link" href="spec.html">Read the spec →</a><br/>
@@ -303,7 +301,7 @@ <h4>Revise a draft in your own voice.</h4>
303301
<section class="section section-sunken" id="security">
304302
<div class="wrap">
305303
<h2 style="max-width: 22ch">A smaller surface, by design.</h2>
306-
<p class="lead">We assume a model can be fooled by something it reads. In the proposal, a site asks for specific actions. You could allow an agent to search a news archive without giving it permission to edit a story. You can revoke a site’s access.</p>
304+
<p class="lead">We assume a model can be fooled by something it reads. In the proposal, a site asks for specific actions. You could allow an agent to read a song’s chords without giving it permission to change the published arrangement. You can revoke a site’s access.</p>
307305
<p><a class="link" href="spec.html#threat-model">Read the threat model →</a></p>
308306
</div>
309307
</section>

0 commit comments

Comments
 (0)