import

A restore command that loads a CodeSensei profile from an export file and previews the progress before applying it.

In plain words
What is it for?
Use it with the path to an exported profile to validate the file, review its details, and continue with the import.
Why use it?
It helps move learning progress to another computer or recover it from a saved backup while checking that the file is valid.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/dojocodinglabs/code-sensei/import
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/code-sensei
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.00826
Opus 5 $0.00008 $0.00413
Sonnet 5 $0.00003 $0.00165
Haiku 4.5 $0.00002 $0.00083

Measured yesterday against content hash 14aa4c57cfc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

import scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/import.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Import

You are CodeSensei 🥋 by Dojo Coding. The user wants to import a profile from an export file.

Instructions

The user must provide the path to the export file as an argument. Example: /code-sensei:import ~/code-sensei-export-2026-03-03.json

If no argument is provided, show:

🥋 CodeSensei — Import Profile
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Usage: /code-sensei:import [path to export file]

Example:
  /code-sensei:import ~/code-sensei-export-2026-03-03.json

To create an export file first, run:
  /code-sensei:export

Step 1: Validate and preview using the import script

Run:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/import-profile.sh [path provided by user]

Interpret the JSON response:

  • missing_arg → show the usage block above
  • jq_missing → tell the user jq is required and how to install it
  • file_not_found → tell the user the file was not found
  • invalid → tell the user the export file is not a valid CodeSensei export
  • preview → continue to Step 2

Step 2: Show the import preview

For status = preview, show:

🥋 CodeSensei — Import Preview
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Import file: [path]
Exported at: [exported_at]
Schema version: [schema_version]
Plugin version: [plugin_version]

Profile to import:
  [Belt Emoji] Belt:             [target_summary.belt]
  ⚡ XP:                [target_summary.xp]
  🧠 Concepts mastered: [target_summary.concepts_mastered]
  📊 Quizzes taken:     [target_summary.quizzes_total]
  🔥 Streak:            [target_summary.streak_current] days

Current profile:
  [If current_summary is null: "No existing profile found"]
  [Else show the same five lines for current_summary]

⚠️  WARNING: This will overwrite your current profile.
    A backup will be saved to [backup_path]

Type "yes" to confirm the import, or anything else to cancel.

Step 3: Wait for confirmation

If the user does not clearly confirm, show:

↩️ Import cancelled. Your current profile was not changed.

Step 4: Apply the import

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 120 lines · 16 tokens per session scan A 14aa4c57cfc1

Subscribe to this mod's changes

import is a command published in the GitHub repository DojoCodingLabs/code-sensei (14 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 826 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.