Architecture¶
Neksus JobSpec is structured as a reusable local-first core with thin interfaces.
Runtime layers¶
- CLI layer (
neksus-jobspec) - argument parsing
- human/json output formatting
-
thin delegation to app use cases
-
Core app/use-case layer (
neksus_jobspec.app) - orchestrates validate/render/export/feed/project flows
-
shared by CLI and MCP
-
Domain layer (
neksus_jobspec.jobspec) -
parser, Pydantic models, validation, rendering, exports, lint
-
Project layer (
neksus_jobspec.project) -
project discovery, config, checks, initialization
-
MCP adapter layer (
neksus_jobspec_mcp) - local stdio tools mapped to the same core use cases
Pipeline¶
Principle¶
Keep CLI and MCP thin; place behavior and orchestration in core services.