Busabase
Busabase is an open-source (MIT) database and workspace for AI agents — data, docs, skills, and apps in one place. Run it locally, self-host it inside your network, or use Busabase Cloud, and turn age
翻譯準備中
LabAgent — Your AI-powered lab assistant. 46 measurement templates, 9 disciplines, works with any GPIB instrument.
翻譯準備中
資料Python · HTMLGitHub @Anai-Guo自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
正在載入完整 README。 以下為已儲存的摘錄。
Type two things. Get a measurement. Describe your research direction and sample — LabAgent searches the literature, scans your instruments, picks the measurement, runs it safely, and explains the science (physics, electrochemistry, spectroscopy, whatever fits) with cited references.檢視完整 README ↗Type two things. Get a measurement. Describe your research direction and sample — LabAgent searches the literature, scans your instruments, picks the measurement, runs it safely, and explains the science (physics, electrochemistry, spectroscopy, whatever fits) with cited references.
Every block above is real: live SSE activity stream, AI-picked measurement type with reasoning, live-drawn measurement curve, extracted quantities, and AI interpretation that cites papers by [N]. The example above shows a cyclic voltammetry scan on a ferrocene probe (via the BioLogic adapter) — swap in a Keithley or a Keysight scope and you'll see an IV sweep or a waveform instead. Sixteen measurement types now run on real instruments (covering electrical, electrochemistry, optoelectronics, and thermoelectric domains — via pymeasure + 3 in-tree VisaDrivers + Zurich Instruments adapter + BioLogic adapter); other measurement types still fall back to a physics simulator, and every CSV/PNG is clearly marked with which backend produced it.
pip install git+https://github.com/Anai-Guo/LabAgent.git
labharness setup # one-time: pick AI provider, drop API key
labharness web # opens http://127.0.0.1:8080
Then visit /experiment, type a research direction and material, hit Start.
Prefer terminal?
labharness start # same flow, CLI-guided
Most research labs have powerful instruments and terrible automation software. Researchers burn weeks writing one-off LabVIEW scripts for every new measurement, without safety nets or institutional memory. When a student graduates, the code leaves with them.
LabAgent replaces that with a shared, AI-guided framework. Add a new measurement type by writing a 20–30-line YAML template. Swap AI providers with one config line. Every experiment gets a timestamped folder with raw data, analysis figures, AI-cited interpretation, and next-step suggestions — organized the same way for everyone on the team.
| Feature | Details |
|---|---|
| 46 Measurement Templates | Ready-to-use YAML templates across 9 scientific disciplines |
| AI at Every Step | 8 AI capabilities: classification, optimization, safety advisory, script generation, result interpretation, skill generation, agent chat, experiment memory |
| Adaptive Web GUI | Real-time dashboard and multi-panel monitor that dynamically generates forms from templates — no hardcoded pages |
| 4 AI Model Providers | Claude, GPT-4o, Ollama, DeepSeek via litellm — switch with one config line; vLLM or any OpenAI-compatible server works through the openai provider with a base_url |
| Safety-First Design | 3-tier boundary validation (block / require confirmation / allow) prevents dangerous configurations |
| Instrument Drivers | GPIB, USB, and serial instrument scanning with auto-retry and AI-powered classification of unknown devices |
| Experiment Memory | SQLite + FTS5 full-text search remembers your successful parameters and learns from history |
| MCP Server | Expose all tools to Claude Code, Cursor, or any MCP-compatible AI IDE |
Start the adaptive measurement interface with a single command:
labharness web --port 8080
/) — Browse all 46 templates grouped by discipline, configure sweep parameters, set safety limits, and generate validated measurement plans/monitor) — Multi-panel real-time data display with user-selectable X/Y axes and WebSocket streamingThe GUI dynamically generates measurement forms from YAML templates. Adding a new template file automatically makes it available in the web interface — no frontend code changes needed.
Key monitor features:
| Discipline | Count | Example Measurements |
|---|---|---|
| Electrical Characterization | 7 | IV curve, R-T, delta mode, high resistance, FET transfer/output, breakdown |
| Electrochemistry | 4 | Cyclic voltammetry, EIS, chronoamperometry, potentiometry |
| Semiconductor & Optoelectronics | 5 | Solar cell IV, DLTS, photocurrent spectroscopy, photoresponse, tunneling |
| Sensors, Materials & Environmental | 7 | Gas sensor, humidity, impedance biosensor, cell counting, pH calibration, strain gauge, fatigue |
| Dielectric & Ferroelectric | 4 | C-V, P-E loop, pyroelectric current, capacitance-frequency |
| Thermoelectric | 2 | Seebeck coefficient, thermal conductivity |
| Superconductivity | 2 | Tc transition, critical current density (Jc) |
| Magnetic Measurements (condensed-matter) | 8 | Hall effect, magnetoresistance, AHE, SOT loop shift, FMR, hysteresis, magnetostriction, Nernst |
| Quantum Design PPMS/MPMS | 6 | PPMS R-T, PPMS MR, PPMS Hall, PPMS heat capacity, MPMS M-H, MPMS M-T ZFC/FC |
Plus a universal custom sweep template for user-defined X-Y measurements (46 total).
Works out of the box with 68 models from 26 vendors across all the disciplines above:
| Category | Representative Vendors / Models |
|---|---|
| Source meters, DMMs, electrometers, nanovoltmeters | Keithley 2400, 2000, 2182A, 6221, 6517B |
| Oscilloscopes | Tektronix TDS/MSO, Keysight DSOX/MSOX, Rigol DS/MSO |
| Function generators | Keysight 33500B/33622A, Tektronix AFG, Rigol DG |
| DC power supplies | Keysight E36313A, Rigol DP832A |
| Lock-in amplifiers | SRS SR830/SR860/SR865A, Zurich MFLI/HF2LI |
| Spectrum analyzers & VNAs | Keysight N9320B/E5071C, R&S FSV/ZNA |
| LCR & impedance | Keysight E4980A |
| Optics / photonics | Thorlabs PM100D, LDC205C, MDT693B, Newport 1830-C |
| UV-Vis spectrometers | Ocean Insight USB2000/QEPro, Thorlabs CCS100 |
| Potentiostats (electrochemistry) | BioLogic SP-200/VSP/VMP3, Gamry Reference 600+/1010B, CH Instruments CHI760E, Metrohm Autolab PGSTAT, Palmsens4 |
| Microplate readers (biology) | BMG CLARIOstar, Molecular Devices SpectraMax |
| Balances, pH, ISE | Mettler XS/XP (MT-SICS), Ohaus Adventurer, Thermo Orion A221 |
| Gas / flow / pressure | Alicat MC-series MFCs, MKS PR4000 |
| Temperature control | Lakeshore 335/336/340/350, Oxford Mercury iTC |
| Gaussmeters | Lakeshore 425, 455 |
| DAQ | NI USB-6351/6001 |
| Quantum Design (condensed-matter specialty) | PPMS, MPMS3 via MultiPyVu |
Don't see your instrument? The AI calls the manual_lookup tool to fetch the manufacturer's programming manual, then classifies from the *IDN? response — so truly unknown devices are handled gracefully.
| Capability | How AI Helps |
|---|---|
| Instrument Classification | LLM identifies unknown instruments from *IDN? responses and maps them to measurement roles |
| Parameter Optimization | Suggests optimal sweep ranges based on your sample type and literature references |
| Safety Advisory | Explains why a limit exists and suggests safer alternatives when boundaries are hit |
| Script Generation | Creates custom analysis scripts with publication-ready plots (PNG 300 dpi + PDF) |
| Result Interpretation | Extracts physical quantities and explains them with context |
| Skill Generation | Creates new measurement protocol skills from existing examples |
| Agent Chat | Multi-turn conversation with tool calling for guided measurement workflows |
| Experiment Memory | Learns from your history to improve parameter suggestions for future measurements |
One config line switches between cloud and local models:
# Best quality (cloud)
model:
provider: "anthropic"
model: "claude-sonnet-4-20250514"
# Free & private (local)
model:
provider: "ollama"
model: "qwen3:32b"
base_url: "http://localhost:11434"
Supported providers: Claude | GPT-4o | Ollama | DeepSeek (via litellm). vLLM or any other OpenAI-compatible server: use provider: "openai" with a base_url — see configs/models.yaml.
| Command | Description |
|---|---|
labharness scan | Scan for connected instruments via GPIB/USB/serial |
labharness classify <type> | Classify instruments into measurement roles |
labharness propose <type> | Generate a measurement plan with safety validation |
labharness literature <type> | Search literature for measurement protocols |
labharness generate-skill <type> | Generate a new measurement protocol skill with AI |
labharness analyze <file> | Analyze measurement data with AI interpretation |
labharness chat | Interactive AI chat for guided measurement workflows |
labharness procedures | List PICA reference instrument procedures |
labharness web | Start the adaptive Web GUI (dashboard + monitor) |
labharness serve | Start MCP server for AI IDE integration |
Run as an MCP server for integration with Claude Code, Cursor, or any MCP client:
labharness serve
| Tool | Description |
|---|---|
scan_instruments | Discover all connected lab instruments |
classify_lab_instruments | Map instruments to measurement roles |
propose_measurement | Generate a validated measurement plan |
validate_plan | Check a plan against safety boundaries |
search_literature | Find published measurement protocols |
analyze_data | Run analysis with AI interpretation |
generate_skill | Create new measurement protocol skills |
manual_lookup | Fetch the manufacturer's programming manual and known Python drivers for an unfamiliar instrument |
healthcheck | Verify system status and available templates |
| LabAgent | LabVIEW | PyMeasure | PICA | Custom Scripts | |
|---|---|---|---|---|---|
| AI-guided | Yes (4 providers) | No | No | No | No |
| Setup time | Minutes | Weeks | Hours | Hours | Days |
| Safety checks | 3-tier auto | Manual | None | Manual | Manual |
| Templates | 46 across 9 disciplines | Rebuild each | Code each | ~10 | Code each |
| Literature search | Built-in | No | No | No | No |
| Web GUI | Adaptive dashboard | Desktop only | No | No | No |
| MCP integration | Native | No | No | No | No |
| Cost | Free & open source | $$$$ license | Free | Free | Free |
| Learning curve | Natural language | Steep | Moderate | Moderate | Steep |
We are building the future of AI-powered laboratory automation. Whether you work in physics, chemistry, biology, or materials science, your measurement templates and instrument drivers make this project better for everyone.
See CONTRIBUTING.md for development setup and CATALOG.md for the full template catalog with 46 templates and 33 instrument reference procedures.
MIT