@dragonflymcp/plugin 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +26 -0
- package/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/core/annotations.d.ts +71 -0
- package/dist/core/annotations.d.ts.map +1 -0
- package/dist/core/annotations.js +61 -0
- package/dist/core/annotations.js.map +1 -0
- package/dist/core/config.d.ts +66 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +131 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/dispatcher.d.ts +77 -0
- package/dist/core/dispatcher.d.ts.map +1 -0
- package/dist/core/dispatcher.js +132 -0
- package/dist/core/dispatcher.js.map +1 -0
- package/dist/core/server.d.ts +24 -0
- package/dist/core/server.d.ts.map +1 -0
- package/dist/core/server.js +41 -0
- package/dist/core/server.js.map +1 -0
- package/dist/core/store.d.ts +91 -0
- package/dist/core/store.d.ts.map +1 -0
- package/dist/core/store.js +157 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/types.d.ts +128 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +5 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/test-utils/store-harness.d.ts +41 -0
- package/dist/test-utils/store-harness.d.ts.map +1 -0
- package/dist/test-utils/store-harness.js +61 -0
- package/dist/test-utils/store-harness.js.map +1 -0
- package/dist/tools/analytics/aggregators.d.ts +18 -0
- package/dist/tools/analytics/aggregators.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.js +260 -0
- package/dist/tools/analytics/aggregators.js.map +1 -0
- package/dist/tools/analytics/aggregators.test.d.ts +2 -0
- package/dist/tools/analytics/aggregators.test.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.test.js +177 -0
- package/dist/tools/analytics/aggregators.test.js.map +1 -0
- package/dist/tools/analytics/drift.d.ts +15 -0
- package/dist/tools/analytics/drift.d.ts.map +1 -0
- package/dist/tools/analytics/drift.js +135 -0
- package/dist/tools/analytics/drift.js.map +1 -0
- package/dist/tools/analytics/drift.test.d.ts +2 -0
- package/dist/tools/analytics/drift.test.d.ts.map +1 -0
- package/dist/tools/analytics/drift.test.js +99 -0
- package/dist/tools/analytics/drift.test.js.map +1 -0
- package/dist/tools/analytics/index.d.ts +10 -0
- package/dist/tools/analytics/index.d.ts.map +1 -0
- package/dist/tools/analytics/index.js +192 -0
- package/dist/tools/analytics/index.js.map +1 -0
- package/dist/tools/analytics/learner.d.ts +29 -0
- package/dist/tools/analytics/learner.d.ts.map +1 -0
- package/dist/tools/analytics/learner.js +135 -0
- package/dist/tools/analytics/learner.js.map +1 -0
- package/dist/tools/analytics/learner.test.d.ts +2 -0
- package/dist/tools/analytics/learner.test.d.ts.map +1 -0
- package/dist/tools/analytics/learner.test.js +118 -0
- package/dist/tools/analytics/learner.test.js.map +1 -0
- package/dist/tools/analytics/observe.d.ts +22 -0
- package/dist/tools/analytics/observe.d.ts.map +1 -0
- package/dist/tools/analytics/observe.js +143 -0
- package/dist/tools/analytics/observe.js.map +1 -0
- package/dist/tools/analytics/observe.test.d.ts +2 -0
- package/dist/tools/analytics/observe.test.d.ts.map +1 -0
- package/dist/tools/analytics/observe.test.js +95 -0
- package/dist/tools/analytics/observe.test.js.map +1 -0
- package/dist/tools/analytics/store.d.ts +29 -0
- package/dist/tools/analytics/store.d.ts.map +1 -0
- package/dist/tools/analytics/store.js +192 -0
- package/dist/tools/analytics/store.js.map +1 -0
- package/dist/tools/analytics/types.d.ts +290 -0
- package/dist/tools/analytics/types.d.ts.map +1 -0
- package/dist/tools/analytics/types.js +7 -0
- package/dist/tools/analytics/types.js.map +1 -0
- package/dist/tools/ast/index.d.ts +8 -0
- package/dist/tools/ast/index.d.ts.map +1 -0
- package/dist/tools/ast/index.js +242 -0
- package/dist/tools/ast/index.js.map +1 -0
- package/dist/tools/ast/indexer.d.ts +41 -0
- package/dist/tools/ast/indexer.d.ts.map +1 -0
- package/dist/tools/ast/indexer.js +617 -0
- package/dist/tools/ast/indexer.js.map +1 -0
- package/dist/tools/ast/store.d.ts +87 -0
- package/dist/tools/ast/store.d.ts.map +1 -0
- package/dist/tools/ast/store.js +280 -0
- package/dist/tools/ast/store.js.map +1 -0
- package/dist/tools/ast/store.test.d.ts +6 -0
- package/dist/tools/ast/store.test.d.ts.map +1 -0
- package/dist/tools/ast/store.test.js +257 -0
- package/dist/tools/ast/store.test.js.map +1 -0
- package/dist/tools/bridge/bridge.d.ts +37 -0
- package/dist/tools/bridge/bridge.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.js +82 -0
- package/dist/tools/bridge/bridge.js.map +1 -0
- package/dist/tools/bridge/bridge.test.d.ts +2 -0
- package/dist/tools/bridge/bridge.test.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.test.js +119 -0
- package/dist/tools/bridge/bridge.test.js.map +1 -0
- package/dist/tools/bridge/index.d.ts +8 -0
- package/dist/tools/bridge/index.d.ts.map +1 -0
- package/dist/tools/bridge/index.js +153 -0
- package/dist/tools/bridge/index.js.map +1 -0
- package/dist/tools/bridge/store.d.ts +45 -0
- package/dist/tools/bridge/store.d.ts.map +1 -0
- package/dist/tools/bridge/store.js +307 -0
- package/dist/tools/bridge/store.js.map +1 -0
- package/dist/tools/bridge/store.test.d.ts +2 -0
- package/dist/tools/bridge/store.test.d.ts.map +1 -0
- package/dist/tools/bridge/store.test.js +180 -0
- package/dist/tools/bridge/store.test.js.map +1 -0
- package/dist/tools/bridge/types.d.ts +44 -0
- package/dist/tools/bridge/types.d.ts.map +1 -0
- package/dist/tools/bridge/types.js +6 -0
- package/dist/tools/bridge/types.js.map +1 -0
- package/dist/tools/evolve/algorithm.d.ts +33 -0
- package/dist/tools/evolve/algorithm.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.js +64 -0
- package/dist/tools/evolve/algorithm.js.map +1 -0
- package/dist/tools/evolve/algorithm.test.d.ts +6 -0
- package/dist/tools/evolve/algorithm.test.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.test.js +138 -0
- package/dist/tools/evolve/algorithm.test.js.map +1 -0
- package/dist/tools/evolve/index.d.ts +11 -0
- package/dist/tools/evolve/index.d.ts.map +1 -0
- package/dist/tools/evolve/index.js +300 -0
- package/dist/tools/evolve/index.js.map +1 -0
- package/dist/tools/evolve/store.d.ts +27 -0
- package/dist/tools/evolve/store.d.ts.map +1 -0
- package/dist/tools/evolve/store.js +147 -0
- package/dist/tools/evolve/store.js.map +1 -0
- package/dist/tools/evolve/store.test.d.ts +6 -0
- package/dist/tools/evolve/store.test.d.ts.map +1 -0
- package/dist/tools/evolve/store.test.js +162 -0
- package/dist/tools/evolve/store.test.js.map +1 -0
- package/dist/tools/evolve/types.d.ts +38 -0
- package/dist/tools/evolve/types.d.ts.map +1 -0
- package/dist/tools/evolve/types.js +6 -0
- package/dist/tools/evolve/types.js.map +1 -0
- package/dist/tools/framework/content-loader.d.ts +45 -0
- package/dist/tools/framework/content-loader.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.js +258 -0
- package/dist/tools/framework/content-loader.js.map +1 -0
- package/dist/tools/framework/content-loader.test.d.ts +5 -0
- package/dist/tools/framework/content-loader.test.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.test.js +262 -0
- package/dist/tools/framework/content-loader.test.js.map +1 -0
- package/dist/tools/framework/index.d.ts +30 -0
- package/dist/tools/framework/index.d.ts.map +1 -0
- package/dist/tools/framework/index.js +517 -0
- package/dist/tools/framework/index.js.map +1 -0
- package/dist/tools/framework/session.d.ts +85 -0
- package/dist/tools/framework/session.d.ts.map +1 -0
- package/dist/tools/framework/session.js +311 -0
- package/dist/tools/framework/session.js.map +1 -0
- package/dist/tools/framework/session.test.d.ts +5 -0
- package/dist/tools/framework/session.test.d.ts.map +1 -0
- package/dist/tools/framework/session.test.js +291 -0
- package/dist/tools/framework/session.test.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.d.ts +41 -0
- package/dist/tools/framework/sync-evaluator.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.js +298 -0
- package/dist/tools/framework/sync-evaluator.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts +5 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.js +288 -0
- package/dist/tools/framework/sync-evaluator.test.js.map +1 -0
- package/dist/tools/framework/types.d.ts +279 -0
- package/dist/tools/framework/types.d.ts.map +1 -0
- package/dist/tools/framework/types.js +6 -0
- package/dist/tools/framework/types.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.d.ts +55 -0
- package/dist/tools/framework/workflow-intelligence.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.js +199 -0
- package/dist/tools/framework/workflow-intelligence.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts +6 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.js +257 -0
- package/dist/tools/framework/workflow-intelligence.test.js.map +1 -0
- package/dist/tools/framework/workflow-planner.d.ts +10 -0
- package/dist/tools/framework/workflow-planner.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.js +214 -0
- package/dist/tools/framework/workflow-planner.js.map +1 -0
- package/dist/tools/framework/workflow-planner.test.d.ts +5 -0
- package/dist/tools/framework/workflow-planner.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.test.js +137 -0
- package/dist/tools/framework/workflow-planner.test.js.map +1 -0
- package/dist/tools/knowledge/bridge.d.ts +34 -0
- package/dist/tools/knowledge/bridge.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.js +249 -0
- package/dist/tools/knowledge/bridge.js.map +1 -0
- package/dist/tools/knowledge/bridge.test.d.ts +5 -0
- package/dist/tools/knowledge/bridge.test.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.test.js +221 -0
- package/dist/tools/knowledge/bridge.test.js.map +1 -0
- package/dist/tools/knowledge/extractor.d.ts +22 -0
- package/dist/tools/knowledge/extractor.d.ts.map +1 -0
- package/dist/tools/knowledge/extractor.js +154 -0
- package/dist/tools/knowledge/extractor.js.map +1 -0
- package/dist/tools/knowledge/index.d.ts +12 -0
- package/dist/tools/knowledge/index.d.ts.map +1 -0
- package/dist/tools/knowledge/index.js +505 -0
- package/dist/tools/knowledge/index.js.map +1 -0
- package/dist/tools/knowledge/retrieval.d.ts +28 -0
- package/dist/tools/knowledge/retrieval.d.ts.map +1 -0
- package/dist/tools/knowledge/retrieval.js +164 -0
- package/dist/tools/knowledge/retrieval.js.map +1 -0
- package/dist/tools/knowledge/store.d.ts +96 -0
- package/dist/tools/knowledge/store.d.ts.map +1 -0
- package/dist/tools/knowledge/store.js +562 -0
- package/dist/tools/knowledge/store.js.map +1 -0
- package/dist/tools/knowledge/store.test.d.ts +6 -0
- package/dist/tools/knowledge/store.test.d.ts.map +1 -0
- package/dist/tools/knowledge/store.test.js +385 -0
- package/dist/tools/knowledge/store.test.js.map +1 -0
- package/dist/tools/knowledge/types.d.ts +168 -0
- package/dist/tools/knowledge/types.d.ts.map +1 -0
- package/dist/tools/knowledge/types.js +6 -0
- package/dist/tools/knowledge/types.js.map +1 -0
- package/dist/tools/memory/evolution.d.ts +31 -0
- package/dist/tools/memory/evolution.d.ts.map +1 -0
- package/dist/tools/memory/evolution.js +130 -0
- package/dist/tools/memory/evolution.js.map +1 -0
- package/dist/tools/memory/index.d.ts +11 -0
- package/dist/tools/memory/index.d.ts.map +1 -0
- package/dist/tools/memory/index.js +239 -0
- package/dist/tools/memory/index.js.map +1 -0
- package/dist/tools/memory/store.d.ts +75 -0
- package/dist/tools/memory/store.d.ts.map +1 -0
- package/dist/tools/memory/store.js +398 -0
- package/dist/tools/memory/store.js.map +1 -0
- package/dist/tools/memory/store.test.d.ts +6 -0
- package/dist/tools/memory/store.test.d.ts.map +1 -0
- package/dist/tools/memory/store.test.js +429 -0
- package/dist/tools/memory/store.test.js.map +1 -0
- package/dist/tools/memory/types.d.ts +171 -0
- package/dist/tools/memory/types.d.ts.map +1 -0
- package/dist/tools/memory/types.js +6 -0
- package/dist/tools/memory/types.js.map +1 -0
- package/dist/tools/pipeline/composer.d.ts +29 -0
- package/dist/tools/pipeline/composer.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.js +225 -0
- package/dist/tools/pipeline/composer.js.map +1 -0
- package/dist/tools/pipeline/composer.test.d.ts +2 -0
- package/dist/tools/pipeline/composer.test.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.test.js +162 -0
- package/dist/tools/pipeline/composer.test.js.map +1 -0
- package/dist/tools/pipeline/index.d.ts +8 -0
- package/dist/tools/pipeline/index.d.ts.map +1 -0
- package/dist/tools/pipeline/index.js +102 -0
- package/dist/tools/pipeline/index.js.map +1 -0
- package/dist/tools/pipeline/planner.d.ts +10 -0
- package/dist/tools/pipeline/planner.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.js +147 -0
- package/dist/tools/pipeline/planner.js.map +1 -0
- package/dist/tools/pipeline/planner.test.d.ts +2 -0
- package/dist/tools/pipeline/planner.test.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.test.js +96 -0
- package/dist/tools/pipeline/planner.test.js.map +1 -0
- package/dist/tools/pipeline/preconditions.d.ts +14 -0
- package/dist/tools/pipeline/preconditions.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.js +65 -0
- package/dist/tools/pipeline/preconditions.js.map +1 -0
- package/dist/tools/pipeline/preconditions.test.d.ts +2 -0
- package/dist/tools/pipeline/preconditions.test.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.test.js +74 -0
- package/dist/tools/pipeline/preconditions.test.js.map +1 -0
- package/dist/tools/pipeline/types.d.ts +105 -0
- package/dist/tools/pipeline/types.d.ts.map +1 -0
- package/dist/tools/pipeline/types.js +6 -0
- package/dist/tools/pipeline/types.js.map +1 -0
- package/dist/tools/repair/index.d.ts +8 -0
- package/dist/tools/repair/index.d.ts.map +1 -0
- package/dist/tools/repair/index.js +384 -0
- package/dist/tools/repair/index.js.map +1 -0
- package/dist/tools/repair/repairer.d.ts +67 -0
- package/dist/tools/repair/repairer.d.ts.map +1 -0
- package/dist/tools/repair/repairer.js +257 -0
- package/dist/tools/repair/repairer.js.map +1 -0
- package/dist/tools/repair/repairer.test.d.ts +6 -0
- package/dist/tools/repair/repairer.test.d.ts.map +1 -0
- package/dist/tools/repair/repairer.test.js +159 -0
- package/dist/tools/repair/repairer.test.js.map +1 -0
- package/dist/tools/semantic/chunker.d.ts +23 -0
- package/dist/tools/semantic/chunker.d.ts.map +1 -0
- package/dist/tools/semantic/chunker.js +244 -0
- package/dist/tools/semantic/chunker.js.map +1 -0
- package/dist/tools/semantic/embedder.d.ts +16 -0
- package/dist/tools/semantic/embedder.d.ts.map +1 -0
- package/dist/tools/semantic/embedder.js +88 -0
- package/dist/tools/semantic/embedder.js.map +1 -0
- package/dist/tools/semantic/index.d.ts +8 -0
- package/dist/tools/semantic/index.d.ts.map +1 -0
- package/dist/tools/semantic/index.js +144 -0
- package/dist/tools/semantic/index.js.map +1 -0
- package/dist/tools/semantic/store.d.ts +31 -0
- package/dist/tools/semantic/store.d.ts.map +1 -0
- package/dist/tools/semantic/store.js +168 -0
- package/dist/tools/semantic/store.js.map +1 -0
- package/dist/tools/semantic/store.test.d.ts +6 -0
- package/dist/tools/semantic/store.test.d.ts.map +1 -0
- package/dist/tools/semantic/store.test.js +240 -0
- package/dist/tools/semantic/store.test.js.map +1 -0
- package/dist/tools/spec/generator.d.ts +32 -0
- package/dist/tools/spec/generator.d.ts.map +1 -0
- package/dist/tools/spec/generator.js +278 -0
- package/dist/tools/spec/generator.js.map +1 -0
- package/dist/tools/spec/generator.test.d.ts +6 -0
- package/dist/tools/spec/generator.test.d.ts.map +1 -0
- package/dist/tools/spec/generator.test.js +208 -0
- package/dist/tools/spec/generator.test.js.map +1 -0
- package/dist/tools/spec/index.d.ts +11 -0
- package/dist/tools/spec/index.d.ts.map +1 -0
- package/dist/tools/spec/index.js +426 -0
- package/dist/tools/spec/index.js.map +1 -0
- package/dist/tools/spec/store.d.ts +24 -0
- package/dist/tools/spec/store.d.ts.map +1 -0
- package/dist/tools/spec/store.js +104 -0
- package/dist/tools/spec/store.js.map +1 -0
- package/dist/tools/spec/store.test.d.ts +6 -0
- package/dist/tools/spec/store.test.d.ts.map +1 -0
- package/dist/tools/spec/store.test.js +173 -0
- package/dist/tools/spec/store.test.js.map +1 -0
- package/dist/tools/spec/types.d.ts +61 -0
- package/dist/tools/spec/types.d.ts.map +1 -0
- package/dist/tools/spec/types.js +6 -0
- package/dist/tools/spec/types.js.map +1 -0
- package/dist/tools/state/index.d.ts +11 -0
- package/dist/tools/state/index.d.ts.map +1 -0
- package/dist/tools/state/index.js +386 -0
- package/dist/tools/state/index.js.map +1 -0
- package/dist/tools/state/migrate.d.ts +39 -0
- package/dist/tools/state/migrate.d.ts.map +1 -0
- package/dist/tools/state/migrate.js +242 -0
- package/dist/tools/state/migrate.js.map +1 -0
- package/dist/tools/state/migrate.test.d.ts +2 -0
- package/dist/tools/state/migrate.test.d.ts.map +1 -0
- package/dist/tools/state/migrate.test.js +265 -0
- package/dist/tools/state/migrate.test.js.map +1 -0
- package/dist/tools/state/store.d.ts +107 -0
- package/dist/tools/state/store.d.ts.map +1 -0
- package/dist/tools/state/store.js +365 -0
- package/dist/tools/state/store.js.map +1 -0
- package/dist/tools/state/store.test.d.ts +5 -0
- package/dist/tools/state/store.test.d.ts.map +1 -0
- package/dist/tools/state/store.test.js +293 -0
- package/dist/tools/state/store.test.js.map +1 -0
- package/dist/tools/state/types.d.ts +90 -0
- package/dist/tools/state/types.d.ts.map +1 -0
- package/dist/tools/state/types.js +6 -0
- package/dist/tools/state/types.js.map +1 -0
- package/dist/tools/testing/analyzer.d.ts +44 -0
- package/dist/tools/testing/analyzer.d.ts.map +1 -0
- package/dist/tools/testing/analyzer.js +280 -0
- package/dist/tools/testing/analyzer.js.map +1 -0
- package/dist/tools/testing/generator.d.ts +57 -0
- package/dist/tools/testing/generator.d.ts.map +1 -0
- package/dist/tools/testing/generator.js +478 -0
- package/dist/tools/testing/generator.js.map +1 -0
- package/dist/tools/testing/generator.test.d.ts +6 -0
- package/dist/tools/testing/generator.test.d.ts.map +1 -0
- package/dist/tools/testing/generator.test.js +285 -0
- package/dist/tools/testing/generator.test.js.map +1 -0
- package/dist/tools/testing/index.d.ts +8 -0
- package/dist/tools/testing/index.d.ts.map +1 -0
- package/dist/tools/testing/index.js +373 -0
- package/dist/tools/testing/index.js.map +1 -0
- package/dist/utils/embedder.d.ts +7 -0
- package/dist/utils/embedder.d.ts.map +1 -0
- package/dist/utils/embedder.js +13 -0
- package/dist/utils/embedder.js.map +1 -0
- package/dist/utils/execution.d.ts +68 -0
- package/dist/utils/execution.d.ts.map +1 -0
- package/dist/utils/execution.js +467 -0
- package/dist/utils/execution.js.map +1 -0
- package/dist/utils/graph.d.ts +26 -0
- package/dist/utils/graph.d.ts.map +1 -0
- package/dist/utils/graph.js +32 -0
- package/dist/utils/graph.js.map +1 -0
- package/dist/utils/guards.d.ts +32 -0
- package/dist/utils/guards.d.ts.map +1 -0
- package/dist/utils/guards.js +40 -0
- package/dist/utils/guards.js.map +1 -0
- package/dist/utils/ids.d.ts +5 -0
- package/dist/utils/ids.d.ts.map +1 -0
- package/dist/utils/ids.js +7 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/languages.d.ts +34 -0
- package/dist/utils/languages.d.ts.map +1 -0
- package/dist/utils/languages.js +153 -0
- package/dist/utils/languages.js.map +1 -0
- package/dist/utils/lazy.d.ts +17 -0
- package/dist/utils/lazy.d.ts.map +1 -0
- package/dist/utils/lazy.js +35 -0
- package/dist/utils/lazy.js.map +1 -0
- package/dist/utils/project.d.ts +41 -0
- package/dist/utils/project.d.ts.map +1 -0
- package/dist/utils/project.js +82 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/utils/responses.d.ts +27 -0
- package/dist/utils/responses.d.ts.map +1 -0
- package/dist/utils/responses.js +72 -0
- package/dist/utils/responses.js.map +1 -0
- package/dist/utils/vectors.d.ts +33 -0
- package/dist/utils/vectors.d.ts.map +1 -0
- package/dist/utils/vectors.js +80 -0
- package/dist/utils/vectors.js.map +1 -0
- package/dist/utils/vectors.test.d.ts +6 -0
- package/dist/utils/vectors.test.d.ts.map +1 -0
- package/dist/utils/vectors.test.js +96 -0
- package/dist/utils/vectors.test.js.map +1 -0
- package/package.json +69 -0
- package/scripts/init.js +142 -0
- package/templates/CLAUDE.md.template +96 -0
- package/templates/agents/architecture-concept.md +237 -0
- package/templates/agents/checkpoint-concept.md +218 -0
- package/templates/agents/code-analysis-concept.md +171 -0
- package/templates/agents/compete-control.md +44 -0
- package/templates/agents/compete-evaluator.md +87 -0
- package/templates/agents/compete-treatment.md +55 -0
- package/templates/agents/context-concept.md +254 -0
- package/templates/agents/debate-advocate.md +127 -0
- package/templates/agents/debate-critic.md +119 -0
- package/templates/agents/debate-synthesis.md +160 -0
- package/templates/agents/documentation-concept.md +294 -0
- package/templates/agents/implementation-concept.md +165 -0
- package/templates/agents/quality-concept.md +299 -0
- package/templates/agents/research-concept.md +169 -0
- package/templates/agents/security-concept.md +255 -0
- package/templates/agents/story-concept.md +207 -0
- package/templates/agents/verification-concept.md +456 -0
- package/templates/agents/version-concept.md +163 -0
- package/templates/anchors/directory.anchor.yaml.template +53 -0
- package/templates/anchors/rules.anchor.yaml.template +70 -0
- package/templates/anchors/safety.anchor.yaml.template +96 -0
- package/templates/claude-md-managed.template +105 -0
- package/templates/commands/cache.md.template +439 -0
- package/templates/commands/checkpoint.md.template +121 -0
- package/templates/commands/classify.md.template +138 -0
- package/templates/commands/compete.md.template +90 -0
- package/templates/commands/costs.md.template +111 -0
- package/templates/commands/estimate.md.template +196 -0
- package/templates/commands/explore.md.template +186 -0
- package/templates/commands/feature.md.template +216 -0
- package/templates/commands/forget.md.template +104 -0
- package/templates/commands/global-recall.md.template +250 -0
- package/templates/commands/global-remember.md.template +187 -0
- package/templates/commands/health.md.template +107 -0
- package/templates/commands/help.md.template +253 -0
- package/templates/commands/observe.md.template +211 -0
- package/templates/commands/pr-review.md.template +164 -0
- package/templates/commands/predict-cost.md.template +251 -0
- package/templates/commands/profile.md.template +142 -0
- package/templates/commands/reasoning.md.template +228 -0
- package/templates/commands/recall.md.template +197 -0
- package/templates/commands/remember.md.template +148 -0
- package/templates/commands/replay.md.template +449 -0
- package/templates/commands/restore.md.template +87 -0
- package/templates/commands/retrospective.md.template +47 -0
- package/templates/commands/slo.md.template +286 -0
- package/templates/commands/spec.md.template +164 -0
- package/templates/commands/status.md.template +53 -0
- package/templates/commands/sync.md.template +321 -0
- package/templates/commands/task.md.template +86 -0
- package/templates/commands/trace.md.template +86 -0
- package/templates/commands/visualize.md.template +216 -0
- package/templates/commands/workflow.md.template +375 -0
- package/templates/concepts/README.md +329 -0
- package/templates/concepts/architecture.md.template +74 -0
- package/templates/concepts/code-analysis.md.template +186 -0
- package/templates/concepts/context-compactor.md.template +393 -0
- package/templates/concepts/context.md.template +62 -0
- package/templates/concepts/documentation.md.template +452 -0
- package/templates/concepts/estimator.md.template +214 -0
- package/templates/concepts/exploration.md.template +257 -0
- package/templates/concepts/global-memory.md.template +222 -0
- package/templates/concepts/implementation.md.template +62 -0
- package/templates/concepts/pr-review.md.template +277 -0
- package/templates/concepts/project-profile.md.template +358 -0
- package/templates/concepts/quality.md.template +63 -0
- package/templates/concepts/react-fallback.md.template +286 -0
- package/templates/concepts/research.md.template +221 -0
- package/templates/concepts/retrospective.md.template +93 -0
- package/templates/concepts/security.md.template +442 -0
- package/templates/concepts/slo.md.template +274 -0
- package/templates/concepts/spec.md.template +71 -0
- package/templates/concepts/story.md.template +50 -0
- package/templates/concepts/tool-router.md.template +289 -0
- package/templates/concepts/verification-synthesizer.md.template +279 -0
- package/templates/concepts/version.md.template +61 -0
- package/templates/config.yaml.template +347 -0
- package/templates/examples/README.md +77 -0
- package/templates/examples/architecture/api-design.yaml.template +286 -0
- package/templates/examples/architecture/oauth-authentication.yaml.template +305 -0
- package/templates/health/status.yaml.template +120 -0
- package/templates/hooks/concept-complete.sh.template +45 -0
- package/templates/hooks/lib/common.sh.template +160 -0
- package/templates/hooks/post-commit.sh.template +37 -0
- package/templates/hooks/post-concept-action.template +39 -0
- package/templates/hooks/post-tool-structure-check.sh.template +138 -0
- package/templates/hooks/post-tool-use.sh.template +51 -0
- package/templates/hooks/pre-compact.sh.template +48 -0
- package/templates/hooks/pre-tool-grounding.template +148 -0
- package/templates/hooks/session-exit-checkpoint.sh.template +35 -0
- package/templates/hooks/session-start.sh.template +67 -0
- package/templates/hooks/statusline.sh.template +148 -0
- package/templates/hooks/stop.sh.template +45 -0
- package/templates/hooks/subagent-stop.sh.template +40 -0
- package/templates/hooks/sync-blocked.sh.template +45 -0
- package/templates/hooks/timeout.sh.template +48 -0
- package/templates/hooks/user-prompt-submit.sh.template +68 -0
- package/templates/koan/README.md +58 -0
- package/templates/memory/index.yaml.template +48 -0
- package/templates/memory/procedural/debugging.yaml.template +24 -0
- package/templates/memory/procedural/workflows.yaml.template +22 -0
- package/templates/memory/semantic/architecture.yaml.template +21 -0
- package/templates/memory/semantic/conventions.yaml.template +18 -0
- package/templates/memory/semantic/patterns.yaml.template +21 -0
- package/templates/memory/semantic/preferences.yaml.template +18 -0
- package/templates/prompts/architecture.yaml.template +349 -0
- package/templates/prompts/context.yaml.template +384 -0
- package/templates/prompts/implementation.yaml.template +365 -0
- package/templates/prompts/planning.yaml.template +303 -0
- package/templates/prompts/quality.yaml.template +345 -0
- package/templates/prompts/retrospective.yaml.template +231 -0
- package/templates/prompts/slo.yaml.template +360 -0
- package/templates/prompts/story.yaml.template +236 -0
- package/templates/prompts/tree-of-thoughts.yaml.template +299 -0
- package/templates/prompts/verification.yaml.template +286 -0
- package/templates/prompts/version.yaml.template +279 -0
- package/templates/schemas/agent-schema.json +98 -0
- package/templates/schemas/architecture.schema.json +69 -0
- package/templates/schemas/config-schema.json +165 -0
- package/templates/schemas/implementation.schema.json +75 -0
- package/templates/schemas/planning.schema.json +243 -0
- package/templates/schemas/provenance.schema.json +111 -0
- package/templates/schemas/retrospective.schema.json +174 -0
- package/templates/schemas/review.schema.json +284 -0
- package/templates/schemas/slo.schema.json +443 -0
- package/templates/schemas/story.schema.json +68 -0
- package/templates/schemas/sync-schema.json +196 -0
- package/templates/schemas/task.schema.json +127 -0
- package/templates/schemas/tree-of-thoughts.schema.json +175 -0
- package/templates/schemas/verification.schema.json +106 -0
- package/templates/settings.full.json.template +135 -0
- package/templates/settings.minimal.json.template +68 -0
- package/templates/settings.standard.json.template +135 -0
- package/templates/skills/acceptance-criteria-generation.md.template +330 -0
- package/templates/skills/accessibility-checking.md.template +341 -0
- package/templates/skills/api-design-patterns.md.template +395 -0
- package/templates/skills/batch-processing.md.template +605 -0
- package/templates/skills/branch-strategy.md.template +362 -0
- package/templates/skills/changelog-generation.md.template +403 -0
- package/templates/skills/code-coverage-analysis.md.template +362 -0
- package/templates/skills/code-style-enforcement.md.template +294 -0
- package/templates/skills/code-template-patterns.md.template +419 -0
- package/templates/skills/concept-development.md.template +159 -0
- package/templates/skills/context-prioritization.md.template +306 -0
- package/templates/skills/cost-optimization.md.template +482 -0
- package/templates/skills/cross-project-knowledge.md.template +316 -0
- package/templates/skills/dependency-impact-analysis.md.template +263 -0
- package/templates/skills/documentation-generation.md.template +409 -0
- package/templates/skills/effort-estimation.md.template +350 -0
- package/templates/skills/error-classification.md.template +709 -0
- package/templates/skills/error-messages.md.template +339 -0
- package/templates/skills/ide-diagnostics.md.template +480 -0
- package/templates/skills/incremental-loading.md.template +574 -0
- package/templates/skills/output-caching.md.template +524 -0
- package/templates/skills/performance-estimation.md.template +325 -0
- package/templates/skills/performance-testing-patterns.md.template +341 -0
- package/templates/skills/phase2-optimizations-summary.md.template +458 -0
- package/templates/skills/progressive-disclosure-pattern.md.template +190 -0
- package/templates/skills/project-structure.md.template +372 -0
- package/templates/skills/provenance-analysis.md.template +609 -0
- package/templates/skills/react-executor.md.template +366 -0
- package/templates/skills/refactoring-patterns.md.template +422 -0
- package/templates/skills/release-management.md.template +373 -0
- package/templates/skills/requirement-prioritization.md.template +357 -0
- package/templates/skills/schema-validation.md.template +321 -0
- package/templates/skills/security-design-patterns.md.template +692 -0
- package/templates/skills/security-vulnerability-scanning.md.template +663 -0
- package/templates/skills/semantic-memory.md.template +266 -0
- package/templates/skills/semantic-versioning.md.template +371 -0
- package/templates/skills/smart-retry.md.template +676 -0
- package/templates/skills/smart-summarization.md.template +358 -0
- package/templates/skills/story-decomposition.md.template +278 -0
- package/templates/skills/synchronization-patterns.md.template +303 -0
- package/templates/skills/test-generation-strategy.md.template +247 -0
- package/templates/skills/workflow-replay.md.template +478 -0
- package/templates/skills/wysiwid-principles.md.template +364 -0
- package/templates/skills-manifest.yaml.template +526 -0
- package/templates/stubs/agents/architecture-concept.md +20 -0
- package/templates/stubs/agents/checkpoint-concept.md +19 -0
- package/templates/stubs/agents/code-analysis-concept.md +36 -0
- package/templates/stubs/agents/context-concept.md +37 -0
- package/templates/stubs/agents/debate-advocate.md +12 -0
- package/templates/stubs/agents/debate-critic.md +12 -0
- package/templates/stubs/agents/debate-synthesis.md +12 -0
- package/templates/stubs/agents/documentation-concept.md +39 -0
- package/templates/stubs/agents/implementation-concept.md +41 -0
- package/templates/stubs/agents/quality-concept.md +41 -0
- package/templates/stubs/agents/research-concept.md +35 -0
- package/templates/stubs/agents/security-concept.md +40 -0
- package/templates/stubs/agents/spec-concept.md +35 -0
- package/templates/stubs/agents/story-concept.md +36 -0
- package/templates/stubs/agents/verification-concept.md +39 -0
- package/templates/stubs/agents/version-concept.md +37 -0
- package/templates/stubs/commands/cache.md.template +2 -0
- package/templates/stubs/commands/checkpoint.md.template +2 -0
- package/templates/stubs/commands/classify.md.template +2 -0
- package/templates/stubs/commands/compete.md.template +2 -0
- package/templates/stubs/commands/costs.md.template +2 -0
- package/templates/stubs/commands/estimate.md.template +2 -0
- package/templates/stubs/commands/explore.md.template +2 -0
- package/templates/stubs/commands/feature.md.template +2 -0
- package/templates/stubs/commands/forget.md.template +2 -0
- package/templates/stubs/commands/global-recall.md.template +2 -0
- package/templates/stubs/commands/global-remember.md.template +2 -0
- package/templates/stubs/commands/health.md.template +2 -0
- package/templates/stubs/commands/help.md.template +2 -0
- package/templates/stubs/commands/observe.md.template +2 -0
- package/templates/stubs/commands/pr-review.md.template +2 -0
- package/templates/stubs/commands/predict-cost.md.template +2 -0
- package/templates/stubs/commands/profile.md.template +2 -0
- package/templates/stubs/commands/reasoning.md.template +2 -0
- package/templates/stubs/commands/recall.md.template +2 -0
- package/templates/stubs/commands/remember.md.template +2 -0
- package/templates/stubs/commands/replay.md.template +2 -0
- package/templates/stubs/commands/restore.md.template +2 -0
- package/templates/stubs/commands/retrospective.md.template +2 -0
- package/templates/stubs/commands/slo.md.template +2 -0
- package/templates/stubs/commands/spec.md.template +2 -0
- package/templates/stubs/commands/sync.md.template +2 -0
- package/templates/stubs/commands/task.md.template +2 -0
- package/templates/stubs/commands/trace.md.template +2 -0
- package/templates/stubs/commands/visualize.md.template +2 -0
- package/templates/stubs/commands/workflow.md.template +2 -0
- package/templates/synchronizations/archive/adaptive-learning.yaml.template +595 -0
- package/templates/synchronizations/archive/code-understanding-flow.yaml.template +533 -0
- package/templates/synchronizations/archive/collaboration-flow.yaml.template +521 -0
- package/templates/synchronizations/archive/context-folding.yaml.template +353 -0
- package/templates/synchronizations/archive/dead-letter-queue.yaml.template +530 -0
- package/templates/synchronizations/archive/documentation-flow.yaml.template +560 -0
- package/templates/synchronizations/archive/error-recovery-flow.yaml.template +1031 -0
- package/templates/synchronizations/archive/execution-loop.yaml.template +336 -0
- package/templates/synchronizations/archive/exploration-flow.yaml.template +369 -0
- package/templates/synchronizations/archive/feature-development.yaml.template +2145 -0
- package/templates/synchronizations/archive/learning-loop.yaml.template +657 -0
- package/templates/synchronizations/archive/multi-verify.yaml.template +346 -0
- package/templates/synchronizations/archive/planning-flow.yaml.template +312 -0
- package/templates/synchronizations/archive/retrospective-flow.yaml.template +277 -0
- package/templates/synchronizations/archive/security-flow.yaml.template +477 -0
- package/templates/synchronizations/archive/slo-monitoring.yaml.template +209 -0
- package/templates/synchronizations/archive/task-routing.yaml.template +489 -0
- package/templates/synchronizations/archive/test-driven.yaml.template +291 -0
- package/templates/synchronizations/archive/tool-routing.yaml.template +326 -0
- package/templates/synchronizations/archive/verification-flow.yaml.template +407 -0
- package/templates/synchronizations/error-policy.yaml.template +188 -0
- package/templates/synchronizations/main.sync.template +319 -0
- package/templates/synchronizations/slo-registry.yaml.template +229 -0
- package/templates/tasks/task.yaml.template +67 -0
- package/templates/zen-profile.yaml.template +14 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
Manage the concept output cache for faster access and reduced file I/O.
|
|
2
|
+
|
|
3
|
+
The cache stores frequently accessed concept outputs in memory to achieve 95% hit rates and sub-100ms access times.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/cache --stats # View cache statistics
|
|
9
|
+
/cache --list # List all cached entries
|
|
10
|
+
/cache --clear [id] # Clear cache (all or specific entry)
|
|
11
|
+
/cache --enable # Enable caching (default)
|
|
12
|
+
/cache --disable # Disable caching
|
|
13
|
+
/cache --info <concept-id> # View details for specific entry
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
When you run this command, you should:
|
|
19
|
+
|
|
20
|
+
### /cache --stats
|
|
21
|
+
|
|
22
|
+
Show comprehensive cache statistics:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
26
|
+
Cache Statistics
|
|
27
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
28
|
+
|
|
29
|
+
Status: Enabled
|
|
30
|
+
Session: session-2025-11-10-19h00m00s
|
|
31
|
+
Memory Usage: 125 KB
|
|
32
|
+
|
|
33
|
+
Performance:
|
|
34
|
+
Total Requests: 367
|
|
35
|
+
Cache Hits: 348 (94.8%)
|
|
36
|
+
Cache Misses: 19 (5.2%)
|
|
37
|
+
Average Access Time: 6ms (hit), 102ms (miss)
|
|
38
|
+
|
|
39
|
+
Entries: 15 cached concepts
|
|
40
|
+
|
|
41
|
+
Top Accessed:
|
|
42
|
+
1. story-001 48 hits 8.2 KB Last: 2 min ago
|
|
43
|
+
2. arch-042 35 hits 15.1 KB Last: 1 min ago
|
|
44
|
+
3. impl-015 28 hits 22.3 KB Last: 30 sec ago
|
|
45
|
+
4. story-002 24 hits 7.8 KB Last: 5 min ago
|
|
46
|
+
5. review-003 18 hits 12.5 KB Last: 3 min ago
|
|
47
|
+
|
|
48
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
49
|
+
Recommendation: Cache performing optimally (>90% hit rate)
|
|
50
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### /cache --list
|
|
54
|
+
|
|
55
|
+
Show all cached entries:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
59
|
+
Cached Concept Outputs (15 entries)
|
|
60
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
61
|
+
|
|
62
|
+
Stories (5):
|
|
63
|
+
story-001 ready Cached 15 min ago 48 hits 8.2 KB
|
|
64
|
+
story-002 ready Cached 12 min ago 24 hits 7.8 KB
|
|
65
|
+
story-003 draft Cached 8 min ago 12 hits 6.9 KB
|
|
66
|
+
story-004 ready Cached 5 min ago 8 hits 8.5 KB
|
|
67
|
+
story-005 ready Cached 2 min ago 3 hits 7.2 KB
|
|
68
|
+
|
|
69
|
+
Architecture (4):
|
|
70
|
+
arch-042 completed Cached 14 min ago 35 hits 15.1 KB
|
|
71
|
+
arch-043 completed Cached 10 min ago 22 hits 14.8 KB
|
|
72
|
+
arch-044 completed Cached 6 min ago 15 hits 16.2 KB
|
|
73
|
+
arch-045 blocked Cached 3 min ago 7 hits 13.5 KB
|
|
74
|
+
|
|
75
|
+
Implementation (3):
|
|
76
|
+
impl-015 completed Cached 13 min ago 28 hits 22.3 KB
|
|
77
|
+
impl-016 completed Cached 9 min ago 20 hits 21.7 KB
|
|
78
|
+
impl-017 partial Cached 4 min ago 11 hits 18.9 KB
|
|
79
|
+
|
|
80
|
+
Quality Reviews (2):
|
|
81
|
+
review-003 approved Cached 11 min ago 18 hits 12.5 KB
|
|
82
|
+
review-004 approved Cached 7 min ago 14 hits 11.8 KB
|
|
83
|
+
|
|
84
|
+
Version (1):
|
|
85
|
+
branch-007 active Cached 1 min ago 5 hits 4.2 KB
|
|
86
|
+
|
|
87
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
88
|
+
Total Memory: 125 KB
|
|
89
|
+
Use `/cache --info <id>` for entry details
|
|
90
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### /cache --info <concept-id>
|
|
94
|
+
|
|
95
|
+
Show detailed information for specific entry:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
User: /cache --info story-001
|
|
99
|
+
|
|
100
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
101
|
+
Cache Entry: story-001
|
|
102
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
+
|
|
104
|
+
Concept Type: Story
|
|
105
|
+
Status: ready
|
|
106
|
+
File: koan/stories/story-001.yaml
|
|
107
|
+
|
|
108
|
+
Cache Info:
|
|
109
|
+
Loaded At: 2025-11-10 19:05:32
|
|
110
|
+
Last Access: 2025-11-10 19:20:15 (2 min ago)
|
|
111
|
+
Access Count: 48 hits
|
|
112
|
+
Memory Size: 8.2 KB
|
|
113
|
+
|
|
114
|
+
File Info:
|
|
115
|
+
Modified: 2025-11-10 19:05:30
|
|
116
|
+
Size: 8.4 KB (file), 8.2 KB (cached)
|
|
117
|
+
Compression: N/A (YAML cached as-is)
|
|
118
|
+
|
|
119
|
+
Cache Status: VALID
|
|
120
|
+
✓ File has not been modified since caching
|
|
121
|
+
✓ In-memory data matches file
|
|
122
|
+
✓ No invalidation needed
|
|
123
|
+
|
|
124
|
+
Data Summary:
|
|
125
|
+
story_id: story-001
|
|
126
|
+
title: "Add OAuth authentication"
|
|
127
|
+
status: "ready"
|
|
128
|
+
acceptance_criteria: 5 items
|
|
129
|
+
ambiguities: 0 items
|
|
130
|
+
|
|
131
|
+
Recent Access Pattern:
|
|
132
|
+
19:05 - Initial load (MISS)
|
|
133
|
+
19:07 - Architecture concept (HIT)
|
|
134
|
+
19:12 - Implementation concept (HIT)
|
|
135
|
+
19:15 - /sync evaluation (HIT)
|
|
136
|
+
19:18 - Quality review (HIT)
|
|
137
|
+
19:20 - /sync evaluation (HIT)
|
|
138
|
+
|
|
139
|
+
Performance:
|
|
140
|
+
Avg Access Time: 5ms (vs 100ms file read)
|
|
141
|
+
Speedup: 20x faster
|
|
142
|
+
Time Saved: 48 × 95ms = 4,560ms total
|
|
143
|
+
|
|
144
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### /cache --clear [id]
|
|
148
|
+
|
|
149
|
+
Clear cache entries:
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
# Clear all cache
|
|
153
|
+
User: /cache --clear
|
|
154
|
+
|
|
155
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
156
|
+
Clearing Cache
|
|
157
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
158
|
+
|
|
159
|
+
Removed 15 cache entries:
|
|
160
|
+
✓ 5 stories
|
|
161
|
+
✓ 4 architectures
|
|
162
|
+
✓ 3 implementations
|
|
163
|
+
✓ 2 quality reviews
|
|
164
|
+
✓ 1 version
|
|
165
|
+
|
|
166
|
+
Freed Memory: 125 KB
|
|
167
|
+
|
|
168
|
+
Cache cleared successfully.
|
|
169
|
+
Next access will reload from files.
|
|
170
|
+
|
|
171
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
172
|
+
|
|
173
|
+
# Clear specific entry
|
|
174
|
+
User: /cache --clear story-001
|
|
175
|
+
|
|
176
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
177
|
+
Clearing Cache Entry: story-001
|
|
178
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
179
|
+
|
|
180
|
+
Removed: story-001 (8.2 KB, 48 hits)
|
|
181
|
+
Reason: Manual clear
|
|
182
|
+
|
|
183
|
+
Entry will be reloaded on next access.
|
|
184
|
+
|
|
185
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### /cache --enable / --disable
|
|
189
|
+
|
|
190
|
+
Control caching:
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
User: /cache --disable
|
|
194
|
+
|
|
195
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
196
|
+
Caching Disabled
|
|
197
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
198
|
+
|
|
199
|
+
All concept outputs will be read directly from files.
|
|
200
|
+
Existing cache entries preserved but not used.
|
|
201
|
+
|
|
202
|
+
Performance impact:
|
|
203
|
+
- Sync evaluation: ~2,250ms (vs 450ms with cache)
|
|
204
|
+
- Repeated reads: 100ms each (vs 5ms with cache)
|
|
205
|
+
|
|
206
|
+
To re-enable: /cache --enable
|
|
207
|
+
|
|
208
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Cache Architecture
|
|
212
|
+
|
|
213
|
+
### Session-Based Caching
|
|
214
|
+
|
|
215
|
+
Cache lifetime matches Claude Code session:
|
|
216
|
+
- Created at session start
|
|
217
|
+
- Persists during session
|
|
218
|
+
- Cleared at session end
|
|
219
|
+
|
|
220
|
+
### Automatic Invalidation
|
|
221
|
+
|
|
222
|
+
Cache entries invalidated when:
|
|
223
|
+
- File modified (mtime changed)
|
|
224
|
+
- File deleted
|
|
225
|
+
- Manual clear command
|
|
226
|
+
- Session ends
|
|
227
|
+
|
|
228
|
+
### Cache Strategy
|
|
229
|
+
|
|
230
|
+
```yaml
|
|
231
|
+
1. Request concept output
|
|
232
|
+
2. Check cache:
|
|
233
|
+
- If cached AND file not modified → Return cached (HIT)
|
|
234
|
+
- If cached BUT file modified → Invalidate, reload, cache
|
|
235
|
+
- If not cached → Load, add to cache (MISS)
|
|
236
|
+
3. Increment hit counter
|
|
237
|
+
4. Return data
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Performance Benefits
|
|
241
|
+
|
|
242
|
+
### Sync Evaluation
|
|
243
|
+
|
|
244
|
+
**Without Cache**:
|
|
245
|
+
```
|
|
246
|
+
10 sync rules × 225ms = 2,250ms (2.25 seconds)
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**With Cache** (95% hit rate):
|
|
250
|
+
```
|
|
251
|
+
9 cache hits × 25ms = 225ms
|
|
252
|
+
1 cache miss × 225ms = 225ms
|
|
253
|
+
Total: 450ms
|
|
254
|
+
Speedup: 5x faster
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Repeated Access
|
|
258
|
+
|
|
259
|
+
**Without Cache**:
|
|
260
|
+
```
|
|
261
|
+
100 reads × 100ms = 10,000ms (10 seconds)
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
**With Cache**:
|
|
265
|
+
```
|
|
266
|
+
1 miss × 100ms = 100ms (initial)
|
|
267
|
+
99 hits × 5ms = 495ms
|
|
268
|
+
Total: 595ms
|
|
269
|
+
Speedup: 17x faster
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
## Use Cases
|
|
273
|
+
|
|
274
|
+
### 1. Sync Rule Evaluation
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# Sync checks 10 rules, each reading 2-3 state files
|
|
278
|
+
# Without cache: 2,250ms
|
|
279
|
+
# With cache: 450ms (5x faster)
|
|
280
|
+
|
|
281
|
+
/sync --execute
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### 2. Cross-Concept References
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
# Implementation reads story + architecture
|
|
288
|
+
# Quality reads story + architecture + implementation
|
|
289
|
+
# Without cache: 4 × 100ms = 400ms
|
|
290
|
+
# With cache: 300ms (first reads) + 3 × 5ms = 315ms
|
|
291
|
+
|
|
292
|
+
# Repeated workflow cycles benefit massively
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### 3. Interactive Development
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# Developer iterating on design
|
|
299
|
+
# Repeatedly checking story and architecture
|
|
300
|
+
# Each check: 5ms (cached) vs 200ms (uncached)
|
|
301
|
+
|
|
302
|
+
/feature "Update OAuth flow"
|
|
303
|
+
# Fast feedback loop
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
## When to Clear Cache
|
|
307
|
+
|
|
308
|
+
### Clear Entire Cache
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
# When encountering strange behavior
|
|
312
|
+
/cache --clear
|
|
313
|
+
|
|
314
|
+
# After bulk file modifications
|
|
315
|
+
/cache --clear
|
|
316
|
+
|
|
317
|
+
# When debugging cache issues
|
|
318
|
+
/cache --clear
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Clear Specific Entry
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
# After manually editing state file
|
|
325
|
+
/cache --clear story-001
|
|
326
|
+
|
|
327
|
+
# When file modified outside session
|
|
328
|
+
/cache --clear arch-042
|
|
329
|
+
|
|
330
|
+
# After error in concept execution
|
|
331
|
+
/cache --clear impl-015
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
## Troubleshooting
|
|
335
|
+
|
|
336
|
+
### Issue: Low Hit Rate
|
|
337
|
+
|
|
338
|
+
**Symptom**: Cache stats show <80% hit rate
|
|
339
|
+
|
|
340
|
+
**Diagnosis**:
|
|
341
|
+
```bash
|
|
342
|
+
/cache --stats
|
|
343
|
+
# Check if:
|
|
344
|
+
# - Files being modified frequently
|
|
345
|
+
# - Cache invalidation too aggressive
|
|
346
|
+
# - New files dominating access pattern
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
**Solution**:
|
|
350
|
+
```bash
|
|
351
|
+
# Normal for early in workflow (many new files)
|
|
352
|
+
# Should improve as workflow progresses
|
|
353
|
+
# Target: 90%+ for sync operations
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Issue: Stale Data
|
|
357
|
+
|
|
358
|
+
**Symptom**: Cached data doesn't match file
|
|
359
|
+
|
|
360
|
+
**Diagnosis**:
|
|
361
|
+
```bash
|
|
362
|
+
/cache --info story-001
|
|
363
|
+
# Check "Cache Status" section
|
|
364
|
+
# Verify file mtime vs cached mtime
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**Solution**:
|
|
368
|
+
```bash
|
|
369
|
+
# Clear and reload
|
|
370
|
+
/cache --clear story-001
|
|
371
|
+
|
|
372
|
+
# Check that file writes update mtime
|
|
373
|
+
# Ensure atomic file operations
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Issue: High Memory Usage
|
|
377
|
+
|
|
378
|
+
**Symptom**: Cache using excessive memory
|
|
379
|
+
|
|
380
|
+
**Diagnosis**:
|
|
381
|
+
```bash
|
|
382
|
+
/cache --stats
|
|
383
|
+
# Check "Memory Usage"
|
|
384
|
+
# Typical: 10-20 KB per entry
|
|
385
|
+
# Large files: 50-100 KB per entry
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
**Solution**:
|
|
389
|
+
```bash
|
|
390
|
+
# Clear old entries
|
|
391
|
+
/cache --clear
|
|
392
|
+
|
|
393
|
+
# Future: LRU eviction (Phase 3)
|
|
394
|
+
# Cache only summary sections if memory constrained
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
## Integration with Other Commands
|
|
398
|
+
|
|
399
|
+
### With /sync
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
# Sync benefits most from caching
|
|
403
|
+
/sync --execute
|
|
404
|
+
# Automatically uses cache for all state file reads
|
|
405
|
+
# 5x faster evaluation
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### With /trace
|
|
409
|
+
|
|
410
|
+
```bash
|
|
411
|
+
# Trace can show cache hits/misses
|
|
412
|
+
/trace flow-2025-11-10-19h00m00s
|
|
413
|
+
# Shows which reads were cached
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### With /replay
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
# Replay loads provenance from cache if available
|
|
420
|
+
/replay flow-2025-11-10-19h00m00s
|
|
421
|
+
# Faster replay with cached data
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
## Related Commands
|
|
425
|
+
|
|
426
|
+
- `/workflow` - Execute feature workflow with caching
|
|
427
|
+
- `/sync` - Evaluate synchronizations (uses cached state)
|
|
428
|
+
- `/trace` - View workflow provenance
|
|
429
|
+
- `/costs` - Analyze costs (includes cache savings)
|
|
430
|
+
|
|
431
|
+
## Related Skills
|
|
432
|
+
|
|
433
|
+
- **output-caching** - Complete caching skill documentation
|
|
434
|
+
- **incremental-loading** - Reduce context with targeted loading
|
|
435
|
+
- **smart-retry** - Retry strategies for cache operations
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
**Use this command**: To monitor cache performance, troubleshoot caching issues, or manually clear cache when needed. In normal operation, caching is automatic and requires no intervention.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: checkpoint
|
|
3
|
+
description: "Save a structured checkpoint that preserves intuition, not just facts"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /checkpoint Command
|
|
7
|
+
|
|
8
|
+
Save a checkpoint that captures reasoning, dead ends, and codebase intuition — everything needed to resume work after context compression with full understanding.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/checkpoint # Create checkpoint with auto-generated name
|
|
14
|
+
/checkpoint "feature-auth" # Create named checkpoint
|
|
15
|
+
/checkpoint --list # List available checkpoints
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Reflection Process
|
|
19
|
+
|
|
20
|
+
Before saving, ask yourself these questions silently (do NOT output them):
|
|
21
|
+
|
|
22
|
+
1. **What was the task?** — Summarize in one sentence what the user wanted.
|
|
23
|
+
2. **What did I learn?** — Insights about the codebase, patterns, or constraints that aren't obvious from reading files.
|
|
24
|
+
3. **What failed?** — Approaches I tried that didn't work, and why.
|
|
25
|
+
4. **What files matter?** — Which files would I need to re-read to rebuild my mental model?
|
|
26
|
+
5. **What's the user's style?** — Any preferences, communication patterns, or working style I noticed?
|
|
27
|
+
6. **What's next?** — If work resumes, what should happen first?
|
|
28
|
+
|
|
29
|
+
## Implementation Steps
|
|
30
|
+
|
|
31
|
+
### 1. Check for --list flag
|
|
32
|
+
|
|
33
|
+
If the user passed `--list`:
|
|
34
|
+
- Call `zen_checkpoint_list` with limit 20
|
|
35
|
+
- Display checkpoints with name, type, and creation time
|
|
36
|
+
- Stop here
|
|
37
|
+
|
|
38
|
+
### 2. Gather context through reflection
|
|
39
|
+
|
|
40
|
+
Silently reflect on the 6 questions above. Use the conversation history to populate:
|
|
41
|
+
- **task_state**: Current task description, phase, files modified, completed/pending items
|
|
42
|
+
- **decisions**: Key choices made with rationale
|
|
43
|
+
- **lessons**: Insights gained (the "aha" moments)
|
|
44
|
+
- **dead_ends**: What was tried and failed
|
|
45
|
+
- **warm_up_files**: Files critical to understanding (with reasons)
|
|
46
|
+
|
|
47
|
+
### 3. Write the restoration prompt
|
|
48
|
+
|
|
49
|
+
Write a first-person briefing as if speaking to your future self:
|
|
50
|
+
|
|
51
|
+
> "You were working on [task]. The key insight was [insight]. We chose [approach] because [reason]. Don't try [dead end] — it fails because [why]. The user prefers [style]. Next step: [action]."
|
|
52
|
+
|
|
53
|
+
### 4. Save the checkpoint
|
|
54
|
+
|
|
55
|
+
Call `zen_checkpoint_save` with structured parameters:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
zen_checkpoint_save({
|
|
59
|
+
name: "<user-provided or auto-generated>",
|
|
60
|
+
type: "manual",
|
|
61
|
+
data: {
|
|
62
|
+
task_state: {
|
|
63
|
+
description: "...",
|
|
64
|
+
current_phase: "...",
|
|
65
|
+
files_modified: [...],
|
|
66
|
+
completed: [...],
|
|
67
|
+
pending: [...]
|
|
68
|
+
},
|
|
69
|
+
decisions: [
|
|
70
|
+
{ decision: "...", rationale: "...", alternatives_considered: [...] }
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
lessons: [
|
|
74
|
+
{ insight: "...", context: "...", principle: "..." }
|
|
75
|
+
],
|
|
76
|
+
dead_ends: [
|
|
77
|
+
{ attempted: "...", why_it_failed: "...", lesson: "..." }
|
|
78
|
+
],
|
|
79
|
+
warm_up_files: [
|
|
80
|
+
{ path: "src/auth/oauth.ts", reason: "Core logic, complex control flow", sections: "lines 50-120" }
|
|
81
|
+
],
|
|
82
|
+
restoration_prompt: "You were working on..."
|
|
83
|
+
})
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 5. Update relationship memory
|
|
87
|
+
|
|
88
|
+
After saving the checkpoint, consider whether you learned anything new about working with the user:
|
|
89
|
+
- Communication preferences (terse vs. detailed, prefers examples, etc.)
|
|
90
|
+
- Technical preferences (frameworks, patterns, naming conventions)
|
|
91
|
+
- Workflow habits (likes planning first, prefers incremental commits, etc.)
|
|
92
|
+
|
|
93
|
+
If you observed new patterns, update `memory/relationship.md` in your auto-memory directory using the Edit tool. If the file doesn't exist, create it with the Write tool.
|
|
94
|
+
|
|
95
|
+
### 6. Confirm to user
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
Checkpoint saved: <name>
|
|
99
|
+
|
|
100
|
+
Captured:
|
|
101
|
+
- Task: <one-line summary>
|
|
102
|
+
- <N> lessons, <N> dead ends
|
|
103
|
+
- <N> warm-up files for restoration
|
|
104
|
+
- Restoration prompt written
|
|
105
|
+
|
|
106
|
+
Use /restore to rebuild context after compression.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Automatic Checkpoint Triggers
|
|
110
|
+
|
|
111
|
+
The framework prompts for checkpoints at these events:
|
|
112
|
+
- **Step completion** — Lightweight: note lessons and dead ends
|
|
113
|
+
- **Workflow completion** — Full checkpoint with all structured fields
|
|
114
|
+
- **Pre-compaction** — Hook saves automatic checkpoint (minimal, no reflection)
|
|
115
|
+
|
|
116
|
+
When you see a `checkpoint_prompt` in a `zen_advance_workflow` response, follow its guidance.
|
|
117
|
+
|
|
118
|
+
## Related Commands
|
|
119
|
+
|
|
120
|
+
- `/restore` — Rebuild context from a checkpoint
|
|
121
|
+
- `/health` — Check context health status
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# /classify Command
|
|
2
|
+
|
|
3
|
+
Classify a task and show which workflow will be used.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/classify "fix the login button"
|
|
9
|
+
/classify "add dark mode support"
|
|
10
|
+
/classify "refactor the auth module"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
This command analyzes a task description and:
|
|
16
|
+
1. Classifies it into a task type (bug-fix, refactor, feature, etc.)
|
|
17
|
+
2. Shows which workflow will be triggered
|
|
18
|
+
3. Displays expected duration and cost savings
|
|
19
|
+
4. Optionally routes to the appropriate workflow
|
|
20
|
+
|
|
21
|
+
## Process
|
|
22
|
+
|
|
23
|
+
When you run `/classify "<task>"`:
|
|
24
|
+
|
|
25
|
+
1. **Load Classification Rules**
|
|
26
|
+
```bash
|
|
27
|
+
cat .claude/synchronizations/task-routing.yaml
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
2. **Extract Keywords** from the task description
|
|
31
|
+
|
|
32
|
+
3. **Match Against Patterns**
|
|
33
|
+
- Check each classifier in order
|
|
34
|
+
- First match wins
|
|
35
|
+
- Default to full-feature if no match
|
|
36
|
+
|
|
37
|
+
4. **Display Classification Result**
|
|
38
|
+
|
|
39
|
+
## Output Format
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
43
|
+
Task Classification
|
|
44
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
+
|
|
46
|
+
Task: "fix the login button not responding"
|
|
47
|
+
|
|
48
|
+
Classification: BUG FIX
|
|
49
|
+
Matched pattern: "fix"
|
|
50
|
+
Confidence: HIGH
|
|
51
|
+
|
|
52
|
+
Workflow: bug-fix-flow
|
|
53
|
+
Phases: Story → Implementation → Quality → Version
|
|
54
|
+
Skipped: Architecture (not needed for bug fixes)
|
|
55
|
+
|
|
56
|
+
Expected Performance:
|
|
57
|
+
Duration: ~5 minutes (vs ~20 min full workflow)
|
|
58
|
+
Cost: ~$0.01 (vs ~$0.05 full workflow)
|
|
59
|
+
Savings: 75% faster, 80% cheaper
|
|
60
|
+
|
|
61
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
62
|
+
|
|
63
|
+
Proceed with bug-fix workflow? (y/n)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Classification Types
|
|
67
|
+
|
|
68
|
+
| Type | Patterns | Workflow | Savings |
|
|
69
|
+
|------|----------|----------|---------|
|
|
70
|
+
| Bug Fix | fix, bug, broken, error, crash | bug-fix-flow | 75% time, 80% cost |
|
|
71
|
+
| Refactor | refactor, cleanup, rename, reorganize | refactor-flow | 20% time (adds impact analysis) |
|
|
72
|
+
| Documentation | document, docs, readme, comment | documentation-flow | 85% time, 90% cost |
|
|
73
|
+
| Testing | test, spec, coverage, assert | testing-flow | 60% time, 70% cost |
|
|
74
|
+
| Performance | optimize, slow, speed, cache | performance-flow | Adds benchmarking |
|
|
75
|
+
| New Feature | add, create, implement, build | full-feature-flow | Baseline |
|
|
76
|
+
|
|
77
|
+
## Examples
|
|
78
|
+
|
|
79
|
+
### Bug Fix Classification
|
|
80
|
+
```
|
|
81
|
+
/classify "fix crash when user logs out"
|
|
82
|
+
|
|
83
|
+
Classification: BUG FIX
|
|
84
|
+
Workflow: bug-fix-flow (skips architecture)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Refactoring Classification
|
|
88
|
+
```
|
|
89
|
+
/classify "refactor the authentication module to use dependency injection"
|
|
90
|
+
|
|
91
|
+
Classification: REFACTORING
|
|
92
|
+
Workflow: refactor-flow (adds impact analysis via AST tools)
|
|
93
|
+
MCP Tools: ast-index.get_call_graph, ast-index.find_references
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### New Feature Classification
|
|
97
|
+
```
|
|
98
|
+
/classify "add support for OAuth2 authentication"
|
|
99
|
+
|
|
100
|
+
Classification: NEW FEATURE
|
|
101
|
+
Workflow: full-feature-flow (complete cycle)
|
|
102
|
+
MCP Tools: semantic-rag.semantic_search (find similar implementations)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Integration with /workflow
|
|
106
|
+
|
|
107
|
+
After classification, you can:
|
|
108
|
+
|
|
109
|
+
1. **Auto-route**: Let the system use the classified workflow
|
|
110
|
+
```
|
|
111
|
+
/workflow "fix the login button" # Auto-detects bug-fix-flow
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
2. **Override**: Force a specific workflow
|
|
115
|
+
```
|
|
116
|
+
/workflow --full "fix the login button" # Use full workflow anyway
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
3. **Preview only**: Just see classification without executing
|
|
120
|
+
```
|
|
121
|
+
/classify "fix the login button" # Shows classification, asks to proceed
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## WYSIWID Principle
|
|
125
|
+
|
|
126
|
+
The classification rules are defined in:
|
|
127
|
+
- `.claude/synchronizations/task-routing.yaml`
|
|
128
|
+
|
|
129
|
+
Reading that file tells you exactly how any task will be classified and routed.
|
|
130
|
+
No hidden logic - what you see is what it does.
|
|
131
|
+
|
|
132
|
+
## Logging
|
|
133
|
+
|
|
134
|
+
Classifications are logged to:
|
|
135
|
+
- `koan/routing/history.yaml` - All classification decisions
|
|
136
|
+
- `koan/routing/classification-{id}.yaml` - Individual classification details
|
|
137
|
+
|
|
138
|
+
This enables analysis of classification accuracy and workflow efficiency.
|