Your Repository's Mentat
"It is by will alone I set my mind in motion."
Welcome back,
You'll need this token in Step 5
We sent a sign-in link to
Click the link in the email to get your access token.
Thanks for signing up! Thufir isn't available to the public yet.
We'll let you know as soon as it's ready. Stay tuned.
You'll need this token in Step 5
"Every sietch has its own ways. Choose wisely."
The Mentat requires certain instruments
First, get a Claude Code subscription ($20/mo). Once you have it, run these two commands — the first installs the Claude Code CLI, and the second opens your browser to log in with your Anthropic account:
This installs the Claude Code CLI globally so you can run it from any project folder.
npm install -g @anthropic-ai/claude
claude auth login
npm install -g @anthropic-ai/claude
claude auth login
Requires Node.js (v18+) — npm is included when you install Node.
After installing Node.js on Windows, close and reopen your terminal before running npm.
Your AI colleague uses GitHub to manage code. Install the GitHub CLI, then log in — it will open your browser to authenticate with GitHub:
GitHub CLI lets your AI colleague create repositories and manage code on your behalf.
brew install gh
gh auth login
winget install GitHub.cli
gh auth login
If brew is not recognized, install Homebrew first: brew.sh
Don't have a GitHub account? Create one here — it's free.
Create a new folder for your project and initialize it as a git repository. Replace my-project with whatever you'd like to name it:
This creates an empty folder with git version control — the home for your AI project.
mkdir my-project && cd my-project
git init
mkdir my-project; cd my-project
git init
Download and install Typeless for speech-to-text.
Speech-to-text lets you talk to your AI colleague instead of typing. Great for brain dumps.
Once installed, click into your terminal where Claude Code is running, tap the Fn key (bottom-left of your keyboard) once, and start speaking. Typeless captures up to 9 minutes of speech and sends it directly to the agent as text. Tap Fn again to stop.
Once installed, click into your terminal where Claude Code is running, tap your Typeless hotkey once, and start speaking. Check your Typeless settings to see or change the hotkey. Typeless captures up to 9 minutes of speech and sends it directly to the agent as text. Tap the hotkey again to stop.
This is especially useful for brain dumps — describing your project, glossary, or taxonomy in your own words. The agent will make sense of it and structure it for you.
Access the spice reserves
Your AI colleague needs permission to read your team's data tables.
Go to the Microsoft Access Portal and request the packages you need:
[TDP] Databricks dmn_public_analytics — pipeline & workflow data[TDP] Databricks dmn_core_analytics — quality scores, finances, team hours[TDP] Databricks dmn_workers — qualifications[TDP] Databricks tier_eu_svc_sft_temporal_backend — item metadataAccess is not automatic — someone from the analytics team or your manager needs to approve it. You'll get a Slack notification. Follow up directly if it takes too long.
This token authenticates your AI colleague's queries against Databricks.
Log in to Databricks, then:
Copy the token immediately — you won't be able to see it again. Save it somewhere safe. You'll paste it into your project's .env file in the next step.
The .env file keeps your secrets local — they never get committed to git.
In your project folder, create a file called .env and paste these three lines, replacing the placeholder with your actual token:
DATABRICKS_HOST=adb-2350007385231210.10.azuredatabricks.net
DATABRICKS_TOKEN=<paste your token here>
SQL_WAREHOUSE_ID=05bd6e6a717c8be7
This file is automatically gitignored — your token will never be committed or shared.
This confirms your AI colleague can reach the data warehouse and list what's available.
Open Claude Code in your project and run:
claude "Check my Databricks connection and list available schemas"
Initialize your repository's intelligence
Your token:
This downloads the Thufir configuration and sets up your project's AI memory.
Make sure you're inside your project folder (from Step 3), then run this command. npx downloads and runs the installer without a permanent install. It will ask for your token — paste the one from the "Get Your Token" page:
npx thufir init
If npx is not recognized, you need to install Node.js first (same prerequisite as Claude Code).
Confirms Claude Code is installed and accessible from your terminal.
Confirm Claude Code is installed and working. You should see a version number like 1.x.x:
claude --version
If you see "command not found," go back to Slide 3 Step 1 and re-run the npm install command. On Windows, try closing and reopening your terminal first.
Starts an interactive session — your AI colleague is ready to talk.
Start Claude Code and talk to your new AI colleague. That's it — you're ready for the workshop:
claude
The pre-work is complete. Your tools are sharp.
The spice will flow when the council convenes.
Workshop begins in
--:--:--
"The sleeper must awaken."
Give your colleague deep knowledge of your data systems
This prompt gives your Mentat foundational knowledge about how data is organized — the four layers from raw sources to polished data marts, naming conventions your team uses, and how to build new views.
Loading prompt...
Establish the pipeline between your Mentat and your warehouse
This prompt connects your Mentat to the data warehouse so it can run real queries. It configures credentials, catalogs, schemas, and teaches the agent how to execute SQL against Databricks.
Loading prompt...
The first step to understanding is naming things precisely
This prompt puts your Mentat in listening mode. It will ask you to describe your project in your own words — what you do, who works on it, what matters — then structure everything into a glossary.
Loading prompt...
After pasting the prompt, the agent will wait for you to describe your project. Use Typeless (tap Fn) or type. Talk about:
You don't need to mention table names, column names, or any technical details. The agent already knows the data sources — it will connect your language to the right tables.
Turn your glossary into queryable data
This prompt tells your Mentat to collaborate with you on designing a data mart view. It will use brainstorming to ask clarifying questions, then build and test the SQL automatically.
Loading prompt...
After pasting the prompt, use Typeless (hold Fn) or type to tell the agent what data you want. Describe:
The agent will use /brainstorm to ask you clarifying questions, design the view, then build and test the SQL automatically.
Make your Mentat's knowledge permanent
Right now, your Mentat knows everything because you just built the project together. But if you open a new Claude session tomorrow, that new agent won't know any of it. This prompt tells your Mentat to update its own configuration files so that every future session automatically knows how to query your data.
claude session will immediately know how to helpLoading prompt...
Ask your Mentat anything about your project
Open a new Claude session in your project folder. Because you updated the agent files in the previous step, this fresh session already knows everything — your glossary, your data, your views. Just ask.
Start a new Claude session (claude) and use Typeless or type to ask questions about your data:
You can ask anything about your project for which you built the data mart in the prior steps. The agent will read your glossary, find the right view or table, run the SQL, and show you the results.
This is a brand new Claude session — the agent has never seen your project before. It works because the agent files you updated in the previous step tell it exactly where to look.
When the numbers don't add up
Sometimes the data comes back but something feels off — too many results, missing people, wrong totals. When that happens, tell the agent to use /systematic-debugging. It will investigate methodically instead of guessing.
In your Claude session, type /systematic-debugging and then explain what seems off. Use Typeless or type naturally:
Explain what you understand to be true about your project that doesn't match what the agent returned. You don't need to diagnose the technical problem — just describe what seems wrong and why.
The agent will systematically investigate: checking filters, looking for duplicates, verifying date ranges, and comparing its results against your expectations. It handles the technical diagnosis.
Continue exploring at home — your Mentat remembers everything. Push your work before you close: git push