Knowledge workflow CLI for research, teaching, and writing - Claude's body for academic work
Project description
Nexus CLI
Knowledge workflow CLI for research, teaching, and writing. Claude is the brain, Nexus is the body.
๐ Documentation | ๐ Quick Start | ๐ Changelog
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โโโโ โโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโ โ
โ โโโโโ โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโ โ
โ โโโโโโ โโโโโโโโโ โโโโโโ โโโ โโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโ โโโโโโ โโโ โโโโโโโโโโโ โ
โ โโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โโโ โโโโโโโโโโโโโโโโ โโโ โโโโโโโ โโโโโโโโ โ
โ โ
โ Research โข Teaching โข Writing โข Knowledge โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Philosophy
Nexus does NOT do AI. It provides data and operations. Claude does the thinking.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ THE NEXUS ARCHITECTURE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโ โ
โ โ CLAUDE โ (Brain) โ
โ โ โข Thinking โ โ
โ โ โข Planning โ โ
โ โ โข Writing โ โ
โ โโโโโโโโฌโโโโโโโ โ
โ โ โ
โ โ uses โ
โ โผ โ
โ โโโโโโโโโโโโโโโ โ
โ โ NEXUS โ (Body) โ
โ โ โข Searching โ โ
โ โ โข Reading โ โ
โ โ โข Writing โ โ
โ โ โข Organizingโ โ
โ โโโโโโโโฌโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ ZOTERO โ โ PDFs โ โ VAULT โ โ
โ โ 2,728 โ โ 1,800 โ โ Obsidian โ โ
โ โ papers โ โ files โ โ notes โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Installation
# From source (recommended)
git clone https://github.com/Data-Wise/nexus-cli
cd nexus-cli
pip install -e .
# Or with uv
uv sync
Quick Start
New to Nexus? Start with Interactive Tutorials! ๐
# List available tutorials
nexus learn
# Start the Getting Started tutorial (7 steps, ~10 min)
nexus learn getting-started
# Intermediate workflows (11 steps, ~20 min)
nexus learn medium
# Advanced techniques (12 steps, ~30 min)
nexus learn advanced
See TUTORIAL_GUIDE.md for detailed tutorial documentation.
Quick Commands
# Check your setup
nexus doctor
# Configure paths
nexus config
# Search your Zotero library
nexus research zotero search "mediation analysis"
# Search your vault
nexus knowledge vault search "sensitivity"
# Unified search across everything
nexus knowledge search "propensity score"
Command Reference
Global Commands
| Command | Description |
|---|---|
nexus doctor |
Check Nexus health and integrations |
nexus config |
View or edit configuration |
nexus learn |
Interactive learning tutorials (getting-started, medium, advanced) |
nexus --version |
Show version |
๐ง Knowledge Domain
Obsidian vault and unified search operations.
Unified Search
nexus knowledge search "query" # Search across all sources
Vault Operations
nexus knowledge vault search "term" # Search vault notes
nexus knowledge vault read "path/note.md" # Read a note
nexus knowledge vault write "path" content # Write to a note
nexus knowledge vault daily # Open/create daily note
nexus knowledge vault backlinks "note.md" # Find notes linking here
nexus knowledge vault recent # Show recently modified
nexus knowledge vault orphans # Find unlinked notes
nexus knowledge vault template "name" # Create from template
Graph Export โญ NEW in v0.5.0
# Export vault graph to multiple formats
nexus knowledge vault export graphml graph.graphml # GraphML (Gephi, Cytoscape)
nexus knowledge vault export d3 graph.json # D3.js visualization
nexus knowledge vault export json graph.json # JSON format
# Include tags as nodes
nexus knowledge vault export graphml graph.graphml --tags
# Limit node count for large vaults
nexus knowledge vault export d3 graph.json --limit 100
๐ฌ Research Domain
Literature management, Zotero, and PDF operations.
Zotero Operations
nexus research zotero search "query" # Search Zotero library
nexus research zotero get KEY # Get item details
nexus research zotero cite KEY # Generate citation
nexus research zotero recent # Recently modified items
nexus research zotero tags # List all tags
nexus research zotero collections # List all collections
nexus research zotero by-tag "tag" # Items with specific tag
PDF Operations
nexus research pdf extract FILE # Extract text from PDF
nexus research pdf search "query" # Search across PDFs
nexus research pdf list # List all PDFs
nexus research pdf info FILE # Show PDF information
๐ Teaching Domain
Course management and Quarto operations.
Course Management
nexus teach course list # List all courses
nexus teach course show NAME # Show course details
nexus teach course lectures NAME # List course lectures
nexus teach course materials NAME # List all materials
nexus teach course syllabus NAME # Show syllabus
Quarto Operations
nexus teach quarto build # Build Quarto project
nexus teach quarto preview # Start preview server
nexus teach quarto info # Show Quarto info
nexus teach quarto clean # Clean build artifacts
nexus teach quarto formats # List output formats
โ๏ธ Writing Domain
Manuscript and bibliography management.
Manuscript Management
nexus write manuscript list # List all manuscripts
nexus write manuscript show NAME # Show manuscript details
nexus write manuscript active # Show active manuscripts
nexus write manuscript search "query" # Search manuscripts
nexus write manuscript stats # Show statistics
nexus write manuscript deadlines # Show deadlines/targets
Batch Operations โญ NEW in v0.5.0
# Update status for multiple manuscripts
nexus write manuscript batch-status paper1 paper2 --status review
# Update progress for multiple manuscripts
nexus write manuscript batch-progress paper1:75 paper2:90 paper3:50
# Archive old manuscripts
nexus write manuscript batch-archive old-paper1 old-paper2
# Export metadata to JSON or CSV
nexus write manuscript export manuscripts.json
nexus write manuscript export manuscripts.csv --format csv
Bibliography Operations
nexus write bib list MANUSCRIPT # List bibliography entries
nexus write bib search "query" # Search bibliography
nexus write bib check MANUSCRIPT # Check citations (missing/unused)
nexus write bib zotero "query" # Search Zotero for entries
๐ Integration Domain
External tool integrations.
nexus integrate aiterm # Manage aiterm integration
nexus integrate claude # Manage Claude plugin
JSON Output
All commands support --json for machine-readable output:
nexus write manuscript stats --json | jq '.total_manuscripts'
nexus research zotero search "mediation" --json | jq '.[0].title'
Claude Integration
Nexus is designed to work with Claude via:
1. Piping to Claude Code
nexus research zotero search "mediation" --json | \
claude -p "Summarize these papers"
2. Claude Calls Nexus (Primary Pattern)
In Claude Code, Claude uses Bash to call nexus commands directly.
3. Claude Code Plugin
Install the included plugin for enhanced Claude Code integration:
ln -sf /path/to/nexus-cli/plugin ~/.claude/plugins/nexus-cli
Configuration
Configuration file: ~/.config/nexus/config.yaml
vault:
path: ~/Library/Mobile Documents/iCloud~md~obsidian/Documents
templates: ~/path/to/templates
zotero:
database: ~/Zotero/zotero.sqlite
storage: ~/Zotero/storage
teaching:
courses_dir: ~/projects/teaching
writing:
manuscripts_dir: ~/projects/quarto/manuscripts
# View config
nexus config
# Edit config (opens in $EDITOR)
nexus config --edit
What's New in v0.4.0
๐ Major Release - Production-ready with enterprise-grade quality!
- โ 235 Tests with 53% coverage (+10% from v0.3.0)
- ๐ Enhanced CI/CD with matrix testing, security scanning, and coverage enforcement
- ๐ Full Documentation site with MkDocs + Material theme
- ๐งช Advanced Testing for PDF, Zotero, and Quarto modules
- ๐ Security scanning with Bandit
- ๐ Coverage Thresholds enforced at 40%+
See the full Changelog for details.
Development
Running Tests
# Run all tests
pytest
# With coverage report
pytest --cov=nexus --cov-report=html
# Specific test file
pytest tests/test_vault.py
# Skip integration tests
pytest -m "not integration"
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone the repository
git clone https://github.com/Data-Wise/nexus-cli
cd nexus-cli
# Install with development dependencies
pip install -e ".[dev,docs]"
# Run tests
pytest
# Build documentation locally
mkdocs serve
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexus_cli-0.5.1.tar.gz.
File metadata
- Download URL: nexus_cli-0.5.1.tar.gz
- Upload date:
- Size: 243.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb4deb5b88d007fa9d5579240202915ef87a2f91d08c0bc7c0b3aa085d33437e
|
|
| MD5 |
16a714aa6252f85e05ae62a58f388077
|
|
| BLAKE2b-256 |
a9a578a41997c6cf506a3391f20b7c70095c4b0e87210a90db535c34566b45a6
|
Provenance
The following attestation bundles were made for nexus_cli-0.5.1.tar.gz:
Publisher:
publish.yml on Data-Wise/nexus-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexus_cli-0.5.1.tar.gz -
Subject digest:
eb4deb5b88d007fa9d5579240202915ef87a2f91d08c0bc7c0b3aa085d33437e - Sigstore transparency entry: 782986882
- Sigstore integration time:
-
Permalink:
Data-Wise/nexus-cli@86d5b89af50b37aeffe56de13e625796fdc5275d -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/Data-Wise
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@86d5b89af50b37aeffe56de13e625796fdc5275d -
Trigger Event:
release
-
Statement type:
File details
Details for the file nexus_cli-0.5.1-py3-none-any.whl.
File metadata
- Download URL: nexus_cli-0.5.1-py3-none-any.whl
- Upload date:
- Size: 57.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c62c9f6c71ac0bba9559a1dca38ab8b1789a9d002dedbae11aa39ad82b3a9c9
|
|
| MD5 |
9ecf23b3561b52097a5f00aceb1bd3c5
|
|
| BLAKE2b-256 |
ab8d46c74771989dd24d4a8c4b64f99030815eb718051ac30512cb683f040804
|
Provenance
The following attestation bundles were made for nexus_cli-0.5.1-py3-none-any.whl:
Publisher:
publish.yml on Data-Wise/nexus-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexus_cli-0.5.1-py3-none-any.whl -
Subject digest:
4c62c9f6c71ac0bba9559a1dca38ab8b1789a9d002dedbae11aa39ad82b3a9c9 - Sigstore transparency entry: 782986887
- Sigstore integration time:
-
Permalink:
Data-Wise/nexus-cli@86d5b89af50b37aeffe56de13e625796fdc5275d -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/Data-Wise
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@86d5b89af50b37aeffe56de13e625796fdc5275d -
Trigger Event:
release
-
Statement type: