feat: ambient mode — proportional quality enforcement#71
Merged
Conversation
- New plugin: devflow-ambient with /ambient command - New skills: ambient-router (intent/depth classification), test-driven-development (TDD enforcement) - Always-on mode via UserPromptSubmit hook (devflow ambient --enable/--disable) - Interactive init prompt for ambient mode selection (--ambient/--no-ambient flags) - Full uninstall properly cleans ambient hook before blanket hooks prompt - Memory improvements: patterns.md extraction and injection across sessions - 19 new tests (137 total across 9 test files)
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
devflow-ambientwith/ambientcommand for one-shot or always-on proportional quality enforcementambient-router(intent/depth classification into QUICK/STANDARD/ESCALATE tiers) andtest-driven-development(TDD enforcement auto-activates for BUILD/STANDARD depth)devflow ambient --enableregisters aUserPromptSubmithook that classifies every prompt and loads proportional skills — zero overhead for quick tasks, full enforcement for complex onesdevflow initnow prompts for ambient mode (with--ambient/--no-ambientCLI flags)--plugin=ambientuninstall also cleans the hook.patterns.mdextraction in background hook and injection in session-start hook for cross-session pattern continuityChanges
shared/skills/ambient-router/,shared/skills/test-driven-development/plugins/devflow-ambient//ambientcommand (9 plugins total)src/cli/commands/ambient.ts,src/cli/cli.ts,src/cli/plugins.tsdevflow ambient --enable/--disable/--statussrc/cli/commands/init.ts--ambient/--no-ambientflags + interactive promptsrc/cli/commands/uninstall.tsscripts/hooks/ambient-prompt.shscripts/hooks/background-memory-update.sh,scripts/hooks/session-start-memory.shREADME.md,CLAUDE.md,CONTRIBUTING.md,marketplace.jsontests/ambient.test.ts,tests/init-logic.test.tsTest plan
npm run build— 26 skills distributed across 9 pluginsnpm test— 137/137 passnode dist/cli.js init --ambient— ambient hook appears in settings.jsonnode dist/cli.js init --no-ambient— no ambient hooknode dist/cli.js ambient --status— reports enabled/disableddevflow uninstall→ NO to hooks → ambient hook still removed, other hooks preserveddevflow uninstall --plugin=ambient→ ambient hook removed