feat: v1.5.0 - Context-Aware Stack Detection#37
Merged
victormartingil merged 1 commit intomainfrom Feb 11, 2026
Merged
Conversation
Add auto-detection of project technology stack at REPL startup to prevent COCO from suggesting incompatible technologies. Features: - Detect language/runtime (Node.js, Java, Python, Go, Rust) - Extract dependencies from package.json, pom.xml, build.gradle, etc. - Infer frameworks (Spring Boot, React, FastAPI) from dependencies - Detect package manager, build tools, and testing frameworks - Enrich LLM system prompt with stack context - Prevent mismatched technology suggestions Added: - Stack detector service (src/cli/repl/context/stack-detector.ts) - CommandHeartbeat utility for future streaming feature - projectContext field in ReplSession type - Stack info in system prompt formatting Changed: - REPL startup now detects and stores stack context - System prompt enriched with technology stack information This prevents COCO from suggesting npm packages in Java projects and vice versa, significantly improving user experience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces automatic project technology stack detection at REPL startup, preventing COCO from suggesting incompatible technologies.
Changes
Added
Stack detector service (
src/cli/repl/context/stack-detector.ts)CommandHeartbeat utility (
src/tools/utils/heartbeat.ts)ReplSession type extension
projectContextfield to store detected stack informationChanged
Fixed
Testing
Impact
This significantly improves the user experience by ensuring COCO's suggestions are always compatible with the project's technology stack. No more suggestions to
npm installin a Java project!🤖 Generated with Claude Code