惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Troy Hunt's Blog
Scott Helme
Scott Helme
T
Threat Research - Cisco Blogs
T
Tenable Blog
L
LINUX DO - 热门话题
V
Visual Studio Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
Cisco Talos Blog
Cisco Talos Blog
A
Arctic Wolf
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
Know Your Adversary
Know Your Adversary
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
N
Netflix TechBlog - Medium
SecWiki News
SecWiki News
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
Project Zero
Project Zero
W
WeLiveSecurity
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
Recorded Future
Recorded Future
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
S
Securelist
Spread Privacy
Spread Privacy
L
LangChain Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
The Last Watchdog
The Last Watchdog
Attack and Defense Labs
Attack and Defense Labs
博客园 - 司徒正美
Help Net Security
Help Net Security
L
Lohrmann on Cybersecurity
人人都是产品经理
人人都是产品经理
Forbes - Security
Forbes - Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
PCI Perspectives
PCI Perspectives
博客园 - 【当耐特】
T
Tor Project blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
smile/studio at master · haifengl/smile
haifeng · 2026-05-05 · via Hacker News: Show HN

SMILE Studio User Guide

SMILE Studio is an integrated development environment (IDE) for machine learning and data science using the SMILE library. It combines an interactive notebook, an AI-powered agent panel, a file explorer, and a kernel explorer in a single, modern desktop application. The launcher (smile / smile.bat) also exposes several command-line entry points. For the User Guide for CLI, see CLI.md.


Table of Contents

  1. Overview
  2. Starting SMILE Studio
  3. Application Layout
  4. Menus and Toolbar
  5. The Notebook
  6. Execution Kernels
  7. Project Explorer
  8. Kernel Explorer
  9. AI Agent Panel
  10. Notepad
  11. Settings — AI Service Configuration
  12. Status Bar
  13. Font Size
  14. MCP (Model Context Protocol) Integration
  15. LSP (Language Server Protocol) Integration
  16. Themes / Look-and-Feel
  17. Keyboard Shortcuts Reference
  18. Configuration Files
  19. Troubleshooting

1. Overview

SMILE Studio brings together four major components in one window:

Component Description
Notebook Interactive multi-cell editor supporting Java, Scala, and Python
AI Agent Panel Conversation interface to AI-powered coding and data science agents
Project (File) Explorer File tree of the current working directory
Kernel Explorer Live view of runtime variables, models, and inference services

All four panels are arranged in a resizable split-pane layout, and the application remembers which notebooks were open across sessions.


2. Starting SMILE Studio

Run SMILE Studio from your project's root directory so that relative paths in notebooks resolve correctly:

# Unix / macOS
cd /your/project
path/to/smile/bin/smile

# Windows
cd C:\your\project
path\to\smile\bin\smile

Note: SMILE Studio must be started in a graphical (non-headless) environment. If the JVM is running in headless mode the application will print an error and exit.

System Requirements

  • Java 25+ (with --enable-native-access=ALL-UNNAMED for the Java kernel's JShell remote VM)
  • Python 3.x with ipython installed for Python notebooks (pip install ipython)
  • Scala engine (included via the JSR-223 script engine)
  • At least 4 GB RAM; 8 GB recommended for large datasets

3. Application Layout

┌─────────────────────────────────────────────────────────────────────┐
│  Menu Bar:  File  |  Cell  |  Help                                  │
│  Toolbar:  [New] [Open] [Save] [SaveAs] | [AddCell] [Run] [Clear]   │
│             [Restart] [Stop]                                        │
├──────────────────────────────┬──────────────────────────────────────┤
│  Explorer Tabs               │  Agent Tabs                          │
│  ┌──────────┬──────────┐     │  📊 Clair | ☕ James | 🐍 Guido     │
│  │ Project  │  Kernel  │     │                                      │
│  └──────────┴──────────┘     │  [Intent input / conversation area]  │
│                              │                                      │
│  File tree / Variable tree   ├──────────────────────────────────────┤
│                              │  Notebook Tabs                       │
│                              │  ┌─────────────────────────────────┐ │
│                              │  │  Cell 1: [▶][⏭][▾][↑][↓][🧹][⌦]│ │
│                              │  │  [code editor]                  │ │
│                              │  │  [output area]                  │ │
│                              │  ├─────────────────────────────────┤ │
│                              │  │  Cell 2 …                       │ │
│                              │  └─────────────────────────────────┘ │
├──────────────────────────────┴──────────────────────────────────────┤
│  Status Bar:  [status message]         [Heap: 512 MB  CPU: 12%]     │
└─────────────────────────────────────────────────────────────────────┘
  • Left split – Project explorer (top) / Kernel explorer (bottom), switchable by tab.
  • Center split – Notebook tabs.
  • Right split – AI Agent tabs.
  • Bottom – Status bar.

The divider positions are persisted and restored between sessions.


4. Menus and Toolbar

File Menu

Action Description
New Create a new Untitled.java notebook
Open… Open an existing notebook or script file
Save Save the currently active notebook
Save As… Save the active notebook to a new path
Auto Save Toggle periodic auto-save (every 60 seconds)
Settings… Open the AI service configuration dialog
Exit Close all open notebooks (with save prompts) and quit

Cell Menu

Action Description
Add Cell Insert a new code cell after the currently focused one
Run All Execute every cell in the active notebook sequentially
Clear All Clear all cell outputs
Restart Kernel Restart the execution engine (confirmation required)
Stop Interrupt the currently running cell

Help Menu

Action Description
Tutorials Open the SMILE quickstart guide in the default browser
JavaDocs Open the SMILE Java API documentation in the browser
About Display version and licensing information

5. The Notebook

5.1 Opening and Creating Notebooks

  • New (toolbar or File > New) — opens a fresh Untitled.java notebook pre-populated with the standard SMILE import block.
  • Open… (toolbar or File > Open…) — file chooser filtered to supported extensions.
  • Double-click a supported file in the Project Explorer — opens it directly in the notebook.

Previously opened notebooks are restored automatically at startup from .smile/studio.properties in the working directory.

5.2 Supported File Formats

Extension Language Notes
.java Java Multi-cell via //--- CELL --- separator
.jsh Java (JShell snippet) Same cell separator
.scala Scala Multi-cell via //--- CELL --- separator
.sc Scala (Ammonite script) Same as .scala
.py Python Multi-cell via #--- CELL --- separator
.ipynb Jupyter Notebook Cells read from / written back to the JSON format

Jupyter compatibility: When saving a .ipynb file, Studio writes back code cells, markdown cells, and raw cells. Cell outputs are not yet persisted to the .ipynb file.

5.3 Cells

Each cell is an independent editing unit consisting of:

  • Header toolbar with action buttons (see below)
  • Code editor – syntax-highlighted, resizable, with code folding
  • Output area – appears below the editor after execution; supports Markdown rendering and clickable hyperlinks

Cell Header Buttons

Button Action
Run Execute this cell; stay in the current cell
Run Below Execute this cell and all cells below sequentially
Collapse Toggle hiding the output area
Move Up Swap this cell with the one above
Move Down Swap this cell with the one below
🧹 Clear Erase this cell's output
Delete Remove this cell (if only one cell remains, clears content instead)
Type combobox Switch between Code / Markdown / Raw cell type
Prompt field Describe what you want and press Enter to generate code via AI

5.4 Cell Types

Type Behavior
Code Executed by the kernel; output displayed below
Markdown Rendered as styled HTML when cell is executed
Raw Plain text, not executed or rendered

5.5 Running Code

Shortcut Behavior
Ctrl + Enter Run cell, keep focus in current cell
Shift + Enter Run cell, move focus to next cell (or create a new one)
Alt + Enter Run cell, insert a new cell immediately below
Toolbar Run All Execute all cells top-to-bottom

Execution is asynchronous; the UI remains responsive while code runs. A second run request while code is executing shows a warning dialog rather than allowing concurrent execution.

Variable values are printed automatically after each successful snippet evaluation:

⇒ DataFrame df = [200 rows × 5 columns]

Errors are highlighted in the output area with pink highlighting.

5.6 AI Code Completion and Generation

Both features require an AI service to be configured in Settings.

TAB — Line Completion

Press Tab at any non-first line to trigger single-line AI completion. The AI uses the surrounding code context (previous cell + current cell) to suggest a completion. If a completion is in progress, Tab inserts a literal tab character instead.

Prompt Field — Code Generation

  1. Type a natural language description in the Prompt text field at the top of a cell (e.g., "load iris.csv into a DataFrame").
  2. Press Enter.
  3. The AI streams generated code directly into the editor, with the task description included as a comment.

The generation context includes the text of the previous cell and the existing content of the current cell.

5.7 Saving Notebooks

  • Ctrl + S equivalent → File > Save
  • File > Save As… prompts for a new path. If no extension is given, .java is appended.
  • The tab title reflects the filename. Unsaved changes are tracked internally; a save-before-close prompt appears when closing a tab.

5.8 Auto-Save

Enable File > Auto Save to automatically save all open notebooks that have unsaved changes every 60 seconds. Only notebooks that have been previously saved to a file (i.e., have an associated path) are auto-saved; new Untitled notebooks are not.

5.9 External File Changes

If a file that is open in the notebook is modified by an external process (e.g., git checkout, another editor), Studio detects the change via a background file-watcher and prompts:

"'filename' has been changed externally. Reload?"

Choosing Yes reloads the file from disk, preserving the tab's position. Choosing No keeps the current in-memory version.


6. Execution Kernels

6.1 Java Kernel (JShell)

The Java kernel uses the JDK's built-in JShell API running in a separate JVM process. This isolation means:

  • The remote VM inherits the full application classpath (java.class.path).
  • JVM flags set for the remote process: -XX:MaxMetaspaceSize=1024M, -Xss4M, -XX:MaxRAMPercentage=75, -XX:+UseZGC.
  • FlatLightLaf is automatically initialized in the remote JVM so that smile.plot.swing charts display correctly.

Snippet Output Format

Snippet type Output
Named variable ⇒ TypeName varName = value
Rejected snippet ✖ Rejected snippet: …
Recoverable issue ⚠ Recoverable issue: …
Exception ExceptionClassName: message followed by stack trace

New Java Notebook Starter Imports

When creating a new .java notebook, the first cell is pre-populated with:

import java.awt.Color;
import java.time.*;
import java.util.*;
import static java.lang.Math.*;
import smile.plot.swing.*;
import static smile.swing.SmileUtilities.*;
import org.apache.commons.csv.CSVFormat;
import smile.io.*;
import smile.data.*;
import smile.data.formula.*;
// … and many more SMILE packages

6.2 Scala Kernel

The Scala kernel uses the JSR-223 ScriptEngine API ("scala" engine name). Output is captured by redirecting System.out and System.err around each evaluation. The Scala engine initialization is deferred 5 seconds at startup to avoid capturing LSP/MCP process output.

Returned values are printed as:

$result0: fully.qualified.Type = value

6.3 Python Kernel (iPython)

The Python kernel launches an iPython REPL subprocess (ipython --simple-prompt --colors NoColor --no-banner --no-pdb). Multi-line code is submitted via iPython's %cpaste magic. The kernel reads output lines and displays them in the output area.

Prerequisite: iPython must be installed:

pip install ipython

If iPython is not found, Studio shows an informational dialog with the install command.

6.4 Restarting and Stopping a Kernel

Action How
Restart Cell > Restart Kernel or toolbar button. Requires confirmation. Clears all outputs.
Stop Cell > Stop or toolbar button. Sends an interrupt to the kernel.

6.5 Magic Commands (Java Kernel)

Lines starting with //! inside a Java cell are intercepted before being sent to JShell. The currently supported magic is:

//!mvn groupId:artifactId:version

This resolves the Maven dependency (transitively) via Eclipse Aether and adds the JARs to the JShell classpath at runtime, allowing you to use any Maven artifact without restarting the kernel.

Example:

//!mvn org.apache.commons:commons-math3:3.6.1

7. Project Explorer

The Project tab in the left panel shows the file tree rooted at the current working directory.

  • Navigate the tree by expanding folders.
  • Double-click a supported source file (.java, .jsh, .scala, .sc, .py, .ipynb) to open it in the notebook.
  • Double-click any other non-binary text file to open it in the Notepad editor.
  • Binary files are silently ignored on double-click.

8. Kernel Explorer

The Kernel tab in the left panel shows a live tree of runtime objects tracked by the active notebook's kernel. Switch between notebooks in the tab strip to refresh the explorer automatically.

The tree has four top-level categories:

Category Contents
DataFrames Variables whose type is DataFrame
Matrix Variables whose type contains [] (arrays and matrices)
Models Variables of ML model types (classifiers, regressors, etc.)
Services Persisted model entries registered as inference services

8.1 Inspecting Variables

Double-click any DataFrames or Matrix leaf node to open the variable in a SMILE viewer window:

// Equivalent action generated by Studio:
var dfWindow = smile.swing.SmileUtilities.show(df);
dfWindow.setTitle("df");

8.2 Saving Models

Double-click a Models leaf node to open a Save dialog. Studio serializes the selected model variable using smile.io.Write.object(model, path) and saves it to a .sml file. After saving, if the model is a ClassificationModel or RegressionModel, it is automatically registered under the Services node with its schema.

8.3 Starting an Inference Service

Double-click a Services leaf node to open the Start Service dialog, which configures and launches a REST inference server for the saved model.


9. AI Agent Panel

The right panel hosts three AI agents, each in its own tab. All agents require an AI service to be configured (see Section 11).

9.1 Clair the Analyst

📊 Clair the Analyst — end-to-end ML/AI assistant

Clair handles the complete data science workflow:

  • Automatic ML/AI solutions from natural language requirements
  • Data loading from CSV, ARFF, JSON, Avro, Parquet, Iceberg, SQL
  • Advanced interactive data visualization
  • Model training, evaluation, and ensembling
  • Inference server management

9.2 James the Java Guru

James the Java Guru — Java programming assistant

James helps with Java and SMILE-specific code:

  • Code completion and generation in the notebook (via Tab)
  • Reviewing and explaining Java code
  • SMILE API guidance

9.3 Guido the Pythonista

🐍 Guido the Pythonista — Python programming assistant

Guido assists with Python notebooks:

  • Code completion and generation
  • Python data science library guidance

9.4 Intent Types

Each intent (conversation turn) has a type selector in the footer:

Type Legend Description
Instructions > Natural language prompt sent to the AI agent
Command / Slash command (see below)
Shell ! Shell command executed in a subprocess
Raw Display-only entry (not editable)

Switch the intent type using the combo box, or use the shortcuts below.

9.5 Slash Commands

Type / followed by a command name and press Ctrl + Enter:

Command Description
/help List all available slash commands
/memory show Display the long-term memory file (SMILE.md)
/memory add <text> Append notes to SMILE.md
/memory edit Open SMILE.md in a Notepad window
/memory refresh Reload SMILE.md from disk into the agent context
/plan <goal> Enter plan mode with a stated goal
/plan off Exit plan mode
/compact [instructions] Summarize the conversation and compact the context window
/clear Clear the current conversation session
/edit <file> Open a file in the Notepad editor
/train Train a machine learning model (runs smile train)
/predict Run batch inference (runs smile predict)
/serve Start an inference service (runs smile serve)

Additional custom slash commands can be defined as agent skills in SMILE.md.

Hint window: As you type a slash command, a hint tooltip appears showing the expected arguments.

9.6 Shell Commands

Set the intent type to Shell (or prefix your input with !) and enter any shell command. On Windows, commands run through powershell.exe -Command; on Unix/macOS, through bash -c. The output is streamed in real time to the output area. A Stop button appears to forcibly terminate long-running processes.

9.7 Long-Term Memory (SMILE.md)

Agents can maintain long-term, project-specific context stored in SMILE.md within the current working directory. This file is automatically loaded into the agent's system prompt. Use /memory add or /memory edit to update it.

Initializing context:

/init

Clair's /init skill creates a SMILE.md file by analysing the project and recording its structure, key decisions, and preferences.

9.8 Reasoning Effort

Each intent input shows a Reasoning Effort combo box. The available levels depend on the configured LLM:

Level Effect
(default) Provider's default thinking behavior
low / medium / high Explicit thinking budget (supported by Anthropic, OpenAI o-series, etc.)

Increasing reasoning effort produces more careful responses at the cost of higher latency and token usage.

9.9 Auto-Compact

If a conversation session exceeds 180,000 tokens (configurable via the system property smile.agent.auto.compact), the agent automatically runs /compact to summarize the conversation and free context window space.


10. Notepad

The Notepad is a standalone text editor window opened for non-notebook files. It is accessible via:

  • Double-clicking a non-binary, non-source file in the Project Explorer
  • The /edit <file> agent command
  • The /memory edit command

Features

Feature Description
Syntax highlighting Detected from file extension (Java, Python, Markdown, SQL, Scala, JSON, YAML, Shell, etc.)
Code folding Enabled for all code languages
LSP auto-completion Triggers on . for Java and Python files
Spell checking English spell checker loaded from data/eng_dic.zip
Find / Replace Ctrl+F (dialog), Ctrl+Shift+F (toolbar), Ctrl+H (replace dialog), Ctrl+Shift+H (replace toolbar)
Go To Line Available in the Search menu
Error strip Right-side gutter with error/warning markers
Unsaved change tracking Prompts before close

11. Settings — AI Service Configuration

Open via File > Settings…. Choose an AI service provider from the drop-down:

Provider Notes
OpenAI GPT models; set API key, optional base URL override, model
Azure OpenAI Legacy Azure endpoint; requires API key, base URL, model
Anthropic Claude models; set API key, optional base URL, model
Google Gemini Gemini models via native API; set API key, model
Google Vertex AI Gemini via Vertex; set API key, base URL, model

All fields (API key, base URL, model) are stored in Java Preferences (OS keychain / registry). API keys set in Settings take precedence over environment variables.

Supported models are listed as suggestions in each provider's combo box; you can also type any model name manually since the fields are editable.

After clicking OK the new LLM instance is initialized immediately.

Security note: API keys are stored in the JVM Preferences store. On macOS this is the system Keychain; on Windows it is the Registry; on Linux it is ~/.java/.userPrefs.


12. Status Bar

The status bar at the bottom of the window displays:

  • Left – Status messages from current operations (kernel initialization, LSP startup, MCP connections, file saves, kernel restarts). Messages automatically reset to "Ready" after 60 seconds.
  • Right – Live system metrics refreshed every second: JVM heap usage and CPU load percentage.
Ty server initialized                            Heap: 1.2 GB  CPU: 8%

13. Font Size

The monospaced font used in all code editors, output areas, and agent intent panes can be resized globally:

Shortcut Action
Ctrl + = Increase font size
Ctrl + - Decrease font size

The Markdown rendering font size scales proportionally (by ±0.1 em per step).


14. MCP (Model Context Protocol) Integration

SMILE Studio automatically connects to MCP servers defined in any of the following configuration files at startup (in order):

  1. $SMILE_HOME/conf/mcp.json
  2. ~/.smile/mcp.json
  3. .smile/mcp.json (project-level, in current working directory)

All three files are loaded if they exist; tools from all connected servers become available to agents. Servers are gracefully shut down on application exit.

Example mcp.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/your/project"]
    },
    "web-search": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": { "BRAVE_API_KEY": "your_key_here" }
    }
  }
}

15. LSP (Language Server Protocol) Integration

SMILE Studio starts two language servers in the background:

Server Language Provides
Ty Python Type checking, diagnostics
JDT LS Java Completions, hover, diagnostics

Both servers are started automatically. The jdtls binary is expected at $SMILE_HOME/jdtls/bin/jdtls.

Auto-completion is powered by the LSP providers and activates:

  • Automatically after 300 ms of inactivity (configurable)
  • On . — immediately triggers member completion for Java and Python

The completion popup is provided by RSyntaxTextArea's AutoCompletion infrastructure wired to a custom LspCompletionProvider.


16. Themes / Look-and-Feel

SMILE Studio uses FlatLaf for its look-and-feel. The theme is stored in application preferences under the key Theme:

Value Description
Light FlatLaf Light (default on non-macOS)
Dark FlatLaf Dark
IntelliJ FlatLaf IntelliJ
Darcula FlatLaf Darcula
macLight FlatMac Light (default on macOS)
macDark FlatMac Dark

Change the theme by setting the Theme preference (e.g., programmatically or via a custom preference editor) and restarting the application.

JetBrains Mono is installed as the default monospaced font via FlatJetBrainsMonoFont.install().

macOS: Full window content mode and transparent title bar are enabled automatically for a native look.

Windows: Per-monitor DPI scaling is disabled (sun.java2d.uiScale=1.0) to prevent blurry icons.


17. Keyboard Shortcuts Reference

Notebook

Shortcut Action
Ctrl + Enter Run cell, stay
Shift + Enter Run cell, go to next / create new
Alt + Enter Run cell, insert cell below
Tab AI line completion (requires AI service)
Ctrl + = Increase font size
Ctrl + - Decrease font size

Notepad

Shortcut Action
Ctrl + F Find dialog
Ctrl + H Replace dialog
Ctrl + Shift + F Find toolbar (inline)
Ctrl + Shift + H Replace toolbar (inline)
Ctrl + G Go to line
Ctrl + S Save file
. Trigger LSP auto-completion

Agent Panel

Shortcut Action
Ctrl + Enter Execute current intent

18. Configuration Files

File / Location Purpose
.smile/studio.properties (cwd) List of previously opened file paths, restored at startup
.smile/SMILE.md or SMILE.md (cwd) Agent long-term memory / project context
$SMILE_HOME/conf/mcp.json Global MCP server definitions
~/.smile/mcp.json User-level MCP server definitions
.smile/mcp.json (cwd) Project-level MCP server definitions
Java Preferences node AI service keys, selected theme, auto-save flag, Markdown font size

19. Troubleshooting

"Cannot start SMILE Studio as JVM is running in headless mode"

The display environment is not set. On Linux, ensure DISPLAY is set or run through a desktop session. On CI servers, use a virtual display (Xvfb).

Python kernel fails to start

Ensure ipython is installed in the Python environment on PATH:

pip install ipython
python -c "import IPython; print(IPython.__version__)"

Scala kernel produces no output

The Scala script engine needs the smile.home system property and the classpath to include Scala libraries. Ensure you are launching Studio via the provided smile studio script which sets these properties.

JDT LS / Ty server doesn't start

Check that $SMILE_HOME/jdtls/bin/jdtls exists and is executable. Errors are logged to the application log and shown briefly in the status bar.

AI features not working (Tab completion, code generation, agents)

Open File > Settings… and verify your AI provider credentials. Check the status bar for initialization errors. Ensure network access to the provider's API endpoint is available.

Notebook not saving

If Save shows an error dialog, check file system permissions for the target path. Untitled.java notebooks must be saved via Save As… before auto-save takes effect.

Variables not appearing in Kernel Explorer

The Kernel Explorer refreshes when you switch notebook tabs. Switch away and back, or run a cell to trigger a refresh. Only named (non-scratch) variables appear; JShell scratch variables (e.g., $1, $2) are excluded.

Out-of-memory errors in JShell

The remote JVM is allocated up to 75% of the system RAM (-XX:MaxRAMPercentage=75). On memory-constrained machines, reduce this by restarting the kernel after modifying the heap settings via a //! magic in the first cell, or add JVM options in the launch script.


SMILE Studio is free software under the GNU General Public License v3. For commercial use enquiries contact smile.sales@outlook.com.