r/pixinsight • • Mar 14 '26

MCP Bridge for Pixinsight: using Claude Code to process frames at light speed

14 Upvotes

Hi,

For the geeks around, I have experimented with bridging Claude Code to Pix Insight. I have open sourced it on GitHub: https://github.com/aescaffre/pixinsight-mcp

It is fabulous. I am not a good astrophoto processor, and I have to say that I have had to revise many of my pics after using this tool.

Basically, it launches a watcher from pixinsight, with a javascript, and claude will deposit json files to send "orders" of processing. It does in 20 minutes what would takes hours manually.

The repository provides also some skills for claude to know what to do based on the type of target. Typical use is like: here are my L, R, G, B, HAlpha, stacked frames, please make a great shot of NGC XXX

It will do iterations. Usually now the second or 3rd is already quite nice.

Next step for me: I re-architect it in full agent mode, stay tuned!


r/pixinsight • • Sep 13 '25

New Script: LLM Assistant for PixInsight

14 Upvotes

Hello everyone,

I am pleased to announce the second version and public release of a new, free, open-source tool for the PixInsight community: LLM Assistant for PixInsight.

LLM Assistant integrates a local or remote Large Language Model (LLM) directly into your PixInsight workspace. Its goal is to act as your knowledgeable assistant, providing data-driven advice and helping you get the most out of your astrophotography processing sessions.

What does it do?

Instead of giving generic advice, LLM Assistant analyzes the profile of a selected image view and your PixInsight environment to provide context-aware guidance. It creates a detailed report on your image's:

  • Live Processing History: Understands the steps you've taken in the current session and any saved history.

  • Astrometric Solution: Knows what object you're imaging, its RA/Dec, scale, and resolution.

  • FITS Header Data: Reads the full header to understand your camera instrument, sensor pixel size, Bayer pattern, and other acquisition details.

  • Pixinsight version, OS and (if available) file path, image dimensions, etc.

You can then have an interactive chat conversation about your image.

How can you use it?

  • Get recommendations on your next processing step.

  • Ask for a detailed description of your astronomical target, which LLM Assistant will generate based on astrometric data (must have plate solved your image first!).

  • Request a summary of the processing steps applied to a finished image.

  • Ask general questions about PixInsight processes in the context of your current image.

  • Customize the System Prompt as desired

Technical Requirements:

LLM Assistant works as a "bring your own AI" tool with local LLMs, or works with remote LLM API endpoints. It requires an OpenAI-compatible API endpoint and, depending on the vendor, additional parameters such as API authentication key and model name.

The setup is straightforward, and the README provides detailed instructions.

Philosophy:

This project is open-source (MIT License) and community-driven. It's built to be a clean, independent, and powerful assistant. The goal is to combine the analytical power of modern AI with the incredible processing capabilities of PixInsight.

Where to get it:

GitHub repository, including the full source code, installation instructions, and a detailed README:

https://github.com/scottstirling/pi2llm

I am actively developing it. I would be incredibly grateful for your feedback, bug reports, and ideas for new features. Please try it out, and let's build the future of image processing together!

Happy imaging, Scott Stirling

09-12-2025 v2.0 released:

Features in Version 2.0 of LLM Assistant for PixInsight:

Visual Analysis:

  • If you have access to a vision-enabled LLM, LLM Assistant for PixInsight can now send a JPG snapshot of a selected nonlinear image along with its history and metadata for more thorough analysis.

  • User-configurable, opt-in feature, enabled globally in Settings and optionally per image request on the main chat UI.

  • The selected view dimensions are checked before sending. Visual LLMs currently (Sept. 2025) support maximum image dimensions no greater than 2048 pixels on a side.

  • If the selected view exceeds the configuration option for maximum image dimensions (see the Settings), a copy is dynamically created and resized to fit the maximum supported.

  • The view is copied to a JPG file in the system temp directory, Base64-encoded and included in a JSON POST to the LLM.

  • The temporary JPG is deleted after sending.

Save/Load Configuration Profiles:

  • Save and load configuration settings to a .pi2llm.json file.

  • This makes it easy to switch between different LLM providers, version or share configurations.

  • NOTE: API tokens are saved in clear text in the JSON file.

Improved Chat Experience:

  • The chat prompt input is now a proper multi-line text box.

  • Initial configuration and default settings reset workflow has been redone to remove obstacles.

  • A bug with stale state change between configuration settings and chat UI has been fixed.

  • Validation of format for URLs input to the configuration.

System Prompt Updated:

  • The metadata and history of an image may be incomplete and image view names may be more ad hoc than informative, so the prompt is more aware of discrepancies in data and is told to prioritize the visual of the image itself when in doubt.

Error handling and documentation updated.

https://github.com/scottstirling/pi2llm/releases


r/pixinsight • • Mar 24 '26

Tutorial PixInsight GPU Acceleration on Linux with AMD ROCm — Community Guide

12 Upvotes

Building on Papillon's original guide on the PixInsight forum, I've put together a consolidated and maintained version on GitLab:

https://gitlab.com/K-22/pixinsight_rocm_linux_instructions


What it covers

The guide walks through building TensorFlow 2.19.1 with ROCm 7.2 support inside a Docker container and configuring PixInsight to use it. The Docker approach keeps the build clean and reproducible — no build dependencies on your host. Also includes performance tuning and troubleshooting.

Tested with

  • AMD Radeon RX 9070 XT (RDNA4 / gfx1201)

  • Ubuntu 24.04 and CachyOS (Arch-based)

  • ROCm 7.2, TensorFlow 2.19.1

Should work with older AMD generations (RDNA3, RDNA2, etc.) by adjusting the target architecture flag — the guide explains how.

Contributions welcome

AMD GPU support on Linux is a moving target. If you've tested a different GPU, found a distro-specific fix, or have a better configuration — open an issue or MR on the repo. Even just confirming it worked on your setup helps.


Full credit to Papillon for the original guide. This repo is just an effort to make it easier to find, maintain, and extend.

Clear skies.


r/pixinsight • • Oct 04 '23

NGC7000 (SHO)

Post image
11 Upvotes

r/pixinsight • • Dec 30 '20

How do I get more blues in my stars? Does the color mask script help with this?

Post image
11 Upvotes

r/pixinsight • • Oct 18 '24

Help Generalized Hyperbolic Stretch & Chromatic Noise - Help

Post image
10 Upvotes

Just starting to mess around with GHS and with my data it’s really pulling up chromatic noise in the background. Now obviously this noise is primarily an acquisition issue (using a Nikon d780 with a redcat51 on an AVX) and I didn’t collect as much data as I wanted to or should have but….

How do you manage the chromatic noise when using GHS? Reference image (M31) attached. 60x120s, guided, dithered every 4th. Standard WBPP calibrated with bias, darks, and flats. 2x drizzle.

Can provide xisf via Dropbox if requested.


r/pixinsight • • Aug 03 '21

Help What tool can I use in PI to remove the stuff under the broom that shouldn't be there?

Post image
10 Upvotes

r/pixinsight • • Mar 25 '20

Tutorial My 2020 PixInsight Workflow For Deep Sky Astrophotography - Rosette Nebula Shot With A OSC Camera. Let me know how I can better my workflow!

Thumbnail
youtu.be
10 Upvotes

r/pixinsight • • Sep 05 '16

Tutorial Processing Example - M31 Andromeda Mosaic

10 Upvotes

Here is my workflow to process my 4-panel Andromeda Mosaic here. My processing on this was quick and dirty, nothing special. It was requested that I provide my process though, and I'm more than happy to oblige.

First, preprocessing. I did all of my preprocessing and integration manually. I have used the batch preprocessing script in the past, but I generally do everything manually. Here is my preprocessing workflow:

  • Calibrate my flat images to my master dark and master superbias. I have a 600 and 900-second master dark that I rely on to cover any exposure up to 900 seconds with Pixinsights optimization option.

  • Stack the flats into master flats

  • Calibrate my lights using the superbias, master dark (optimized), and the master flats

  • Cosmetic correct the lights using the Master Dark option. I open a sample image and make a preview window of an area with some hot pixels. Using the real-time preview option I tweak the level/sigma to get rid of the hot pixels without overdoing it. I also get rid of some of the cold pixel outliers.

  • Use the SubframeSelector script to measure FWHM on my subs and pick the lowest one. This gets "masteralign" added to the filename and will be used as my star alignment master. Dismiss subframe selector.

  • Use StarAlignment to register all luminance images in the stack to the masteralign sub.

  • Once again, use SubframeSelector to measure all registered images. I then use David Ault's spreadsheet here to grade the images based on FWHM/Eccentricity/SNRWeight. I export the subframes with a FITS keyword that I can use for weighting in the integration.

  • Integrate all images, using the FITS keyword as the weight.

Now on my mosaic I had to take my four panels and align them. I won't go into that here, but I used the tutorial at Light Vortex Astronomy. Kayron makes some great tutorials and most of what I use I learned on his site.

Now I have the raw stacked Luminance. Here is my processing steps for the luminance image:

  • First I crop the image using Dynamic Crop.

  • A background extraction is done using Dynamic Background Extraction. Once again, LightVortex has a great tutorial for DBE. It made a small difference in this case, not much background gradient. I did make sure to save the background sample layout for later use on the RGB image.

  • I performed a star shrink with a star mask and Morphological Transformation at this point. Just my taste on this image.

  • Now for the first noise reduction pass. I make a copy of the luminance image and give it a strong stretch, making the background very dark. This will be my luminance mask for the noise reduction.

  • With the mask applied and inverted (to protect the high signal areas), I make several preview boxes. I make sure to grab high and low signal areas. These will be my test areas for the noise reduction. Something like this. Now I open up MultiscaleMedianTransform. This tool is magical. With 6-7 layers of noise reduction and the adaptive parameter, it provides excellent noise reduction. Here are some rough settings, and a before and after (before is on the right) of an interesting background galaxy. Make sure you work with small previews and when you apply to the whole image plan to step away for a bit. With high layer counts, this tool takes a lot of CPU time to complete.

  • After the first noise reduction pass I like to do my histogram stretch. I just use the standard HistogramTransformation tool and make sure I don't over clip the blacks. You can always play with the stretch more later, so it doesn't have to be perfect at this point.

  • I wanted to add more contrast to the dust lanes, so I used HDRMultiscaleTransform. Applied without a mask, it overly dims the core (I like bright areas to stay bright). I created a mask using Range Selection that captured the dust lanes without including the core. This allowed me to use a mild HDRMT (10 layers) to the galaxy and increase the dust lane contrast without affecting much else (before and after).

  • To complete the luminance, I added some sharpness using MultiscaleLinearTransform. I increased the layers to 6 and added some bias to the first few layers. Small amounts are all you need (.1 or less). I tweaked the values to get what I wanted. Here is the before and after (before is on the right)

  • Here is my finished luminance

The RGB image was processed as follows:

  • Calibrate/Integrate to get my raw rgb

  • Star align to the raw luminance (copies the crop settings)

  • Background elimination with DBE. The RGB really needed this, here is the before and after.

  • I would like to say that I then did my Background Neutralization, Color Calibration, and SCNR at this point. But honestly I forgot all about them. I tried doing them after the fact, but wasn't happy with the results anyways. Oh well.

  • Noise reduction with MMT, lots of layers and adaptive with the same brightness mask from the luminance processing. I went a little more aggressive with the RGB image than with the luminance. Here is another before and after. (before is on the right).

  • Histogram transformation. Not as important on the RGB image, since it will only being providing color data, but I try and get it close to the luminance.

  • A second noise reduction pass using ACDNR. I did Lightness and Chromiance reduction both with and without protective masks. This noise reduction was pretty mild.

  • Color saturation boost. I processed the stars and galaxy seperately using masks to protect one while I was working with the other. My two tools here are ColorSaturation for the galaxy, and CurvesTransformation for the stars. ColorSaturation allows you to tweak saturation by hue, which lets you bring out the yellow in the core without blowing the blues and reds out. Here is my finished RGB image.

Then I put it all together:

  • LRGBCombination with another small saturation boost (.4) and chromiance noise reduction applied.

  • I removed some of the green and blue from some of the background stars with a mask and CurvesTransformation. They had a funny hue to them I didn't like (did I mention I forgot to do any color calibration).

  • I boosted the contrast a little with CurvesTransformation

Finished image full resolution.

FITS files of the raw Luminance and RGB images for any interested in playing with them yourself. Note that the Lum is 112MB and the RGB is 670MB.


r/pixinsight • • Nov 19 '22

Important incoming update in PixInsight

9 Upvotes

Dear alls, a revolutionary new tool is about to be released by the PixInsight development team, this tool will mark a new milestone in color calibration of astronomical images and will certainly become a benchmark in this area.

To work, however, this tool will need the functionality of the GAIA catalog with spectra.

The new tool will be released in a few days, but from today you can download the new versions of the GAIA DR3 / SP catalog from your download area on the PixInsight website.

https://pixinsight.com/dist/index.html

You will find two versions:
the "small set" of about 20 GB is suitable for wide or medium field images.
the complete set (64 GB in 20 files), containing over 200 million stars is also suitable for narrow field images.

The two databases are alternate and should not be mixed, so if you don't have any disk space problems, I recommend you download the complete set.

Now the GAIA DR2 catalog is obsolete, the reference catalogo for astrometry is GAIA DR3 (without SP)

Stay tuned!


r/pixinsight • • 8d ago

🔭 I taught my PixInsight workflow to an AI agent. It measures every stage, shows a preview and waits for my OK. It never touches a pixel itself.

8 Upvotes

I've been working on astroagent, a set of open-source agent skills that take a campaign from the raw subs to a finished image in PixInsight, with a coding agent (Claude Code, OpenCode…) doing the clicking and me making every decision. If PixInsight has always felt intimidating, that's part of the point: you make the artistic calls, the agent handles the mechanics.

🚫 What it is not: it is not generative AI and it does not "paint" anything. The language model never sees or edits pixels. Every operation is a PixInsight process or one of the usual plug-ins (BlurXTerminator, NoiseXTerminator, StarXTerminator), driven through pixinsight-connector by Min Xie. Every step is saved as process icons you can reload and run again by hand.

⚙️ How a session runs. You say "process Sh2-112" and it goes through 12 stages: sub review, calibration plan, WBPP, crop/BXT/plate solve, gradient, linear processing, star removal and stretch, palette and finishing, export, log. Each stage ends the same way:

  • 📏 Measured: the actual numbers (background MAD, FWHM, clipped pixels, astrometry error…)

  • 💡 Proposal: what it wants to run, with the parameters

  • 🧠 Why: the reasoning

  • 🖼️ Preview: a JPEG of the result

Then it stops and waits ✋. Nine measured quality gates can stop a stage on their own (e.g. a stretch candidate that clips more than 0.1 % of pixels gets rejected before I even see it).

🌌 Four real runs so far:

  • NGC 891, broadband one-shot colour, 11.5 h, my backyard in the French Alps (Askar 91F + ASI585MC Air)

  • Sh2-112, dual-band D1/D2 on the same OSC, HOO, 11.8 h

  • M16, SHO and HOO, 24.2 h of Telescope.live data (CDK24, Chile)

  • NGC 3521, LRGB, 15.6 h of Telescope.live data

🔍 Two things it caught that I liked: on M16 the default gradient model was eating 2–3 % of the Pillars' signal, so it measured that and switched to a plane fit on OIII and SII only. On NGC 3521 the local Gaia catalogue had too few stars with spectra for SPCC (8 % of the expected sources), so it said so and calibrated colour on the galaxy instead.

🗄️ Where the data comes from: Nebulis, a self-hosted astrophotography library. Disclosure: Nebulis isn't my project, but I'm an active contributor. I wrote the PixInsight connector plugin, the sub-frame quality measurement, the calibration library and the stacking export that astroagent relies on. The agent reads the Frame Analysis grades, records keep/reject decisions, builds the calibration plan, downloads a WBPP-ready export and stores the final project archive back with the object.

⚠️ Honest limits:

  • You need PixInsight 1.9.5+ with the RC Astro plug-ins, a Nebulis server and a coding agent. Not a one-click install.

  • The defaults are tuned for my rig. They're starting points: tune them on your data.

  • It's not cheap in tokens: 63–286 M tokens per full session, about 99 % of that re-read from the prompt cache.

  • It's slower than doing it yourself if you already know exactly what you want. The value is elsewhere: the measurements and the log, and a much gentler way into PixInsight. Its learning curve is steep, and here you don't have to know which process to pick, in which order, or which settings to start from. The agent proposes, explains why, shows the result, and you can focus on the image itself: what you want the nebula to look like, not where the setting is hidden.

📝 Every run produces a PROCESSING.md with every call and parameter, a session report and the process icons, so you can check exactly what was done.

🌐 Site with the results: https://jjmartres.github.io/astroagent/ 💻 Code (MIT): https://github.com/jjmartres/astroagent

Happy to answer questions, and especially to hear where you think the processing choices are wrong 🙏


r/pixinsight • • Jun 12 '24

Been out of the game for two years…

8 Upvotes

Hey guys, so I haven’t done any astrophotography for two years and I imagine there has been a lot of changes to the editing software in this time.

Is anyone able to point me in the right direction for good workflows to get back into it? For nebula editing.

Many thanks.


r/pixinsight • • Jun 29 '23

If I buy Pixinsight only one license, can I use it on both MAC and Windows?

8 Upvotes

or should I buy two licenses for two computers?


r/pixinsight • • Jan 07 '21

My stacks are green when I use WBPP. Any suggestions?

Post image
8 Upvotes

r/pixinsight • • 6d ago

PIAdvisor v1.8.1: 5-minute walkthrough inside PixInsight (live measurements, Mac support, and updates since v1.0)

7 Upvotes

Here's a 5-minute overview of PIAdvisor. A lot has changed since my v1.0 post a while back, so I figured it was finally time to show how it actually works inside PixInsight:

https://www.youtube.com/watch?v=TgLCxBm9aEE

Original v1.0 post for context: https://www.reddit.com/r/pixinsight/comments/1rflvy5/piadvisor_native_workspaceaware_llm_processing/

We're up to v1.8.1 now. Biggest changes since v1.0:

  • The advisor can now measure your open images on the fly while answering (star FWHM/eccentricity/tilt using SubframeSelector's method, background noise and gradients, CIE lightness, stretch and curve previews through your mask, FITS keywords, plus your installed process parameters and docs). Everything it measures shows up under "Show measured values" so you can verify what it saw.

  • Added Apple silicon Mac support (PI 1.9.5+) alongside Windows and Linux (PI 1.8.9+), all through the same PixInsight update repository.

  • Updated for PixInsight 1.9.6 build 1718 (MultiscaleTGVDenoise, ImageAnalysis, wide-field/all-sky solving, etc.), and on build 1718+ all network requests go through PixInsight's own network functions.

  • Attach View renders straight from image pixels + STF, you can paste screenshots into chat with Ctrl+V / Cmd+V on all three platforms, and clicking an attachment opens a zoom/pan viewer. Images go inline with requests and aren't stored on the provider.

  • Still completely read-only (never touches your pixels, process/script links only open when clicked) and works with your own OpenAI, Gemini, OpenRouter, or local Ollama/LM Studio setup.

The base version is free with no license needed (single-image context, measurements, attachments, all providers). Pro adds Workspace Mode across all open images, multi-image measurements, and higher limits, with a 30-day free trial.

Site and full changelog: https://piadvisor.net https://piadvisor.net/changelog/

Happy to answer any questions or hear what you'd like to see next.


r/pixinsight • • Jan 04 '26

Problem Pix 1.9.3

7 Upvotes

ey, i've recently update my Pixinsight sowftware for the 1.9.3 to have the famous MAS (MutiscaleAdaptativeStreach), but I can't find it. It's seems to be in my repositories but not in my process. When I try to find it in my modules (by search in in the database of windows), only the icon in .SVG seems to be there. I can't find any script or process.... What can I do ? Thanks in advance

update : find it, had to go to workspace, right click, install module, search, then "ok"


r/pixinsight • • Sep 05 '23

EZ Processing Suite ceased development and support

7 Upvotes

Dear Pixinsight friends,

according to EZ repo

https://darkarchon.internet-box.ch:8443/

the whole suite ceased development and support and actually results unavailable in Pixinsight script resources; any solution about?

Thanks in advance and clear skies


r/pixinsight • • Apr 04 '22

Help After 2.5 hours of processing this 6.5hr exposure i see that it has useful data, but how do I bring it out gently? This is what it looks like with the nuclear icon clicked

Post image
7 Upvotes

r/pixinsight • • Aug 09 '16

Tutorial Craving that silky smooth background? Have you heard the good word about MMT?

Thumbnail
photonshotnoise.blogspot.com
7 Upvotes

r/pixinsight • • Dec 31 '25

Help Installing Pixinsight on another personal computer?

6 Upvotes

I bought a licence a couple of years ago and all is going well. Now, I would like to install a 2nd copy of Pixinsight on another computer I own. I downloaded the comercial version of PI and tried entering my activation codes from before, but the computer said "NO". I was under the impression that I can install on as many of my own PCs with the one licence, but I could be wrong, as I have been countless times before. Does anyone know if my initial licence is good to add another PC? Cheers


r/pixinsight • • Jun 28 '20

How do colour FITS files really work?

6 Upvotes

Hi all.

I'm quite confused about the way FITS files is read by PixInsight vs other softwares. I use Kstars/Ekos for data acquisition with a full spectrum Canon EOS 5dII. On the software I can chose to record my images in native (DSLR raw, in my case .cr2) or FITS format.

When I chose FITS, the Kstars FITS viewer shows a colour image. But when I load that same FITS file to PixInsight, I see a black and white animation circling through what I guess are the R, G and B chanels. Same if I load it with DS9. Some FITS files (from other sources), however, directly show colours on PI.

Does that mean that some FITS files have Bayer information in the header and some don't? And is that simply what the DeBayer tool does? Writing Bayer info to the header?

Thanks for the help.


r/pixinsight • • Dec 01 '19

SHO -M42 from Singapore

Post image
6 Upvotes

r/pixinsight • • Feb 11 '18

Tip SubframeSelector Process (not Script)

6 Upvotes

There is a new SubframeSelector process available. This is different from the script. See this thread on the PI forum: https://pixinsight.com/forum/index.php?topic=11780.0

It can be downloaded from https://github.com/cameronleger/PCL/releases/tag/01.03.01.0003

To install, copy the .dll to the /bin sub folder of your PI installation directory. Then use Process/Modules/Install Modules. Click Search. Then click Install.

Clear skies, Ron


r/pixinsight • • Oct 14 '16

Tip Simple and fast method to create a starless nebula only mask.

Post image
6 Upvotes

r/pixinsight • • Aug 02 '16

Meta Welcome to the reborn /r/PixInsight!

6 Upvotes

Hi, and thanks for dropping by.

As you can see, there's not much here yet. Though /r/PixInsight has been around for several years, it was never put into service by its original creator, instead sitting idle and collecting only spam submissions. But that has changed! The admins of Reddit have granted ownership of the subreddit to yours truly!

The goal of the subreddit is very simple : To serve the user community of Pleiades Astrophoto's PixInsight image processing software.

Are there other places on Reddit where one can find quality information about PixInsight? Absolutely. Are any of them focused specifically on helping you improve your PixInsight skills? Absolutely not.

In the coming weeks, I hope to add some knowledgeable PI users to our mod team, begin building a wiki of useful content, and perhaps spruce the place up a bit with some tasteful CSS.

In the meantime, feel free to jump right in! Got a tip to share? Post it up! Got a question about PI? Ask away! Particular set of data vexing you? Share it!

Looking forward to seeing this grow into a valuable resource for the PI community.