Install
Install with PiG
pig install npm:@mmon-co/ncept-piInstall with Pi
pi install npm:@mmon-co/ncept-piPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/extension.ts"
]
}README
Written by the package's publisher, shown as published in version 0.4.0 (README.md). PiG does not review it.
@mmon-co/ncept-pi
The official pi learning front end over the MIT-licensed local Profile host. Your Profile is an ordinary directory; pi's accounts, models, theme, keybindings and global extensions stay yours. Coding projects do not load this package.
Start learning
Install pi, then:
npx @mmon-co/ncept-pi init ~/learn
cd ~/learn
pi
The package installs the concept-pi executable. If you already have a Profile, run pi update npm:@mmon-co/ncept-pi to get the new commands; your saved Common Concept sign-in moves automatically.
Accept pi's one-time project trust prompt. The dashboard above the editor shows Missions, next stops and due review, and clears when you speak. A fresh conversation is a chat Session. The tutor can recheck due Nodes during your Session.
/learn <goal>charts what you want to learn./learnoffers Missions and their next stops;/learn <mission-id>opens a particular Mission./skipin a Mission Lesson skips this Lesson or ahead to a later planned stop, recording the skipped Nodes as claimed known./author [goal]opens an authoring Session./missionsshows the dashboard again./hub pull <release-url or patch@version>adopts a release without an account. You can also paste an address and ask the tutor to pull it./concept loginsigns in once through the browser;/concept logoutremoves the saved Common Concept credential. These are separate from pi's model accounts./hub sharepublishes one Mission's map and Materials on the Hub at a link: choose the Mission, give it a title, confirm. Whoever has the link can read it and/hub pullit; it isn't listed./hub share <mission-id>skips the chooser. Sharing needs a free Common Concept account, not a subscription, and signs you in on first use.- In authoring, ask the tutor to publish: its
hubtool packages the current personal Patch, bases and Materials and confirms public publication. Publishing needs a free Common Concept account, not a subscription. /concept export-to-webreplaces web Main with this Profile after confirmation; every Mission moves with it./concept import-from-webreplaces this Profile after confirmation, preserving the old project in the host's backup directory. pi project settings are restored;/resumecan continue imported Sessions.
Every conversation is pi's own JSONL under sessions/. /resume continues one, /tree selects its branch, and /new starts a fresh chat. Host mode switches open next or aside pi Sessions with the Theory's declared carry. Observations, Mission progress, saved Materials and trusted Session associations live in the Profile and travel with its exchange archive. A session pi keeps elsewhere (--session-dir, PI_CODING_AGENT_SESSION_DIR, or a front end such as bb's pi bridge) is mirrored into sessions/, so the Profile still carries every transcript.
The mode's native tools, context and Skills replace pi's coding prompt every turn. Global AGENTS.md and coding Skills are excluded. The mode selects which Common Concept tools are mounted; every other tool pi and its extensions provide stays available in every mode.
Models and grading use the model currently selected in pi, through pi's provider/auth runtime. The selected model must support tool calls and structured judgments. No Common Concept account, token limit, hosted deployment or subscription is needed for local learning.
Front ends over this extension
A front end layered over pi can own where Sessions open, a new window or thread per Session say, through pi's shared extension bus. When a Session opens while the current pi session already holds a conversation, the extension emits ncept:open-session with the opened Session, its kickoff message, its hidden carry and whether it is aside; a listener that calls claim opens it itself, and the current pi session stays visible for the learner to archive. Its next message resumes its previous host Session before the turn. The claimant can return a learner-facing continuation (a link, for example); a tutor-requested switch returns it in the tool result so the tutor can finish the outgoing turn normally. In the fresh pi session, the front end emits ncept:adopt-session with the Session and carry before the first prompt. For a learner control without an outgoing conversation, emit ncept:begin-session after this extension's session_start, supplying a local-host SessionIntent and a claim callback. Await the claimed function before the first prompt; it resolves the intent and records the Session in pi. The channels and payload types are exported from @mmon-co/ncept-pi/events.
Development first use
From a repository checkout:
bun install
bun run --cwd packages/pi build
bun packages/pi/scripts/first-use.ts /tmp/my-concept-profile
cd /tmp/my-concept-profile && pi
The setup script requires an unused directory and points the project package at this checkout instead of the unpublished npm package. It creates an empty Profile, no account or seed; pi uses your existing model authentication. It does not change your global pi settings or deploy a service.
bun test packages/pi/test/pi-wiring.test.ts
The SDK wiring smoke uses a scripted model with real host tools and pi Session files; it makes no paid or network requests.
Oversized Map confirmations
From a bb project shell, launch the learner surface directly:
bun run --cwd packages/pi build
bun packages/pi/scripts/confirm-first-use.ts --bb /tmp/concept-confirm-profile
Use an unused Profile path. The launcher opens a top-level bb Pi thread, waits up to two minutes for its oversized Map confirmation, and prints READY with the pending interaction. No account, seed, deployment or model request is needed. It records the owned thread in the Profile. After the encounter, stop that thread, remove its trust entry and delete the Profile with:
bun packages/pi/scripts/confirm-first-use.ts --cleanup /tmp/concept-confirm-profile
Without --bb, bun packages/pi/scripts/confirm-first-use.ts /tmp/concept-confirm-profile prepares a fresh authoring Profile with an offline tutor and prints the plain pi and bb launch commands. It trusts only that new directory in pi's trust store, so bb can load its project extension. Each message proposes 24 capabilities with criteria, then echoes the actual tool result. Accept the first proposal, send another message and dismiss the second. In bb, inspect the Full change JSON before answering; standalone pi shows the entire change. Pi returns the same boolean for No and dismissal; both report that the learner declined or did not answer.
Send Probe 8192 or Probe 8193 in a fresh encounter thread to exercise bb's raw message limit without the extension's file fallback. After stopping its threads, run bun packages/pi/scripts/confirm-first-use.ts --untrust /tmp/concept-confirm-profile and remove the scratch directory.
For a checkout-owned hosted endpoint, set CONCEPT_HUB_URL to its Application base URL (including /ncept) before starting pi. CONCEPT_CREDENTIALS_FILE selects an isolated credential file outside the Profile; login and logout use the same file. Omit both for the public product. OAuth uses pi's public CIMD identity, PKCE and the patches publish learn scopes; it does not require the issuer to enable dynamic registration.