Skip to main content

Knowledge workflow CLI for research, teaching, and writing - Claude's body for academic work

Project description

Nexus CLI

CI Documentation Python 3.11+ Version License: MIT codecov Tests Coverage Code Quality

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexus_cli-0.5.1.tar.gz (243.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexus_cli-0.5.1-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

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

Hashes for nexus_cli-0.5.1.tar.gz
Algorithm Hash digest
SHA256 eb4deb5b88d007fa9d5579240202915ef87a2f91d08c0bc7c0b3aa085d33437e
MD5 16a714aa6252f85e05ae62a58f388077
BLAKE2b-256 a9a578a41997c6cf506a3391f20b7c70095c4b0e87210a90db535c34566b45a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_cli-0.5.1.tar.gz:

Publisher: publish.yml on Data-Wise/nexus-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for nexus_cli-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c62c9f6c71ac0bba9559a1dca38ab8b1789a9d002dedbae11aa39ad82b3a9c9
MD5 9ecf23b3561b52097a5f00aceb1bd3c5
BLAKE2b-256 ab8d46c74771989dd24d4a8c4b64f99030815eb718051ac30512cb683f040804

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page