Files
NeuroSploit/neurosploit-rs
Joas A SantosandClaude Opus 5 6cf9ffd5ed feat(chat): ask about the engagement, with its own records as context
The REPL is a slash-command console and `run` is a whole engagement. Neither
answers "what did we find on this target, and what should I look at next" —
the question an operator asks most and currently answers by reading JSON out
of runs/.

Add `neurosploit chat`: a JSON request on stdin, JSON lines on stdout, so
neither side parses prose. It goes through ModelPool, so it inherits the
keystore, the custom provider profiles and the cost ledger rather than
speaking HTTP on its own.

References resolve from disk before the model sees anything. @run pulls a
run's findings, @finding searches titles and endpoints across every run,
@target lists the runs against one. The resolver emits what it resolved AND
what it could not, because a reference that silently vanishes reads as the
model simply not knowing — and a model with no records will answer from the
shape of the question instead of the engagement.

Verified against a real run: with the reference resolved it quotes the
findings' exact titles and the token in their evidence; with the reference
missing it says it has no records rather than describing what such a finding
usually looks like.

The system prompt drops the definitions and the authorization warnings. The
operator is running the engagement and scope is enforced elsewhere.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 14:41:09 -03:00
..