@mmon-co/ncept-bb
Common Concept in bb. Say what you want to learn, in your own words: that is a Mission. The tutor charts it as a map of skills and teaches it one Lesson at a time, each Lesson in its own thread. The tutor is pi on the model you already use, and what you have learned is a Profile, a directory on your machine. Learning here needs no Common Concept account or subscription.
Start learning
bb plugin install npm:@mmon-co/ncept-bb
bb concept init ~/learn
For an existing installation, run the plugin install command again, then update both extensions from your Profile: pi update npm:@mmon-co/ncept-pi and pi update npm:@mmon-co/ncept-bb. Restart any running tutoring sessions so they use the updated extensions.
init creates the Profile directory and a bb project for it. Open Learn in bb's navigation rail and press + New Mission, or start a thread in that project with the pi provider and say what you want to learn.
Your pi models and authentication stay yours. Initialization adds both pi packages and saves the Profile's project-trust entry on its machine, since pi's RPC mode cannot ask for trust. --machine <id-or-name> selects a machine explicitly; otherwise init uses the current thread's machine or, outside a thread, the server. Use an absolute directory or ~/ path. Existing Profiles are never overwritten.
Learn
- Missions are listed with what’s next. Start → or Continue → opens a due check-in or the next Lesson as a titled thread, or returns to the one already open.
- Today shows which Nodes are due. The tutor can recheck them during your Session.
- A Mission's page shows a due check-in beside its route of milestones and Lessons. Kept asides and past Sessions link to their threads.
- Skip… takes what you already know, in a sentence or by choosing a later stop. Revise… reworks the current Lesson or the route, or finishes the Mission.
- Share… on a Mission's page publishes its map and Materials on the Hub at a link and gives you the link to copy. It isn't listed. Sharing needs a free Common Concept account: send
/concept login in one of the project's threads once.
- A question off the Lesson's path opens an aside as a child thread, so bb's parent row takes you back.
- With several Profiles, the path in Learn's title bar chooses one.
The Profile holds its map, your evidence and every transcript as ordinary files. @mmon-co/ncept-pi reads the same directory, so cd ~/learn && pi continues in a terminal, and its commands (/learn, /hub pull) work in the project's threads.
Development
Source first use
From the main checkout on the bb server machine:
mise run deps
bun packages/bb/scripts/source-install.ts <server-machine-id>
bun packages/bb/scripts/first-use.ts /tmp/my-bb-profile <server-machine-id>
The last command prints a directly runnable thread-spawn command. It creates a disposable Profile/project with Count liberties and Recognize atari Missions, one Node due for review, and a scripted tutor. Say Accept Lesson, then in the new Lesson thread say Open an aside. The marker blue pebble travels with each handoff. No account, deployment, network model or paid draw is required. The script records provider contexts in the Profile's bb-encounter-context.jsonl.
From a worker checkout, run the panel-entry and association encounter inside the shared-install wrapper:
bun packages/bb/scripts/source-install.ts <server-machine-id> -- bun packages/bb/scripts/entry-encounter.ts /tmp/my-bb-entry-profile <server-machine-id>
The wrapper builds main before installing the candidate, then reinstalls main even when the command fails. It also re-homes checkout-backed Profile extensions and scripted providers to main. For a browser encounter, start source-install.ts <server-machine-id> --until /tmp/my-unused-release-file as a managed process, wait for Candidate Learn ready, then prepare first use and drive Learn. Close the browser and stop its threads, create the release file with touch, and wait for Durable Learn source before settling the worker. source-install.ts <server-machine-id> alone repairs an existing shared install. It uses the repository's main checkout, never a previously recorded worker source.
It starts from the same setup, opens the entry controls through RPC, creates a plain composer thread, restarts its process, and opens tutor handoffs and a kept aside. It stops its thread runtimes afterwards, retaining the Profile, project, bb-first-use.json target identity, provider contexts and bb-entry-encounter.json observations for the next UI encounter.
For a real learner using unpublished source, use bb concept init ~/learn --source /absolute/main-checkout/packages/bb instead; this selects sibling packages/pi too, without a seed or scripted tutor.
Transport
The pi extension is inert outside bb. It claims @mmon-co/ncept-pi's shared-bus handoff, passes a temporary host-local request file through $BB_CLI concept spawn, then removes the file. The plugin reuses the thread's project, environment and execution selection. Metadata records the Session and carry; provider environment contributions let the fresh pi process adopt them before its first prompt.
Carries above 24 KiB live in plugin-owned storage, referenced by thread metadata and fetched through bb concept carry on start. This avoids the OS environment-variable limit and bb's 256 KiB metadata limit. The handoff accepts up to 4 MiB of carry. Carry is hidden tutoring context, not a credential; bb provider diagnostics include contributed environment values.
Learn entry API
Import rpcContract's type from src/contract.ts for a typed plugin RPC client. open({projectId, intent}) returns {threadId, title}. Entries are continue with missionId, new-mission, tell-tutor with missionId and request, revise-lesson with missionId, and revise-route with missionId. Continue returns the existing active Session's thread when it is known. thread({projectId, session}) returns {threadId: string | null} for kept asides and history.
The selected project's source identifies the Profile and machine. Skip entries (skip-lesson, or skip-to with the stop identity from the Mission reading) resolve and write in the new tutoring pi process. retire({projectId, missionId, outcome}), with outcome achieved or abandoned, opens the writing local host on that machine and finishes the Mission under the Profile directory lock. It opens no thread. Other entry resolution and Session creation run in the tutoring pi process. A new Mission opens charting. Mission Continue resolves a due check-in or the next Lesson; both Revise controls and Tell the tutor open a new Session. The learner's request remains the first user message. The title is refined from the resolved Session before its first turn.
Panel entries, tutor handoffs and plain pi threads all record their Session in plugin metadata and a Profile-scoped lookup. A process restart adopts the recorded Session. The Profile and its transcripts remain the local host's ordinary portable files.