Package org.machanism.machai.gw.processor
package org.machanism.machai.gw.processor
Ghostwriter CLI processing pipeline.
This package contains the Ghostwriter command-line entry point
(Ghostwriter) and the processor implementations that scan a project
directory, select matching files, extract prompts (either from embedded @guidance: directives or from act
templates), and execute those prompts against a configured
Genai provider.
Core types
-
AbstractFileProcessor- filesystem traversal, module handling, include matching (glob/regex), and exclude filtering. -
AIFileProcessor- prompt composition (project metadata + prompt body), GenAI provider setup (including working directory), function-tool loading, and optional request-input logging. -
GuidanceProcessor- guidance mode: uses registeredReviewerimplementations to extract embedded@guidance:directives per file and runs the derived prompt. -
ActProcessor- act mode: loads TOML act templates (built-in and/or custom), composes an act prompt, and executes it across matching files.
Processing is filesystem-based only: projects are not built and dependencies are not resolved.
-
ClassesClassDescriptionBase implementation for processors that traverse a project directory and perform work on files and folders.Processor that runs Ghostwriter in "Act" mode.Scans a project tree, extracts per-file
@guidancedirectives throughReviewers, and dispatches the resulting prompts to a configuredGenai.