Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
05dfafc
feat(chat-v3): Add historical USD price integration for wallet tracing
0xrinegade Dec 12, 2025
819c311
feat: Add meta-agent decision engine and degen agent improvements
0xrinegade Dec 12, 2025
5ec9ca3
docs: Add comprehensive trading agent and backtesting documentation
0xrinegade Dec 12, 2025
cf91450
feat(meta-agent): Implement AI-driven meta-agent swarm controller
0xrinegade Dec 12, 2025
4382562
chore: Add meta-agent dependencies and integrate with main binary
0xrinegade Dec 12, 2025
bfe650e
feat(sniper): Implement true first-second launch sniping strategy
0xrinegade Dec 12, 2025
33e8903
fix(sniper): Remove filters blocking T=0 token launches
0xrinegade Dec 12, 2025
8f6e456
feat(tui): Add separate Paper/Live stats tabs
0xrinegade Dec 12, 2025
9eba559
feat(degen-tui): Add runner detail dialog with trades table
0xrinegade Dec 12, 2025
2871497
feat(degen-tui): Add AI chat integration to runner detail dialog
0xrinegade Dec 13, 2025
9ecec6e
feat(degen-tui): Add tool calling system for AI-driven parameter opti…
0xrinegade Dec 13, 2025
d412d89
feat(degen-tui): Complete runner detail dialog with real data and per…
0xrinegade Dec 13, 2025
c2dbd7a
fix(tui): Add solid backgrounds to runner detail and confirmation dia…
0xrinegade Dec 13, 2025
1c444cd
test: Add comprehensive test suite for degen TUI
0xrinegade Dec 13, 2025
1fd4742
fix(degen-tui): Replace blocking AI calls with async spawning
0xrinegade Dec 14, 2025
c15c06b
test(degen-tui): Add behavioral integration tests for async chat
0xrinegade Dec 14, 2025
50b3d7a
test(degen-tui): Add comprehensive validation test suites
0xrinegade Dec 14, 2025
710ee7a
docs(degen-tui): Add comprehensive testing and self-critique docs
0xrinegade Dec 14, 2025
fd541da
feat(onboarding): Add interactive first-time setup flow
0xrinegade Dec 14, 2025
32b2fd6
feat(tui): Disable mouse capture to allow text selection
0xrinegade Dec 14, 2025
fe5c4fe
fix: Correct API types and UTF-8 boundary handling
0xrinegade Dec 14, 2025
599f823
docs(model-router): Add intelligent model router design documentation
0xrinegade Dec 14, 2025
067b58b
refine(meta-agent): Add interval validation to prevent self-DoS
0xrinegade Dec 14, 2025
094e66f
feat: Add intelligent model router with automatic cost/quality optimi…
0xrinegade Dec 14, 2025
8af15e3
refine: Fix 4 critical bugs in intelligent model router
0xrinegade Dec 14, 2025
7df996b
feat: Enhance model display with pricing breakdown, name, and descrip…
0xrinegade Dec 14, 2025
6d39bb4
feat(router): Implement automatic model fallback on failure
0xrinegade Dec 14, 2025
14b2875
fix(router): Fix 6 critical bugs in fallback implementation
0xrinegade Dec 14, 2025
c89656d
refine(router): Fix 4 additional bugs from round 1
0xrinegade Dec 14, 2025
120e8e2
perf(router): GIGA optimization - Fix 3 performance/correctness issues
0xrinegade Dec 14, 2025
d333016
perf(router): Add SIMD-accelerated pattern matching - 1.00x BASELINE!…
0xrinegade Dec 14, 2025
3747d16
fix(router): TRUE SIMD with Aho-Corasick - Fix 5 fatal flaws! 🔥
0xrinegade Dec 14, 2025
b11ccd0
test(router): Add real benchmarks - PROOF of 85x speedup! 📊
0xrinegade Dec 14, 2025
710d08a
refactor(wallet): Replace buggy wallet graph with production-ready an…
0xrinegade Dec 14, 2025
2812325
fix(wallet): Resolve async lifetime issues in price fetcher
0xrinegade Dec 15, 2025
1af1339
research(simd): Add AVX2 assembly experiment - proves Aho-Corasick wins
0xrinegade Dec 15, 2025
3e18221
test(router): Add comprehensive tests and fix empty needle edge case
0xrinegade Dec 15, 2025
72bfa7a
feat(router): Add adaptive learning system for patterns and project k…
0xrinegade Dec 15, 2025
5ebc527
feat(router): Add Haiku 4.5, comprehensive tests, and degen improvements
0xrinegade Dec 15, 2025
e51b6e8
fix(router): Fix complexity scoring - now routes correctly by task
0xrinegade Dec 16, 2025
69c0dfe
feat(router): Add learned patterns module with persistence
0xrinegade Dec 16, 2025
cdfae14
test: Add comprehensive tests for TokenAnalytics and version tracking
0xrinegade Dec 16, 2025
9ffac18
fix(tui): Re-add version indicator column to runner list
0xrinegade Dec 16, 2025
cec836c
test: Add comprehensive tests for TokenAnalytics and complexity router
0xrinegade Dec 16, 2025
2932b5f
test: Add comprehensive tests for tier_router and specialist_index
0xrinegade Dec 16, 2025
7db0004
fix(degen): Fix runner restart behavior and version tracking
0xrinegade Dec 16, 2025
2ae86fb
feat(degen): Add session notes and trade logging for backtesting
0xrinegade Dec 16, 2025
67ba226
feat(degen): Add Notes tab to TUI with editor and trade log viewer
0xrinegade Dec 16, 2025
7fcd360
feat(code): Add file path extraction to Bash tool
0xrinegade Dec 16, 2025
e2ac40d
feat(code): Add security and reliability improvements
0xrinegade Dec 16, 2025
7ac92cc
refactor(degen): Fix critical bugs in Notes tab after self-review
0xrinegade Dec 16, 2025
9369324
feat(degen): ACTUALLY integrate trade logging into degen agent
0xrinegade Dec 16, 2025
58bf7c6
perf(degen): Add pagination and auto-save - prevent performance disas…
0xrinegade Dec 16, 2025
3b66eda
fix(degen): Stop swallowing errors + calculate real fees
0xrinegade Dec 16, 2025
ceb5f71
feat(degen): Auto-cleanup old session directories
0xrinegade Dec 16, 2025
cd221fe
fix(degen): Fix 6 critical Notes tab bugs after self-critique
0xrinegade Dec 16, 2025
e09e471
feat(router): Add kwaipilot/kat-coder-pro:free evaluator for routing …
0xrinegade Dec 16, 2025
93a3556
refactor(degen): Implement immutable ledger architecture with virtual…
0xrinegade Dec 16, 2025
1d8b30c
feat(degen): Add trailing stop/take-profit parameters to new runner d…
0xrinegade Dec 16, 2025
e730fba
fix(degen): Fix UTF-8 panic when displaying token names with special …
0xrinegade Dec 16, 2025
9637d77
feat(degen): Add PnL history chart and total volume to analytics tab
0xrinegade Dec 16, 2025
57d49b1
fix(router): Fix calculate_similarity test assertion
0xrinegade Dec 16, 2025
e775075
feat(auth): Add OpenRouter API key to auth config
0xrinegade Dec 16, 2025
04a8e2d
feat(degen): Add max position duration timeout for time-based exits
0xrinegade Dec 16, 2025
f2997a1
feat(degen): Add metadata update infrastructure for retroactive trade…
0xrinegade Dec 16, 2025
2cce096
feat(degen): Wire up metadata updates when real token data arrives
0xrinegade Dec 16, 2025
1694f2e
feat(evaluator): Add automatic task decomposition for cost optimization
0xrinegade Dec 16, 2025
7d2cf10
fix(degen): Fix cumulative PnL attribution bug causing fake win rates
0xrinegade Dec 16, 2025
90c6f71
feat(degen): Add market summary aggregator infrastructure
0xrinegade Dec 16, 2025
504e412
feat(code): Complete autonomous task decomposition integration + testing
0xrinegade Dec 16, 2025
0dda217
feat(degen): Add live position dashboard to TUI
0xrinegade Dec 16, 2025
b56f516
feat(degen): Add Kelly Criterion position sizing for optimal risk man…
0xrinegade Dec 16, 2025
2886878
feat(degen): Add comprehensive rug detection v2 with multi-factor sco…
0xrinegade Dec 16, 2025
eb7590d
feat(degen): Add circuit breakers v2 for catastrophic loss prevention
0xrinegade Dec 16, 2025
da11b53
feat(degen): Add profit attribution analytics to identify winning pat…
0xrinegade Dec 16, 2025
23319b4
feat(degen): Add runner groups/tags for organization and filtering
0xrinegade Dec 16, 2025
b3c78a8
feat(degen): Add hot reload infrastructure for strategy configs
0xrinegade Dec 17, 2025
2653db7
feat(degen): Add trade replay system with visualization
0xrinegade Dec 17, 2025
e4fe1fb
feat(degen): Add LLM exit timing infrastructure
0xrinegade Dec 17, 2025
efe7432
feat(degen): Add ML-based pattern recognition system
0xrinegade Dec 17, 2025
4686fbb
feat(degen): Add daily trading report generation system
0xrinegade Dec 17, 2025
54d2ef4
fix(degen): Fix log spam and JSON parsing errors
0xrinegade Dec 17, 2025
56427c7
feat(model-router): Reconfigure to use only free models with competition
0xrinegade Dec 17, 2025
8f2728e
fix(cli): Add missing boolean flags for degen command
0xrinegade Dec 17, 2025
5150a56
fix(pump-stream): Change pump.fun event logs from info to debug
0xrinegade Dec 17, 2025
7bd546a
fix(logs): Silence all evaluation noise, show only actual trades
0xrinegade Dec 17, 2025
80809f6
fix(logs): Restore rug scores, market summaries, and new token detection
0xrinegade Dec 17, 2025
2db115c
fix: NO MORE 'NEW' - fetch real symbols from pump.fun API + full addr…
0xrinegade Dec 17, 2025
d764597
feat(degen): Add agent performance leaderboard command
0xrinegade Dec 17, 2025
a79e80a
feat(code): Enhance GitHub template system with better validation
0xrinegade Dec 17, 2025
fe12184
feat(degen): Add AGI vision controller for autonomous TUI supervision
0xrinegade Dec 17, 2025
d0116da
feat(degen-agi): Add passive bug detection and QA reporting
0xrinegade Dec 17, 2025
7462366
agi
0xrinegade Dec 20, 2025
cd955cb
feat(degen-agi): Complete all 5 AGI self-optimization requests
0xrinegade Dec 20, 2025
dbe027d
feat(degen-agi): Implement exploratory AGI with vision-based learning
0xrinegade Dec 22, 2025
a17ccf1
feat(agi): Add session persistence, error recovery, and performance m…
0xrinegade Dec 22, 2025
9ce890f
feat(agi): Restore agi_vision_controller.rs (hardcoded AGI)
0xrinegade Dec 22, 2025
be9d1e6
feat(agi): Auto-load OpenRouter key from OSVM config files
0xrinegade Dec 22, 2025
611a984
feat(agi): Add tmux support as primary terminal multiplexer
0xrinegade Dec 22, 2025
3c4dd72
feat(agi): Launch in virtual display :99 with full automation
0xrinegade Dec 22, 2025
8bcac63
perf(agi): Switch to Claude Haiku 3.5 for faster vision analysis
0xrinegade Dec 22, 2025
71d04d6
perf(agi): Upgrade to Claude Haiku 4.5 - latest fastest model
0xrinegade Dec 22, 2025
bf0f686
feat(agi): Add system prompt giving AGI purpose and goals
0xrinegade Dec 22, 2025
08ce930
fix(degen-agi): Add missing system prompt argument to format strings
0xrinegade Dec 22, 2025
8644551
feat(degen-agi): Switch from xterm/xdotool to tmux for reliable keybo…
0xrinegade Dec 22, 2025
1097ac3
feat(degen-agi): Increase tmux terminal size for full TUI display
0xrinegade Dec 22, 2025
39662b5
fix(degen-tui): Increase help window size to show all content
0xrinegade Dec 22, 2025
939ce8b
feat(degen-tui): Add tab descriptions to help window
0xrinegade Dec 22, 2025
19d4a19
feat(degen-agi): Add complete documentation to system prompt and bloc…
0xrinegade Dec 22, 2025
b9a69d1
fix(degen): Critical live trading bug fixes and MCP Bank integration
0xrinegade Dec 24, 2025
868b233
fix(degen): Critical live trading bug fixes from self-audit
0xrinegade Dec 24, 2025
b406089
fix(stream,degen): Self-roast fixes - auto-reconnect and balance trac…
0xrinegade Dec 24, 2025
9efd7e5
fix(degen): BUG #12 - Clean up stuck PendingSell positions
0xrinegade Dec 24, 2025
493b266
feat(tui): Add scrollbars to degen TUI lists and tables
0xrinegade Dec 24, 2025
8f3cbea
fix(degen): BUG #20 - Prevent buying while position is PendingSell
0xrinegade Dec 24, 2025
2bf2f36
fix(degen): BUG #21 + #23 - Race condition and circuit breaker fixes
0xrinegade Dec 24, 2025
0c46445
fix(degen): BUG #16 + #17 - Memory bounds and position persistence
0xrinegade Dec 25, 2025
d49cce0
chore(stream): Document BUG #19 reconnection gap and reduce delay
0xrinegade Dec 25, 2025
d626a39
fix(degen): BUG #24 - Release lock during async price fetches
0xrinegade Dec 25, 2025
6a58c5f
fix(degen): BUG #26 - Daily PnL never resets at midnight
0xrinegade Dec 25, 2025
2ecaa86
fix(degen): BUG #27 + #28 - Periodic heartbeat and graceful shutdown
0xrinegade Dec 25, 2025
9f1b037
feat(degen): Implement 3 advanced trading features
0xrinegade Dec 25, 2025
7099e3e
feat(degen): Implement 3 advanced trading features (4-6)
0xrinegade Dec 25, 2025
651606c
fix(degen): Fallback to portfolio summary for position recovery
0xrinegade Dec 25, 2025
43d6a0f
fix(degen): Silence position recovery when MCP Bank lacks token APIs
0xrinegade Dec 25, 2025
cc7c2b3
fix(degen): BUG #29 & #30 - Fix mint extraction and MCP Bank error lo…
0xrinegade Dec 25, 2025
0db034a
fix(degen): BUG #31 - Fix mint extraction from pump.fun CREATE events
0xrinegade Dec 25, 2025
67041a7
fix(degen): Remove unreliable log-based mint extraction fallback
0xrinegade Dec 25, 2025
00b1302
fix(degen): Use jsonParsed RPC response for ALT-resolved addresses
0xrinegade Dec 25, 2025
e8e3a67
fix: Increase RPC retry delay to 1s for tx finalization
0xrinegade Dec 25, 2025
d572a69
fix(degen): Accurate pump.fun CREATE detection and RPC timing
0xrinegade Dec 25, 2025
e998ece
fix: Only process direct pump.fun invocations (not CPI)
0xrinegade Dec 25, 2025
cde2d98
fix: Match CreateV2 instruction for new pump.fun tokens
0xrinegade Dec 25, 2025
5c6b3fd
fix(registry): Atomic locking for race condition in multi-agent regis…
0xrinegade Dec 25, 2025
51072d1
fix(mcp-bank): Update API integration for /api/mcp/bank endpoint
0xrinegade Dec 26, 2025
e1cf2ac
fix(mcp-bank): Add confirmLargeTransaction for autonomous trading
0xrinegade Dec 26, 2025
259d5bb
fix(mcp-bank): Add skipSafetyChecks for pump.fun token trading
0xrinegade Dec 26, 2025
85fbc9e
feat: Smart transaction retry with adaptive priority fee escalation
0xrinegade Dec 28, 2025
09f2df1
fix(mcp-bank): Fix blind_buy/blind_sell API integration for live trading
0xrinegade Dec 28, 2025
686d9bb
feat: Use direct Solana RPC for position sync (single getTokenAccount…
0xrinegade Dec 28, 2025
8735ec1
feat(degen): Add total_sells and total_sold_sol tracking for better s…
0xrinegade Dec 29, 2025
99f013d
fix(degen): Force 100% sell for small positions (< 0.002 SOL)
0xrinegade Dec 29, 2025
8586f10
fix(degen): Change small position threshold to 1 SOL for 100% sell
0xrinegade Dec 29, 2025
4b1c88c
feat: Add AI trader streamer for pump.fun with visual TUI control
0xrinegade Dec 29, 2025
0f537d9
fix(tui): Remove double-Enter requirement + add paper/live trade filt…
0xrinegade Dec 29, 2025
4d38760
feat(council): Major AI council upgrade with personalities, MCP, and …
0xrinegade Dec 30, 2025
c3d9d43
feat: Implement RPC failover with log parsing fallback for ultra-fast…
0xrinegade Jan 6, 2026
c87e84a
feat: v0.17.0 - Moonshot Filters Release 🚀
0xrinegade Jan 10, 2026
1b5a66a
fix(pump-token-stream): Fix bonding curve deserialization to match pu…
0xrinegade Jan 10, 2026
da701fc
feat: Portfolio report, Exit ML system, and UX improvements
0xrinegade Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 17 additions & 33 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,41 +1,25 @@
# Cargo build configuration for OSVM
# Limits resource usage to prevent system lag
# Cargo configuration for faster builds

[build]
# Limit parallel compilation jobs (default uses all cores)
# Adjust based on your RAM: 8GB=2, 16GB=4, 32GB=6
jobs = 8

# Reduce peak memory usage by limiting parallel codegen
# Lower value = less memory but slower builds
# Set to 1 for minimal memory usage
rustflags = ["-C", "codegen-units=4"]
# Use all CPU cores for parallel compilation
jobs = 16 # Adjust based on your CPU
# Use sccache to cache compilation artifacts
rustc-wrapper = "sccache"

[profile.dev]
# Faster dev builds with reduced optimization
opt-level = 0
# Split debuginfo to reduce memory pressure during linking
# "unpacked" keeps debug info in separate files
split-debuginfo = "unpacked"
# Incremental compilation (already default, but explicit)
# Faster debug builds with less debug info
debug = 1 # Line numbers only, not full debug info
incremental = true
# Reduce codegen units to lower peak memory
codegen-units = 16

[profile.dev.package."*"]
# Optimize dependencies even in dev mode for faster runtime
opt-level = 2

[profile.release]
# Reduce peak memory during release builds
codegen-units = 8
# Use thin LTO for better performance with less memory
lto = "thin"

[net]
# Git fetch optimization
git-fetch-with-cli = true
# Faster release builds (still optimized, but faster to compile)
debug = 0 # No debug info in release
lto = false # Disable LTO for faster compile (can enable for final builds)
codegen-units = 16 # More parallel codegen (default is 1 for release)
incremental = true

[term]
# Show warnings in color
color = "auto"
# Use mold linker for 70% faster linking!
# Using g++ instead of clang as linker driver for better C++ stdlib support
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/g++"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
184 changes: 184 additions & 0 deletions .claude/commands/speckit.analyze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
---
description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
---

## User Input

```text
$ARGUMENTS
```

You **MUST** consider the user input before proceeding (if not empty).

## Goal

Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. This command MUST run only after `/speckit.tasks` has successfully produced a complete `tasks.md`.

## Operating Constraints

**STRICTLY READ-ONLY**: Do **not** modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).

**Constitution Authority**: The project constitution (`.specify/memory/constitution.md`) is **non-negotiable** within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks—not dilution, reinterpretation, or silent ignoring of the principle. If a principle itself needs to change, that must occur in a separate, explicit constitution update outside `/speckit.analyze`.

## Execution Steps

### 1. Initialize Analysis Context

Run `.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks` once from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive absolute paths:

- SPEC = FEATURE_DIR/spec.md
- PLAN = FEATURE_DIR/plan.md
- TASKS = FEATURE_DIR/tasks.md

Abort with an error message if any required file is missing (instruct the user to run missing prerequisite command).
For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").

### 2. Load Artifacts (Progressive Disclosure)

Load only the minimal necessary context from each artifact:

**From spec.md:**

- Overview/Context
- Functional Requirements
- Non-Functional Requirements
- User Stories
- Edge Cases (if present)

**From plan.md:**

- Architecture/stack choices
- Data Model references
- Phases
- Technical constraints

**From tasks.md:**

- Task IDs
- Descriptions
- Phase grouping
- Parallel markers [P]
- Referenced file paths

**From constitution:**

- Load `.specify/memory/constitution.md` for principle validation

### 3. Build Semantic Models

Create internal representations (do not include raw artifacts in output):

- **Requirements inventory**: Each functional + non-functional requirement with a stable key (derive slug based on imperative phrase; e.g., "User can upload file" → `user-can-upload-file`)
- **User story/action inventory**: Discrete user actions with acceptance criteria
- **Task coverage mapping**: Map each task to one or more requirements or stories (inference by keyword / explicit reference patterns like IDs or key phrases)
- **Constitution rule set**: Extract principle names and MUST/SHOULD normative statements

### 4. Detection Passes (Token-Efficient Analysis)

Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.

#### A. Duplication Detection

- Identify near-duplicate requirements
- Mark lower-quality phrasing for consolidation

#### B. Ambiguity Detection

- Flag vague adjectives (fast, scalable, secure, intuitive, robust) lacking measurable criteria
- Flag unresolved placeholders (TODO, TKTK, ???, `<placeholder>`, etc.)

#### C. Underspecification

- Requirements with verbs but missing object or measurable outcome
- User stories missing acceptance criteria alignment
- Tasks referencing files or components not defined in spec/plan

#### D. Constitution Alignment

- Any requirement or plan element conflicting with a MUST principle
- Missing mandated sections or quality gates from constitution

#### E. Coverage Gaps

- Requirements with zero associated tasks
- Tasks with no mapped requirement/story
- Non-functional requirements not reflected in tasks (e.g., performance, security)

#### F. Inconsistency

- Terminology drift (same concept named differently across files)
- Data entities referenced in plan but absent in spec (or vice versa)
- Task ordering contradictions (e.g., integration tasks before foundational setup tasks without dependency note)
- Conflicting requirements (e.g., one requires Next.js while other specifies Vue)

### 5. Severity Assignment

Use this heuristic to prioritize findings:

- **CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
- **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion
- **MEDIUM**: Terminology drift, missing non-functional task coverage, underspecified edge case
- **LOW**: Style/wording improvements, minor redundancy not affecting execution order

### 6. Produce Compact Analysis Report

Output a Markdown report (no file writes) with the following structure:

## Specification Analysis Report

| ID | Category | Severity | Location(s) | Summary | Recommendation |
|----|----------|----------|-------------|---------|----------------|
| A1 | Duplication | HIGH | spec.md:L120-134 | Two similar requirements ... | Merge phrasing; keep clearer version |

(Add one row per finding; generate stable IDs prefixed by category initial.)

**Coverage Summary Table:**

| Requirement Key | Has Task? | Task IDs | Notes |
|-----------------|-----------|----------|-------|

**Constitution Alignment Issues:** (if any)

**Unmapped Tasks:** (if any)

**Metrics:**

- Total Requirements
- Total Tasks
- Coverage % (requirements with >=1 task)
- Ambiguity Count
- Duplication Count
- Critical Issues Count

### 7. Provide Next Actions

At end of report, output a concise Next Actions block:

- If CRITICAL issues exist: Recommend resolving before `/speckit.implement`
- If only LOW/MEDIUM: User may proceed, but provide improvement suggestions
- Provide explicit command suggestions: e.g., "Run /speckit.specify with refinement", "Run /speckit.plan to adjust architecture", "Manually edit tasks.md to add coverage for 'performance-metrics'"

### 8. Offer Remediation

Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)

## Operating Principles

### Context Efficiency

- **Minimal high-signal tokens**: Focus on actionable findings, not exhaustive documentation
- **Progressive disclosure**: Load artifacts incrementally; don't dump all content into analysis
- **Token-efficient output**: Limit findings table to 50 rows; summarize overflow
- **Deterministic results**: Rerunning without changes should produce consistent IDs and counts

### Analysis Guidelines

- **NEVER modify files** (this is read-only analysis)
- **NEVER hallucinate missing sections** (if absent, report them accurately)
- **Prioritize constitution violations** (these are always CRITICAL)
- **Use examples over exhaustive rules** (cite specific instances, not generic patterns)
- **Report zero issues gracefully** (emit success report with coverage statistics)

## Context

$ARGUMENTS
Loading
Loading