You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e256b30
Browse filesBrowse the repository at this point in the historyBrowse files
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>
<h2>What if you could use your own AI on your local paper’s site?</h2>
96
-
<pclass="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
+
<pclass="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>
98
98
<divclass="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><aclass="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><aclass="link" href="#invite">Who decides whether last week’s lesson should shape what you see today? →</a></p>
108
108
</div>
109
109
110
110
<divclass="grid-3">
@@ -113,21 +113,19 @@ <h2>What if you could use your own AI on your local paper’s site?</h2>
113
113
<h4>Your model.</h4>
114
114
<p>Today you connect Harbor to a model on your computer or through a provider.
115
115
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>
118
117
</div>
119
118
<div>
120
119
<pclass="num">B.</p>
121
120
<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>
126
123
</div>
127
124
<div>
128
125
<pclass="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>
131
129
</div>
132
130
</div>
133
131
</div>
@@ -153,7 +151,7 @@ <h2 style="max-width: 22ch">What can a website do with Harbor?</h2>
153
151
154
152
<divclass="codecard">
155
153
<divclass="codecard-head"><span>2 · run an agent that can call tools the user has approved</span><spanclass="num">window.agent</span></div>
<pre><code><spanclass="tk-k">for await</span> (<spanclass="tk-k">const</span><spanclass="tk-n">ev</span><spanclass="tk-k">of</span><spanclass="tk-n">window</span>.<spanclass="tk-p">agent</span>.<spanclass="tk-f">run</span>({ <spanclass="tk-p">task</span>: <spanclass="tk-s">"find a fingering for an F chord on guitar"</span> })) {
<h2style="max-width: 22ch">A smaller surface, by design.</h2>
306
-
<pclass="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
+
<pclass="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>
307
305
<p><aclass="link" href="spec.html#threat-model">Read the threat model →</a></p>
0 commit comments