Cut wasted
AI context
before Nova
ever sees it.

99.7%
Token Reduction
7.5M→19,999
Input Tokens
Same fix
Cleaner Context
OVERVIEW

Everything you need
to control AI context.

Context Routing Engine

Scores repo files by relevance, blocks low-value context, summarizes bulky files, and builds a smaller Nova-ready context packet.

Token Flamegraph

See exactly which files consumed the most tokens. Visualize context waste.

Task-aware Selection

Pick only the files connected to the current bug, feature, or question.

Baseline vs Optimized

Compare a noisy Nova run against a moonshot-routed run side by side.

CONTEXT WASTE

The biggest sources
of wasted context.

Large repos dump irrelevant files into every prompt. moonshot identifies and removes these token sinks.

LOCKFILES
LOCKFILES

Lockfiles & generated files

package-lock.json, yarn.lock, and auto-generated files consume massive token budgets with almost no value for most coding tasks.

38%
of wasted tokens
12k+
avg lines
LOGS
LOGS

Logs & legacy docs

Massive context dumps from debug logs, old documentation, and changelog files that often distract the model from the real bug.

24%
of wasted tokens
Low
relevance
UNRELATED
UNRELATED

Unrelated modules

Auth, admin, analytics, or payment code accidentally included in a checkout task. Different features bleeding into your prompt.

31%
of wasted tokens
0%
task relevance
OVERSIZED
OVERSIZED

Oversized folder reads

Reading entire directories when only 2-3 files matter. Bulk context that drowns out the signal in noise.

7%
of wasted tokens
4x
over budget
HOW IT WORKS

From developer task
to optimized Nova call.

Define
01

Define

Enter a task like: "Fix the checkout bug where discounts are applied after tax."

Scan
02

Scan

moonshot scans the repo and scores files/snippets by relevance to your task.

Route
03

Route

Irrelevant files are blocked or summarized. Relevant context is assembled into a budgeted prompt.

Invoke
04

Invoke

Nova receives the optimized context and returns the fix, explanation, or patch.

DATASET

Built on the tools
that _matter_.

Amazon Nova API, SWE-Bench style dataset, repo scanner, token estimator, and prompt builder.

Agent orchestration architecture
CONTEXT

Route smarter context

Score and filter files before they reach Nova. TypeScript powered.

// context routing
routeContext({
task: 'Fix checkout bug',
repo,
budget: 20000
})
LIVE API

Full REST + WebSocket API. Stream agent outputs directly into your product.

ARCHITECTURE

Why moonshot
is _different_.

Nova already handles inference. moonshot decides what context deserves to reach Nova. We optimize before the model call.

Pre-inference optimization

Filter and route context before it reaches Nova

Token budget control

Set limits and moonshot builds within them

Decision transparency

See exactly why each file was included or blocked

Amazon Nova
AWS Bedrock
TypeScript
Open Source
Live Routing Log
12:34:21checkout.ts → allowed
12:34:18package-lock.json → blocked
12:34:15old-debug.log → summarized
12:34:12auth/login.ts → blocked
12:34:09nova.invoke → optimized
Demo Mechanics

Designed to make
token waste visible.

terminal
# Run moonshot with your task
$ moonshot run --task "Fix checkout discount bug"
Scanning repository...
Found 847 files
Analyzing relevance...
Token Analysis
File Scoring
Context Routing
Prompt Building
Baseline Compare
Nova Integration
Relevance Scoring
Budget Control
File Blocking
Smart Summarization
Token Analysis
File Scoring
Context Routing
Prompt Building
Baseline Compare
Nova Integration
Relevance Scoring
Budget Control
File Blocking
Smart Summarization
Token Analysis
File Scoring
Context Routing
Prompt Building
Baseline Compare
Nova Integration
Relevance Scoring
Budget Control
File Blocking
Smart Summarization
Lockfile Detection
Log Compression
Module Filtering
Task Parsing
Repo Scanning
Context Assembly
Token Counting
Diff Generation
Code Extraction
Decision Logging
Lockfile Detection
Log Compression
Module Filtering
Task Parsing
Repo Scanning
Context Assembly
Token Counting
Diff Generation
Code Extraction
Decision Logging
Lockfile Detection
Log Compression
Module Filtering
Task Parsing
Repo Scanning
Context Assembly
Token Counting
Diff Generation
Code Extraction
Decision Logging
RESULTS

One task. Two
context strategies.

Compare a baseline Nova run against a moonshot-routed run. Same task, cleaner context, smaller request.

3,847tokens saved this session
FILEACTIONTOKENSSTATUS
checkout.ts
#A1B2C3
Scoring relevance for checkout bug
allowed
allowed
cart.ts
#D4E5F6
Analyzing file dependencies
allowed
allowed
package-lock
#G7H8I9
Blocking lockfile — low relevance
blocked
blocked
pricing.ts
#J0K1L2
Calculating token budget
allowed
allowed
debug.log
#M3N4O5
Summarizing large log file
summarized
summarized
auth/login.ts
#P6Q7R8
Blocking unrelated module
blocked
blocked

See how much context
your AI workflow is wasting.

Built for the Nova track. Designed for large-repo developer workflows.