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

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

# 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 --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

๐Ÿ”ฌ 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

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.3.0.tar.gz (154.2 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.3.0-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file nexus_cli-0.3.0.tar.gz.

File metadata

  • Download URL: nexus_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 154.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 dd1fb4b80d4f0f2b9a7e9c514b682b45bd3913bf42a05d5931cba78e1136e8be
MD5 39eabc14001f436a7a9519d3f8b986c8
BLAKE2b-256 311e4fabb8b07b3a78709efe84e799057ac4816466b7e8c32263c91b73e4b63d

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_cli-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: nexus_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 46.9 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43dfc723338c8843a4b47f5796f09e162306fcc145c622d61ae6d3f69068d505
MD5 119cc12aca9ddc45ba1e9f7a4abdda22
BLAKE2b-256 3fdfe3fa9ce533e04e467b56e92be17fc7ab55f39c7fdb05ab22a0a82783415b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_cli-0.3.0-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