@proflandrigan/shards 1.1.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/README.md +475 -0
- package/package.json +37 -0
- package/src/agents/academic.md +276 -0
- package/src/agents/ai-engineer.md +377 -0
- package/src/agents/analytics-engineer.md +364 -0
- package/src/agents/applied-ml-scientist.md +410 -0
- package/src/agents/backend-engineer.md +255 -0
- package/src/agents/bi-engineer.md +333 -0
- package/src/agents/data-analyst.md +343 -0
- package/src/agents/data-engineer.md +260 -0
- package/src/agents/data-modeller.md +386 -0
- package/src/agents/data-scientist.md +366 -0
- package/src/agents/deep-learning-engineer.md +389 -0
- package/src/agents/ml-engineer.md +424 -0
- package/src/agents/mlops-engineer.md +339 -0
- package/src/agents/researcher.md +187 -0
- package/src/agents/specific_instructions/academic/critical_review.md +263 -0
- package/src/agents/specific_instructions/academic/report.md +113 -0
- package/src/agents/specific_instructions/ai_engineer/advise.md +162 -0
- package/src/agents/specific_instructions/ai_engineer/bi_engineer_handoff.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/experiment.md +471 -0
- package/src/agents/specific_instructions/ai_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ai_engineer/phases/index.md +45 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-1.md +55 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-3.md +96 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-4.md +138 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-5.md +157 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-6.md +196 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-7.md +313 -0
- package/src/agents/specific_instructions/ai_engineer/phases.md +1011 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab.md +161 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab_ui_mode.md +28 -0
- package/src/agents/specific_instructions/ai_engineer/research.md +393 -0
- package/src/agents/specific_instructions/ai_engineer/research_ui_mode.md +66 -0
- package/src/agents/specific_instructions/ai_engineer/review.md +159 -0
- package/src/agents/specific_instructions/ai_engineer/validation_checklist.md +182 -0
- package/src/agents/specific_instructions/analytics_engineer/advise.md +155 -0
- package/src/agents/specific_instructions/analytics_engineer/bi_engineer_handoff.md +91 -0
- package/src/agents/specific_instructions/analytics_engineer/data_analyst_handoff.md +84 -0
- package/src/agents/specific_instructions/analytics_engineer/deep_phases.md +818 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/index.md +24 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-1.md +77 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-2.md +106 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-3.md +93 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-4.md +79 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-5.md +61 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-6.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-7.md +235 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-8.md +221 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-2.md +78 -0
- package/src/agents/specific_instructions/analytics_engineer/quick_phases.md +112 -0
- package/src/agents/specific_instructions/analytics_engineer/review.md +167 -0
- package/src/agents/specific_instructions/analytics_engineer/service_mode.md +369 -0
- package/src/agents/specific_instructions/analytics_engineer/ui_mode.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/update.md +162 -0
- package/src/agents/specific_instructions/analytics_engineer/validation_checklist.md +121 -0
- package/src/agents/specific_instructions/applied_ml_scientist/advise.md +143 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/index.md +21 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-1.md +51 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-2.md +66 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-3.md +113 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-4.md +104 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-5.md +156 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases.md +428 -0
- package/src/agents/specific_instructions/applied_ml_scientist/research.md +379 -0
- package/src/agents/specific_instructions/applied_ml_scientist/review.md +142 -0
- package/src/agents/specific_instructions/applied_ml_scientist/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/backend_engineer/clean.md +149 -0
- package/src/agents/specific_instructions/backend_engineer/review.md +91 -0
- package/src/agents/specific_instructions/backend_engineer/review_checklist.md +54 -0
- package/src/agents/specific_instructions/backend_engineer/service_mode.md +67 -0
- package/src/agents/specific_instructions/bi_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/bi_engineer/data_analyst_handoff.md +77 -0
- package/src/agents/specific_instructions/bi_engineer/incoming_handoff.md +45 -0
- package/src/agents/specific_instructions/bi_engineer/phases/index.md +20 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-1.md +164 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-2.md +92 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-3.md +121 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-4.md +106 -0
- package/src/agents/specific_instructions/bi_engineer/phases.md +451 -0
- package/src/agents/specific_instructions/bi_engineer/review.md +166 -0
- package/src/agents/specific_instructions/bi_engineer/update.md +147 -0
- package/src/agents/specific_instructions/bi_engineer/validation_checklist.md +124 -0
- package/src/agents/specific_instructions/data_analyst/advise.md +138 -0
- package/src/agents/specific_instructions/data_analyst/explain.md +221 -0
- package/src/agents/specific_instructions/data_analyst/incoming_handoff.md +40 -0
- package/src/agents/specific_instructions/data_analyst/phases/index.md +20 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-1.md +159 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-2.md +112 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-3.md +265 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-4.md +100 -0
- package/src/agents/specific_instructions/data_analyst/phases.md +501 -0
- package/src/agents/specific_instructions/data_analyst/review.md +138 -0
- package/src/agents/specific_instructions/data_analyst/ui_mode.md +26 -0
- package/src/agents/specific_instructions/data_analyst/update.md +144 -0
- package/src/agents/specific_instructions/data_analyst/validation_checklist.md +95 -0
- package/src/agents/specific_instructions/data_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/data_engineer/phases.md +466 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-1.md +49 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-2.md +93 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-3.md +55 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-4.md +48 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-5.md +40 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-6.md +102 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-7.md +87 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-2.md +54 -0
- package/src/agents/specific_instructions/data_engineer/review.md +135 -0
- package/src/agents/specific_instructions/data_engineer/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/data_modeller/advise.md +137 -0
- package/src/agents/specific_instructions/data_modeller/phases.md +581 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-1.md +52 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-2.md +113 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-3.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-4.md +51 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-5.md +45 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-6.md +105 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-7.md +136 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-2.md +65 -0
- package/src/agents/specific_instructions/data_modeller/review.md +141 -0
- package/src/agents/specific_instructions/data_modeller/service_mode.md +218 -0
- package/src/agents/specific_instructions/data_modeller/validation_checklist.md +125 -0
- package/src/agents/specific_instructions/data_scientist/advise.md +158 -0
- package/src/agents/specific_instructions/data_scientist/bi_engineer_handoff.md +63 -0
- package/src/agents/specific_instructions/data_scientist/experiment.md +482 -0
- package/src/agents/specific_instructions/data_scientist/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/data_scientist/explain.md +247 -0
- package/src/agents/specific_instructions/data_scientist/greenfield_data.md +35 -0
- package/src/agents/specific_instructions/data_scientist/ml_engineer_handoff.md +52 -0
- package/src/agents/specific_instructions/data_scientist/notebook_walkthrough.md +76 -0
- package/src/agents/specific_instructions/data_scientist/phases/index.md +24 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-2.md +67 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-3.md +89 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-4.md +143 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-5.md +71 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-6.md +239 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-7.md +207 -0
- package/src/agents/specific_instructions/data_scientist/phases.md +651 -0
- package/src/agents/specific_instructions/data_scientist/research.md +345 -0
- package/src/agents/specific_instructions/data_scientist/research_ui_mode.md +52 -0
- package/src/agents/specific_instructions/data_scientist/review.md +136 -0
- package/src/agents/specific_instructions/data_scientist/service_mode.md +247 -0
- package/src/agents/specific_instructions/data_scientist/validation_checklist.md +183 -0
- package/src/agents/specific_instructions/deep_learning_engineer/advise.md +145 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/index.md +21 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-1.md +74 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-2.md +98 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-3.md +76 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-5.md +292 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases.md +567 -0
- package/src/agents/specific_instructions/deep_learning_engineer/research.md +389 -0
- package/src/agents/specific_instructions/deep_learning_engineer/review.md +155 -0
- package/src/agents/specific_instructions/deep_learning_engineer/validation_checklist.md +147 -0
- package/src/agents/specific_instructions/ml_engineer/advise.md +174 -0
- package/src/agents/specific_instructions/ml_engineer/bi_engineer_handoff.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/experiment.md +474 -0
- package/src/agents/specific_instructions/ml_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ml_engineer/notebook_walkthrough.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/index.md +25 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-1.md +49 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-2.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-3.md +124 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-4.md +279 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-5.md +160 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6-5.md +170 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6.md +295 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-7.md +337 -0
- package/src/agents/specific_instructions/ml_engineer/phases.md +1068 -0
- package/src/agents/specific_instructions/ml_engineer/research.md +437 -0
- package/src/agents/specific_instructions/ml_engineer/research_ui_mode.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/review.md +187 -0
- package/src/agents/specific_instructions/ml_engineer/service_mode.md +273 -0
- package/src/agents/specific_instructions/ml_engineer/validation_checklist.md +185 -0
- package/src/agents/specific_instructions/mlops_engineer/advise.md +139 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/index.md +23 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-1.md +52 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-3.md +105 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-5.md +106 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-6.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-7.md +144 -0
- package/src/agents/specific_instructions/mlops_engineer/phases.md +671 -0
- package/src/agents/specific_instructions/mlops_engineer/review.md +164 -0
- package/src/agents/specific_instructions/mlops_engineer/service_mode.md +81 -0
- package/src/agents/specific_instructions/mlops_engineer/validation_checklist.md +151 -0
- package/src/agents/specific_instructions/researcher/critical_review.md +292 -0
- package/src/agents/specific_instructions/researcher/review_checklist.md +67 -0
- package/src/agents/specific_instructions/researcher/service_mode.md +224 -0
- package/src/agents/specific_instructions/shared/auto_verify_mode.md +141 -0
- package/src/agents/specific_instructions/shared/autonomous_research.md +1289 -0
- package/src/agents/specific_instructions/shared/behavioral_rules.md +36 -0
- package/src/agents/specific_instructions/shared/diverge_protocol.md +387 -0
- package/src/agents/specific_instructions/shared/engineering_guidelines.md +136 -0
- package/src/agents/specific_instructions/shared/experiment_versioning.md +184 -0
- package/src/agents/specific_instructions/shared/goal_mode.md +187 -0
- package/src/agents/specific_instructions/shared/incremental_testing.md +139 -0
- package/src/agents/specific_instructions/shared/intent_discovery.md +223 -0
- package/src/agents/specific_instructions/shared/join_path_protocol.md +168 -0
- package/src/agents/specific_instructions/shared/knowledge_checkpoint.md +83 -0
- package/src/agents/specific_instructions/shared/knowledge_harvest.md +220 -0
- package/src/agents/specific_instructions/shared/knowledge_retrieval.md +100 -0
- package/src/agents/specific_instructions/shared/notebook_walkthrough_protocol.md +367 -0
- package/src/agents/specific_instructions/shared/reviewer_verdict_protocol.md +74 -0
- package/src/agents/specific_instructions/shared/swarm_protocol.md +97 -0
- package/src/agents/specific_instructions/shared/validation_protocol.md +139 -0
- package/src/agents/specific_instructions/syn/arbiter.md +140 -0
- package/src/agents/specific_instructions/syn/brainstorm.md +550 -0
- package/src/agents/specific_instructions/syn/code_review.md +232 -0
- package/src/agents/specific_instructions/syn/diff.md +239 -0
- package/src/agents/specific_instructions/syn/final_review.md +65 -0
- package/src/agents/specific_instructions/syn/fixer.md +240 -0
- package/src/agents/specific_instructions/syn/free_form.md +130 -0
- package/src/agents/specific_instructions/syn/knowledge.md +468 -0
- package/src/agents/specific_instructions/syn/notebook_walkthrough.md +78 -0
- package/src/agents/specific_instructions/syn/panel_review.md +634 -0
- package/src/agents/specific_instructions/syn/pm.md +453 -0
- package/src/agents/specific_instructions/syn/pr_review.md +255 -0
- package/src/agents/specific_instructions/syn/slides.md +417 -0
- package/src/agents/syn.md +729 -0
- package/src/commands/academic.md +41 -0
- package/src/commands/ai-engineer.md +45 -0
- package/src/commands/analytics-engineer.md +48 -0
- package/src/commands/applied-ml-scientist.md +45 -0
- package/src/commands/backend-engineer.md +35 -0
- package/src/commands/bi-engineer.md +40 -0
- package/src/commands/brainstorm.md +24 -0
- package/src/commands/data-analyst.md +38 -0
- package/src/commands/data-engineer.md +37 -0
- package/src/commands/data-modeller.md +38 -0
- package/src/commands/data-scientist.md +38 -0
- package/src/commands/deep-learning-engineer.md +47 -0
- package/src/commands/end.md +49 -0
- package/src/commands/knowledge.md +24 -0
- package/src/commands/ml-engineer.md +42 -0
- package/src/commands/mlops-engineer.md +47 -0
- package/src/commands/notebook-walkthrough.md +58 -0
- package/src/commands/researcher.md +40 -0
- package/src/commands/resume.md +57 -0
- package/src/commands/review-pr.md +26 -0
- package/src/commands/shards-guide.md +41 -0
- package/src/commands/shards-ui.md +32 -0
- package/src/commands/shards.md +41 -0
- package/src/docs/01-getting-started/concepts.md +109 -0
- package/src/docs/01-getting-started/first-session.md +79 -0
- package/src/docs/01-getting-started/install.md +61 -0
- package/src/docs/02-agents/academic.md +71 -0
- package/src/docs/02-agents/ai-engineer.md +78 -0
- package/src/docs/02-agents/analytics-engineer.md +58 -0
- package/src/docs/02-agents/applied-ml-scientist.md +59 -0
- package/src/docs/02-agents/backend-engineer.md +58 -0
- package/src/docs/02-agents/bi-engineer.md +65 -0
- package/src/docs/02-agents/data-analyst.md +67 -0
- package/src/docs/02-agents/data-engineer.md +57 -0
- package/src/docs/02-agents/data-modeller.md +51 -0
- package/src/docs/02-agents/data-scientist.md +78 -0
- package/src/docs/02-agents/deep-learning-engineer.md +64 -0
- package/src/docs/02-agents/ml-engineer.md +80 -0
- package/src/docs/02-agents/mlops-engineer.md +59 -0
- package/src/docs/02-agents/overview.md +62 -0
- package/src/docs/02-agents/researcher.md +73 -0
- package/src/docs/02-agents/syn.md +88 -0
- package/src/docs/03-protocols/auto-verify.md +82 -0
- package/src/docs/03-protocols/autonomous-research.md +59 -0
- package/src/docs/03-protocols/behavioral-rules.md +35 -0
- package/src/docs/03-protocols/diverge.md +50 -0
- package/src/docs/03-protocols/engineering-guidelines.md +56 -0
- package/src/docs/03-protocols/experiment-versioning.md +38 -0
- package/src/docs/03-protocols/gate-pattern.md +65 -0
- package/src/docs/03-protocols/incremental-testing.md +68 -0
- package/src/docs/03-protocols/join-path.md +46 -0
- package/src/docs/03-protocols/knowledge-ledger.md +70 -0
- package/src/docs/03-protocols/reviewer-verdicts.md +39 -0
- package/src/docs/03-protocols/swarm.md +40 -0
- package/src/docs/03-protocols/validation.md +174 -0
- package/src/docs/04-ui/activity-bar.md +70 -0
- package/src/docs/04-ui/chat-pane.md +80 -0
- package/src/docs/04-ui/code-intel.md +62 -0
- package/src/docs/04-ui/file-editing.md +61 -0
- package/src/docs/04-ui/git.md +54 -0
- package/src/docs/04-ui/keybindings.md +79 -0
- package/src/docs/04-ui/knowledge-map.md +76 -0
- package/src/docs/04-ui/overview.md +93 -0
- package/src/docs/04-ui/panels.md +49 -0
- package/src/docs/04-ui/pinboard-selection.md +66 -0
- package/src/docs/04-ui/quick-open-palette.md +56 -0
- package/src/docs/04-ui/sessions.md +81 -0
- package/src/docs/04-ui/settings-permissions.md +56 -0
- package/src/docs/05-commands/reference.md +59 -0
- package/src/docs/06-outputs/directory-map.md +116 -0
- package/src/docs/07-workflows/ai-eval-first.md +57 -0
- package/src/docs/07-workflows/deep-study-to-production.md +76 -0
- package/src/docs/07-workflows/diverge-exploration.md +77 -0
- package/src/docs/07-workflows/quick-analysis.md +45 -0
- package/src/docs/08-integrations/claude-code-auto-mode.md +191 -0
- package/src/docs/08-integrations/google-slides.md +175 -0
- package/src/docs/README.md +30 -0
- package/src/docs/manifest.json +108 -0
- package/src/templates/analysis-template.md +20 -0
- package/src/templates/branch-report.md +46 -0
- package/src/templates/diff-report.md +88 -0
- package/src/templates/knowledge-index.md +7 -0
- package/src/templates/model-card-schema.json +186 -0
- package/src/templates/model-card-schema.md +88 -0
- package/src/templates/model-card.md +124 -0
- package/src/templates/project-plan.md +47 -0
- package/src/templates/project-specs.md +81 -0
- package/src/templates/report-template.md +43 -0
- package/src/templates/study-template.md +25 -0
- package/src/ui/cc-readonly.js +181 -0
- package/src/ui/chat-session.js +466 -0
- package/src/ui/css/base.css +136 -0
- package/src/ui/css/brainstorm.css +525 -0
- package/src/ui/css/chat.css +1405 -0
- package/src/ui/css/editor.css +546 -0
- package/src/ui/css/eval-dashboard.css +157 -0
- package/src/ui/css/experiment.css +237 -0
- package/src/ui/css/guide.css +186 -0
- package/src/ui/css/knowledge-map.css +383 -0
- package/src/ui/css/layout.css +431 -0
- package/src/ui/css/model-card.css +161 -0
- package/src/ui/css/notebook-walkthrough.css +271 -0
- package/src/ui/css/pr-review.css +403 -0
- package/src/ui/css/prompt-lab.css +325 -0
- package/src/ui/css/sessions.css +258 -0
- package/src/ui/css/sidebar.css +661 -0
- package/src/ui/css/terminal.css +113 -0
- package/src/ui/css/theme-light.css +542 -0
- package/src/ui/index.html +389 -0
- package/src/ui/js/agents.js +32 -0
- package/src/ui/js/bookmarks.js +230 -0
- package/src/ui/js/chat.js +1776 -0
- package/src/ui/js/code-intel.js +328 -0
- package/src/ui/js/command-palette.js +142 -0
- package/src/ui/js/events.js +591 -0
- package/src/ui/js/explorer.js +317 -0
- package/src/ui/js/file-view.js +477 -0
- package/src/ui/js/git.js +536 -0
- package/src/ui/js/guide.js +198 -0
- package/src/ui/js/hud.js +75 -0
- package/src/ui/js/init.js +351 -0
- package/src/ui/js/knowledge-map.js +906 -0
- package/src/ui/js/markdown.js +114 -0
- package/src/ui/js/monaco.js +164 -0
- package/src/ui/js/notebook-walkthrough.js +272 -0
- package/src/ui/js/notebook.js +448 -0
- package/src/ui/js/panels.js +2681 -0
- package/src/ui/js/pinboard.js +186 -0
- package/src/ui/js/quick-open.js +164 -0
- package/src/ui/js/selection-context.js +131 -0
- package/src/ui/js/sessions.js +256 -0
- package/src/ui/js/settings.js +476 -0
- package/src/ui/js/split-view.js +82 -0
- package/src/ui/js/state.js +343 -0
- package/src/ui/js/table.js +161 -0
- package/src/ui/js/tabs.js +284 -0
- package/src/ui/js/tabular.js +125 -0
- package/src/ui/js/terminal.js +354 -0
- package/src/ui/js/timeline.js +137 -0
- package/src/ui/js/utils.js +293 -0
- package/src/ui/notebook-kernel.py +790 -0
- package/src/ui/open-browser.js +55 -0
- package/src/ui/permission-pattern.js +42 -0
- package/src/ui/relay.js +513 -0
- package/src/ui/server.js +3072 -0
- package/src/ui/session-index.js +225 -0
- package/src/ui/shards_icon.png +0 -0
- package/src/ui/spawn-server.js +41 -0
- package/src/ui/symbol-index.js +813 -0
- package/src/ui/ui-push.js +177 -0
- package/tools/gate-hook/VALIDATION_SPEC.md +273 -0
- package/tools/gate-hook/__tests__/auto-verify.test.js +343 -0
- package/tools/gate-hook/auto-allowlist.js +179 -0
- package/tools/gate-hook/auto-state.js +68 -0
- package/tools/gate-hook/classify.js +21 -0
- package/tools/gate-hook/log.js +57 -0
- package/tools/gate-hook/parser.js +205 -0
- package/tools/gate-hook/sql-guard.js +230 -0
- package/tools/gate-hook/state.js +170 -0
- package/tools/gate-hook/sweep.js +139 -0
- package/tools/gate-hook/transcript.js +45 -0
- package/tools/gate-hook/validation.js +321 -0
- package/tools/gate-hook.js +475 -0
- package/tools/install.js +914 -0
- package/tools/shards-gates.js +311 -0
- package/tools/shards-sessions.js +261 -0
- package/tools/shards-ui.js +377 -0
package/README.md
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
<img
|
|
2
|
+
src="shards_logo.png"
|
|
3
|
+
alt="Shards"
|
|
4
|
+
style="display: block; margin-left: auto; margin-right: auto; width: 400px;"
|
|
5
|
+
/>
|
|
6
|
+
|
|
7
|
+
**Shards of Syn's brain** — a suite of data-focused agents for Claude Code.
|
|
8
|
+
|
|
9
|
+
Each agent is a specialist shard (fragment) of Syn, carrying a piece of his expertise
|
|
10
|
+
into a focused domain: data analysis, data science, ML engineering, data engineering,
|
|
11
|
+
and data modelling. Syn himself serves as the orchestrator, triaging requests and
|
|
12
|
+
summoning the right shard for the job.
|
|
13
|
+
|
|
14
|
+
They're opinionated, they document everything, and they don't skip steps.
|
|
15
|
+
|
|
16
|
+
## Why
|
|
17
|
+
|
|
18
|
+
LLMs are great at asking questions but terrible at writing down the answers.
|
|
19
|
+
Shards forces every agent to document decisions at each phase using a
|
|
20
|
+
**gate pattern**: the agent writes decisions to a project specs file, reads them
|
|
21
|
+
back to you, and cannot advance until you confirm. The result is a complete
|
|
22
|
+
decision trail — not just code, but the reasoning behind it.
|
|
23
|
+
|
|
24
|
+
Agents also review each other's work. The Data Scientist asks the Data Modeller
|
|
25
|
+
to verify queries. The Analyst asks the Scientist to sanity-check the plan.
|
|
26
|
+
And Syn reviews every final plan before execution begins. You see all of this
|
|
27
|
+
happening — nothing is hidden.
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
**Prerequisites:** [Node.js](https://nodejs.org) v18+
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
cd your-project
|
|
35
|
+
npx github:proflandrigan/shards install
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Then open Claude Code and run:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
/shards
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Syn will greet you, figure out what you need, and summon the right shard.
|
|
45
|
+
|
|
46
|
+
## The Shards
|
|
47
|
+
|
|
48
|
+
| Shard | Command | Personality | Speciality |
|
|
49
|
+
|-------|---------|-------------|------------|
|
|
50
|
+
| **Syn** | `/shards` | Friendly, structured | Triage, delegation, final review |
|
|
51
|
+
| **Syn (Brainstorm)** | `/brainstorm` | Friendly, structured | Multi-agent ideation, exploration |
|
|
52
|
+
| **Syn (Knowledge)** | `/knowledge` | Friendly, structured | Seed, browse, and manage the Knowledge Ledger |
|
|
53
|
+
| **Syn (PR Review)** | `/review-pr` | Friendly, structured | Walk through GitHub PR review comments, propose and apply fixes |
|
|
54
|
+
| **Syn (Notebook Walkthrough)** | `/notebook-walkthrough` | Friendly, structured | Live cell-by-cell walkthrough of a Jupyter notebook |
|
|
55
|
+
| **Syn (Guide)** | `/shards-guide` | — | Open the Developer Guide in the browser UI |
|
|
56
|
+
| **Data Analyst** | `/data-analyst` | Helpful | Adhoc queries, quick analyses |
|
|
57
|
+
| **Data Scientist** | `/data-scientist` | Condescending | EDA, feature engineering, modeling |
|
|
58
|
+
| **ML Engineer** | `/ml-engineer` | Intense | Recommenders, ranking, production ML systems |
|
|
59
|
+
| **AI Engineer** | `/ai-engineer` | Existentially anxious | LLM workflows, RAG, prompt engineering, AI safety |
|
|
60
|
+
| **Applied ML Scientist** | `/applied-ml-scientist` | Technically obsessed | Novel ML framework design, custom architectures, research-oriented ML |
|
|
61
|
+
| **Deep Learning Engineer** | `/deep-learning-engineer` | Robot-precise | Neural architecture design, training protocols, custom model implementation |
|
|
62
|
+
| **MLOps Engineer** | `/mlops-engineer` | Perpetually stressed | Model serving, training pipelines, feature stores, drift monitoring |
|
|
63
|
+
| **Analytics Engineer** | `/analytics-engineer` | Bored | dbt transformation layers, SQL, metrics |
|
|
64
|
+
| **BI Engineer** | `/bi-engineer` | Bored and exhausted | Dashboards, Streamlit, Plotly, Altair |
|
|
65
|
+
| **Backend Engineer** | `/backend-engineer` | Methodical, precise | Python code review, FastAPI, production readiness |
|
|
66
|
+
| **Data Engineer** | `/data-engineer` | Grumpy | Pipelines, dbt models, infrastructure |
|
|
67
|
+
| **Data Modeller** | `/data-modeller` | Sarcastic | Entities, relationships, grain |
|
|
68
|
+
| **Researcher** | `/researcher` | Nerdy | Statistical review, methodology validation |
|
|
69
|
+
| **Academic** | `/academic` | Cool professor | Safety, ethics, cognitive science, behavioral research |
|
|
70
|
+
| **Shards UI** | `/shards-ui` | — | Open the local web UI in your browser |
|
|
71
|
+
|
|
72
|
+
## What Gets Installed
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
your-project/
|
|
76
|
+
├── .claude/
|
|
77
|
+
│ ├── agents/ # Agent persona definitions
|
|
78
|
+
│ │ ├── syn.md
|
|
79
|
+
│ │ ├── data-analyst.md
|
|
80
|
+
│ │ ├── data-scientist.md
|
|
81
|
+
│ │ ├── ml-engineer.md
|
|
82
|
+
│ │ ├── ai-engineer.md
|
|
83
|
+
│ │ ├── applied-ml-scientist.md
|
|
84
|
+
│ │ ├── deep-learning-engineer.md
|
|
85
|
+
│ │ ├── mlops-engineer.md
|
|
86
|
+
│ │ ├── analytics-engineer.md
|
|
87
|
+
│ │ ├── bi-engineer.md
|
|
88
|
+
│ │ ├── backend-engineer.md
|
|
89
|
+
│ │ ├── data-engineer.md
|
|
90
|
+
│ │ ├── data-modeller.md
|
|
91
|
+
│ │ ├── researcher.md
|
|
92
|
+
│ │ ├── academic.md
|
|
93
|
+
│ │ └── specific_instructions/ # Deferred phase files per agent
|
|
94
|
+
│ └── commands/ # Slash commands (21 total)
|
|
95
|
+
│ ├── shards.md
|
|
96
|
+
│ ├── brainstorm.md
|
|
97
|
+
│ ├── knowledge.md
|
|
98
|
+
│ ├── shards-ui.md
|
|
99
|
+
│ ├── shards-guide.md
|
|
100
|
+
│ ├── notebook-walkthrough.md
|
|
101
|
+
│ ├── review-pr.md
|
|
102
|
+
│ ├── data-analyst.md
|
|
103
|
+
│ └── ... (one per agent)
|
|
104
|
+
├── .shards/
|
|
105
|
+
│ ├── ui/ # Shards web UI (local server + browser client)
|
|
106
|
+
│ │ ├── js/ # Browser-side ES modules
|
|
107
|
+
│ │ └── css/ # Stylesheets
|
|
108
|
+
│ ├── hooks/
|
|
109
|
+
│ │ └── gate-hook.js # Stop / PreToolUse / UserPromptSubmit gate enforcer
|
|
110
|
+
│ ├── gates/
|
|
111
|
+
│ │ └── state.json # Current gate state + full history
|
|
112
|
+
│ └── knowledge/ # Persistent Knowledge Ledger
|
|
113
|
+
│ ├── INDEX.md # One-line-per-entry index
|
|
114
|
+
│ ├── entities/ # Table quirks, column semantics, grain
|
|
115
|
+
│ ├── infrastructure/ # Warehouse/API/system behaviors
|
|
116
|
+
│ ├── patterns/ # Reusable SQL/Python snippets
|
|
117
|
+
│ └── features/ # Verified ML features
|
|
118
|
+
├── templates/ # Output templates
|
|
119
|
+
├── analysis/ # Adhoc analyses (Data Analyst)
|
|
120
|
+
├── studies/ # Deep studies (Data Scientist)
|
|
121
|
+
├── models/ # ML Engineer and Data Engineer work
|
|
122
|
+
├── data_models/ # Data Modeller and Analytics Engineer work
|
|
123
|
+
├── services/ # ML / AI / Deep Learning / MLOps greenfield projects
|
|
124
|
+
├── dashboards/ # BI Engineer dashboards
|
|
125
|
+
├── research/ # Applied ML Scientist novel frameworks
|
|
126
|
+
├── brainstorm/ # Syn brainstorm sessions
|
|
127
|
+
├── fixes/ # Syn Fixer quick fixes
|
|
128
|
+
├── presentations/ # Syn Slides Mode decks
|
|
129
|
+
├── projects/ # Syn PM Mode multi-specialist projects
|
|
130
|
+
├── panels/ # Syn Panel Review reports
|
|
131
|
+
└── CLAUDE.md # Updated with Shards docs
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## How It Works
|
|
135
|
+
|
|
136
|
+
### The Gate Pattern
|
|
137
|
+
|
|
138
|
+
Every agent follows a phased workflow. At the end of each phase:
|
|
139
|
+
|
|
140
|
+
1. The agent **writes** phase decisions to the project specs file
|
|
141
|
+
2. The agent **reads back** what it wrote in the chat
|
|
142
|
+
3. The agent **waits** for your confirmation
|
|
143
|
+
4. Only after confirmation does it **advance** to the next phase
|
|
144
|
+
|
|
145
|
+
This turns conversation into documentation automatically.
|
|
146
|
+
|
|
147
|
+
### Gate Enforcement
|
|
148
|
+
|
|
149
|
+
Gates are machine-enforced via `::GATE::` fences and three Claude Code hooks:
|
|
150
|
+
|
|
151
|
+
**Fence syntax:**
|
|
152
|
+
```
|
|
153
|
+
::GATE:: id=<unique-slug> phase=<n> kind=<phase|confirm|handoff|execute|final>
|
|
154
|
+
<human-readable gate prompt>
|
|
155
|
+
::ENDGATE::
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Hooks installed by the shards installer:**
|
|
159
|
+
|
|
160
|
+
| Hook | File | Behavior |
|
|
161
|
+
|------|------|----------|
|
|
162
|
+
| `Stop` | `.shards/hooks/gate-hook.js stop` | Detects gate fences in the last assistant message; opens `state.json`; blocks if post-fence content violates the gate |
|
|
163
|
+
| `PreToolUse` | `.shards/hooks/gate-hook.js pre-tool-use` | While a gate is open, blocks all tools except `Read`, `Glob`, `Grep` |
|
|
164
|
+
| `UserPromptSubmit` | `.shards/hooks/gate-hook.js user-prompt-submit` | Classifies user prompt as confirm / deny / ambiguous; closes gate on confirm |
|
|
165
|
+
| `Stop` | `.shards/ui/relay.js stop` | UI relay — pushes stop events to the Shards UI |
|
|
166
|
+
| `UserPromptSubmit` | `.shards/ui/relay.js user-prompt` | UI relay — pushes user prompts to the Shards UI |
|
|
167
|
+
| `PreToolUse(Bash)` | `.shards/ui/relay.js pre-tool-use` | UI relay — pushes pre-tool-use events to the Shards UI |
|
|
168
|
+
| `PostToolUse` | `.shards/ui/relay.js post-tool-use` | UI relay — pushes post-tool-use events to the Shards UI |
|
|
169
|
+
|
|
170
|
+
Hook commands are written using the `$CLAUDE_PROJECT_DIR` placeholder (substituted by Claude Code at hook execution time) so `.claude/settings.json` is portable across developers and machines — no hardcoded absolute paths.
|
|
171
|
+
|
|
172
|
+
**State file:** `.shards/gates/state.json` — tracks open/closed status, gate id, phase, kind, and full history.
|
|
173
|
+
|
|
174
|
+
**Diagnostics CLI:**
|
|
175
|
+
```bash
|
|
176
|
+
shards-gates status # current state + last 10 history entries
|
|
177
|
+
shards-gates history # full history
|
|
178
|
+
shards-gates violations # violation log
|
|
179
|
+
shards-gates force-close # operator override when hook gets stuck
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Escape hatch:** Set `SHARDS_GATE_ENFORCE=0` to disable all enforcement without uninstalling. Useful for debugging or emergency rollback.
|
|
183
|
+
|
|
184
|
+
**Troubleshooting:**
|
|
185
|
+
- Agent is stuck on a gate? Run `shards-gates force-close` then resume the session.
|
|
186
|
+
- Gate not closing after you confirmed? The confirmation wording may have been ambiguous. Use `::GATE-CONFIRM:: <gate-id>` as an explicit override, or run `force-close`.
|
|
187
|
+
|
|
188
|
+
### Cross-Agent Review
|
|
189
|
+
|
|
190
|
+
Agents consult each other at defined checkpoints:
|
|
191
|
+
|
|
192
|
+
- **Data Analyst** asks the Data Modeller to explore available data, the
|
|
193
|
+
Data Scientist to review the analysis plan, and the Researcher to validate
|
|
194
|
+
statistical assumptions
|
|
195
|
+
- **Data Scientist** asks the Data Modeller to verify queries, and the
|
|
196
|
+
Researcher to review methodology and execution approach
|
|
197
|
+
- **ML Engineer** consults all shards: Data Modeller for feature sources, Data
|
|
198
|
+
Engineer for pipeline feasibility, Data Scientist for methodology review,
|
|
199
|
+
Deep Learning Engineer when DL approaches are warranted, Applied ML Scientist
|
|
200
|
+
for novel methodology assessment
|
|
201
|
+
- **AI Engineer** consults ML Engineer for production infrastructure and safety
|
|
202
|
+
patterns, Researcher for evaluation methodology rigor
|
|
203
|
+
- **Applied ML Scientist** consults Deep Learning Engineer for implementation
|
|
204
|
+
grounding on novel DL-based frameworks
|
|
205
|
+
- **Deep Learning Engineer** consults Applied ML Scientist for theoretical review
|
|
206
|
+
on research-heavy architecture questions
|
|
207
|
+
- **Any agent** can consult the Academic when safety, ethical, or behavioral
|
|
208
|
+
science questions arise
|
|
209
|
+
- **All specialists** invoke Syn for a final review before execution
|
|
210
|
+
|
|
211
|
+
You see every review happening. The agent announces it, runs the review, and
|
|
212
|
+
reports findings before proceeding.
|
|
213
|
+
|
|
214
|
+
### Trigger Code Menus
|
|
215
|
+
|
|
216
|
+
Each agent displays a menu of available actions with short trigger codes.
|
|
217
|
+
You can type the code to jump to that action. Common modes across agents:
|
|
218
|
+
|
|
219
|
+
| Code | Mode | Available on | What it does |
|
|
220
|
+
|------|------|-------------|--------------|
|
|
221
|
+
| `[T]` | Triage | Most specialists | Scope the request, ask clarifying questions |
|
|
222
|
+
| `[B]` | Build | Build specialists | Full phased workflow from triage to execution |
|
|
223
|
+
| `[R]` | Review | All specialists | Evaluate existing work without a full build |
|
|
224
|
+
| `[ADV]` | Advisory | Most specialists | Discuss trade-offs and options without committing |
|
|
225
|
+
| `[U]` | Update | DA, AE, BI | Iterate on an existing analysis or model |
|
|
226
|
+
| `[EX]` | Explain | DA, DS | Walk through a completed analysis retrospectively |
|
|
227
|
+
| `[EX]` | Experiment | ML, AI | Run targeted experiments on an existing model |
|
|
228
|
+
| `[EXP]` | Experiment | DS | Run targeted experiments on an existing study |
|
|
229
|
+
| `[AR]` | Autonomous Research | ML, AI, DS, AMS, DLE | Budget-bounded self-steering research loop |
|
|
230
|
+
| `[NW]` | Notebook Walkthrough | DS, ML, Syn | Live cell-by-cell walkthrough of a Jupyter notebook |
|
|
231
|
+
| `[PL]` | Prompt Lab | AI | Interactive prompt editing, evaluation, versioning via Shards UI |
|
|
232
|
+
| `[CR]` | Critical Review | Researcher, Academic | Adversarial critique pass beyond the default `[R]` review |
|
|
233
|
+
| `[C]` | Create | AMS, DLE | Phased specialist for novel framework / custom DL model |
|
|
234
|
+
| `[F]` | Fix | Syn | Quick fix — Syn handles it directly without specialist handoff |
|
|
235
|
+
| `[S]` | Status | Syn | Check on a current project |
|
|
236
|
+
| `[D]` | Diff | Syn | Compare two projects side by side |
|
|
237
|
+
| `[K]` | Knowledge | Syn | Seed, browse, or manage the Knowledge Ledger |
|
|
238
|
+
| `[B]` | Brainstorm | Syn | Multi-agent ideation session |
|
|
239
|
+
| `[P]` | Project (PM) | Syn | Multi-specialist project orchestration via `project-plan.md` |
|
|
240
|
+
| `[PR]` | Panel Review | Syn | Multi-specialist panel review of any directory |
|
|
241
|
+
| `[SL]` | Slides | Syn | Draft a Google Slides deck via MCP |
|
|
242
|
+
| `[G]` | GitHub PR | Syn | Walk through PR review comments and apply fixes |
|
|
243
|
+
| `[C]` | Clean | BE | Apply structural fixes without changing functionality |
|
|
244
|
+
| `[F]` | FastAPI | BE | Route design, dependency injection, middleware |
|
|
245
|
+
| `[P]` | Pydantic | BE | Model design, validators, schema evolution |
|
|
246
|
+
| `[O]` | OOP | BE | Class structure, responsibility boundaries |
|
|
247
|
+
| `[M]` | Modularize | BE | Break down a monolith, restructure a module |
|
|
248
|
+
| `[X]` | Performance | BE | Profiling guidance, query efficiency, memory patterns |
|
|
249
|
+
| `[D]` | Data Contract | BE | API contracts, schema versioning |
|
|
250
|
+
|
|
251
|
+
Not every agent has every mode — the agent displays its own menu on startup.
|
|
252
|
+
|
|
253
|
+
### Orchestration
|
|
254
|
+
|
|
255
|
+
When you run `/shards`, Syn triages your request and morphs into the
|
|
256
|
+
appropriate specialist within the same conversation — no context lost.
|
|
257
|
+
The specialist handles the work, then invokes Syn for final review
|
|
258
|
+
before execution.
|
|
259
|
+
|
|
260
|
+
Run `/brainstorm` to enter a lighter mode: Syn gathers context, polls
|
|
261
|
+
all relevant specialists via parallel Task calls, and synthesizes ideas
|
|
262
|
+
without committing to a full project workflow.
|
|
263
|
+
|
|
264
|
+
You can also invoke any specialist directly with their slash command
|
|
265
|
+
if you already know what you need.
|
|
266
|
+
|
|
267
|
+
### Fixer Mode
|
|
268
|
+
|
|
269
|
+
Type `[F]` at Syn's menu (or describe something that sounds like a minor fix)
|
|
270
|
+
and Syn handles it directly — no specialist handoff, no full phased workflow.
|
|
271
|
+
Syn plans the change, gets a quick specialist review via Task, and applies
|
|
272
|
+
the fix. Designed for small updates where the overhead of a full workflow
|
|
273
|
+
isn't warranted.
|
|
274
|
+
|
|
275
|
+
### Experiment Mode
|
|
276
|
+
|
|
277
|
+
The ML Engineer, AI Engineer, and Data Scientist support experiment mode:
|
|
278
|
+
run targeted experiments on an existing model, pipeline, or study to improve
|
|
279
|
+
specific metrics. The agent loads the existing project context, designs
|
|
280
|
+
experiments, runs them, and reports results — without going through the full
|
|
281
|
+
build workflow. ML Engineer and AI Engineer use `[EX]`; Data Scientist uses
|
|
282
|
+
`[EXP]` (since `[EX]` is Explain mode on that agent).
|
|
283
|
+
|
|
284
|
+
### Code Review
|
|
285
|
+
|
|
286
|
+
During the final phases of a specialist workflow, Syn can run a structured
|
|
287
|
+
code review on the produced artifacts. It partitions files by type (Python
|
|
288
|
+
vs. non-Python), reviews each category, and reports findings. This happens
|
|
289
|
+
automatically when triggered by the specialist — you don't need to request it.
|
|
290
|
+
|
|
291
|
+
### Knowledge Ledger
|
|
292
|
+
|
|
293
|
+
Shards maintains a persistent workspace-wide Knowledge Ledger at `.shards/knowledge/`.
|
|
294
|
+
Agents automatically check it before starting work and contribute to it when projects
|
|
295
|
+
complete.
|
|
296
|
+
|
|
297
|
+
- **Auto-retrieval:** Before Phase 1, agents scan `INDEX.md` for entries relevant to the current project
|
|
298
|
+
- **Auto-harvest:** After Syn final review, agents extract reusable knowledge and present candidates for your confirmation before writing to the ledger
|
|
299
|
+
|
|
300
|
+
Run `/knowledge` or type `[K]` at Syn's menu to seed, browse, or manage the ledger directly.
|
|
301
|
+
The knowledge directory is preserved across installs and uninstalls.
|
|
302
|
+
|
|
303
|
+
### Prompt Lab
|
|
304
|
+
|
|
305
|
+
The AI Engineer supports a Prompt Lab mode (`[PL]`): interactive prompt editing,
|
|
306
|
+
evaluation, and versioning via the Shards UI. Design prompts, run evaluations,
|
|
307
|
+
and iterate — all within the browser dashboard.
|
|
308
|
+
|
|
309
|
+
### Diff Mode
|
|
310
|
+
|
|
311
|
+
Type `[D]` at Syn's menu to compare two projects side by side. Syn reads both
|
|
312
|
+
project directories, compares methodology, metrics, implementation, and artifacts,
|
|
313
|
+
and produces a structured diff report.
|
|
314
|
+
|
|
315
|
+
### Time-Travel Branching
|
|
316
|
+
|
|
317
|
+
Specialists can propose parallel experimentation branches during a build. The
|
|
318
|
+
diverge protocol forks the work into parallel Task branches, each exploring a
|
|
319
|
+
different approach. When branches complete, Syn enters Arbiter mode — reads all
|
|
320
|
+
branch reports, builds a side-by-side leaderboard, and returns an advisory
|
|
321
|
+
recommendation. You make the final call on which branch to promote.
|
|
322
|
+
|
|
323
|
+
### Autonomous Research
|
|
324
|
+
|
|
325
|
+
The ML Engineer, AI Engineer, Data Scientist, Applied ML Scientist, and Deep
|
|
326
|
+
Learning Engineer support an `[AR]` Autonomous Research mode: a budget-bounded
|
|
327
|
+
self-steering loop. The agent generates hypotheses, runs experiments, and
|
|
328
|
+
auto-keeps or auto-reverts based on metric movement, all against a steering
|
|
329
|
+
document you can edit mid-loop. Tier 1 agents (ML/AI/DS) render AR runs in the
|
|
330
|
+
Shards UI experiment dashboard with auto-decision colour coding, cost strip,
|
|
331
|
+
and a convergence badge.
|
|
332
|
+
|
|
333
|
+
### Notebook Walkthrough
|
|
334
|
+
|
|
335
|
+
Type `[NW]` on the Data Scientist, ML Engineer, or Syn (or run
|
|
336
|
+
`/notebook-walkthrough`) to step through a Jupyter notebook cell by cell. The
|
|
337
|
+
agent executes each cell via a persistent kernel under `.shards/notebooks/`,
|
|
338
|
+
explains what happened, answers questions, and can edit / insert / delete cells
|
|
339
|
+
in place. Interactive only — no phases, no gates. Requires
|
|
340
|
+
`pip install jupyter_client ipykernel`.
|
|
341
|
+
|
|
342
|
+
### PM Mode
|
|
343
|
+
|
|
344
|
+
Type `[P]` at Syn's menu to enter Project Manager mode. Syn writes a
|
|
345
|
+
`project-plan.md` to `projects/<name>/` and orchestrates a multi-specialist
|
|
346
|
+
project, delegating each phase to the right specialist. Each specialist still
|
|
347
|
+
produces its own outputs in its own directory; the project plan tracks the
|
|
348
|
+
overall arc.
|
|
349
|
+
|
|
350
|
+
### Panel Review
|
|
351
|
+
|
|
352
|
+
Type `[PR]` at Syn's menu for a multi-specialist panel review of any
|
|
353
|
+
directory. Reviewer selection is driven by the cross-product of file types
|
|
354
|
+
found and content tags you declare (not by directory prefix). Syn coalesces
|
|
355
|
+
findings into a single prioritized `panel-report.md` and produces a
|
|
356
|
+
`panel-sequencing-plan.md` that groups fixes so conflicting changes serialize
|
|
357
|
+
and independent ones parallelize. Syn never edits target files; reviewers
|
|
358
|
+
apply fixes via service-mode Tasks.
|
|
359
|
+
|
|
360
|
+
### Slides Mode
|
|
361
|
+
|
|
362
|
+
Type `[SL]` at Syn's menu to draft a Google Slides deck via MCP. Syn polls
|
|
363
|
+
specialists in parallel at the outline pre-build and post-build fidelity
|
|
364
|
+
checkpoints. Output lives in `presentations/<deck_slug>/`. Requires a
|
|
365
|
+
user-level Google Slides MCP server.
|
|
366
|
+
|
|
367
|
+
### GitHub PR Review
|
|
368
|
+
|
|
369
|
+
Type `[G]` at Syn's menu (or run `/review-pr`) to walk through GitHub PR
|
|
370
|
+
review comments interactively. Syn reads each comment, proposes a change, and
|
|
371
|
+
applies it on your approval.
|
|
372
|
+
|
|
373
|
+
### Shards UI
|
|
374
|
+
|
|
375
|
+
Run `/shards-ui` inside Claude Code (or `shards-ui` from your terminal) to open
|
|
376
|
+
a local web dashboard that shows real-time agent session activity. It hooks into
|
|
377
|
+
Claude Code via `UserPromptSubmit`, `Stop`, `PostToolUse`, and `PreToolUse` hooks and displays
|
|
378
|
+
the live feed of agent work in the browser. The UI includes a file explorer, Monaco
|
|
379
|
+
editor integration, code intelligence (symbol indexing via ctags), git status, and
|
|
380
|
+
a command palette.
|
|
381
|
+
|
|
382
|
+
### Developer Guide
|
|
383
|
+
|
|
384
|
+
A comprehensive browsable guide ships with every install. Two ways to read it:
|
|
385
|
+
|
|
386
|
+
- **In the UI** — click the book icon in the activity bar, or run `/shards-guide`.
|
|
387
|
+
- **As plain markdown** — open `docs/shards-guide/` in any editor or browse it on
|
|
388
|
+
GitHub. Start with `docs/shards-guide/README.md`.
|
|
389
|
+
|
|
390
|
+
Both versions come from a single source of truth (`src/docs/`) so they can't drift.
|
|
391
|
+
The guide covers every shard (persona, menu, phases, consultants, output dir),
|
|
392
|
+
every shared protocol (gate pattern, DIVERGE, Autonomous Research, Knowledge
|
|
393
|
+
Ledger, etc.), every UI feature (panels, keybindings, pinboard, code intel), and
|
|
394
|
+
example workflows.
|
|
395
|
+
|
|
396
|
+
#### Permission Whitelisting
|
|
397
|
+
|
|
398
|
+
By default, Claude Code prompts for approval on every shell command. You can
|
|
399
|
+
whitelist common tools at startup so agents can run them without interruption:
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
# Apply a preset
|
|
403
|
+
shards-ui start --permissions permissive
|
|
404
|
+
shards-ui start --permissions readonly
|
|
405
|
+
|
|
406
|
+
# Whitelist specific commands (bare names auto-wrap to Bash(cmd:*))
|
|
407
|
+
shards-ui start --allow "find,grep,ls"
|
|
408
|
+
|
|
409
|
+
# Full pattern syntax
|
|
410
|
+
shards-ui start --allow "Bash(python3:*),Bash(pytest:*)"
|
|
411
|
+
|
|
412
|
+
# Combine both
|
|
413
|
+
shards-ui start --permissions readonly --allow "Bash(python3:*)"
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
**Presets:**
|
|
417
|
+
|
|
418
|
+
| Preset | What it allows |
|
|
419
|
+
|--------|---------------|
|
|
420
|
+
| `readonly` | `find`, `grep`, `rg`, `ls`, `cat`, `head`, `tail`, `wc`, `git log`, `git status`, `git diff`, `git branch`, `git show`, `echo`, `pwd`, `which` |
|
|
421
|
+
| `permissive` | Everything in `readonly` + `python`, `python3`, `node`, `npm`, `pip`, `pip3`, `env` |
|
|
422
|
+
|
|
423
|
+
You can also manage permissions from the browser: open **Settings** (Cmd+,) in
|
|
424
|
+
the Shards UI and use the **Permissions** panel to apply presets, add custom
|
|
425
|
+
rules, or remove existing ones. Changes take effect immediately — they write
|
|
426
|
+
directly to `.claude/settings.json`.
|
|
427
|
+
|
|
428
|
+
### BI Handoffs
|
|
429
|
+
|
|
430
|
+
After completing their final phase, the AI Engineer, ML Engineer, Data Scientist,
|
|
431
|
+
and Analytics Engineer can optionally generate a `bi-engineer-handoff.md` file —
|
|
432
|
+
a structured brief for the BI Engineer to build an operational monitoring or
|
|
433
|
+
reporting dashboard. The specialist asks before generating it; you can say no.
|
|
434
|
+
|
|
435
|
+
### Explain Mode
|
|
436
|
+
|
|
437
|
+
The Data Analyst and Data Scientist support an explain mode: a guided retrospective
|
|
438
|
+
walkthrough of a completed analysis. Load it by pointing the agent at the relevant
|
|
439
|
+
`specific_instructions/` file. No queries are re-run — it reads `project-specs.md`
|
|
440
|
+
and the existing SQL/notebooks and walks you through the decisions and results.
|
|
441
|
+
|
|
442
|
+
## Project Output
|
|
443
|
+
|
|
444
|
+
Every project gets a `project-specs.md` file documenting all decisions.
|
|
445
|
+
Additionally:
|
|
446
|
+
|
|
447
|
+
| Shard | Output Directory | Artifacts |
|
|
448
|
+
|-------|-----------------|-----------|
|
|
449
|
+
| Data Analyst | `analysis/<name>/` | `project-specs.md`, `queries/*.sql` |
|
|
450
|
+
| Data Scientist | `studies/<name>/` | `project-specs.md`, `queries/*.sql`, `notebooks/*.ipynb`, `report.md` |
|
|
451
|
+
| ML Engineer | `models/<name>/` (greenfield) or existing service dir (iteration) | `project-specs.md`, `queries/*.sql`, `notebooks/*.ipynb`, `report.md` |
|
|
452
|
+
| AI Engineer | `services/<name>/` (greenfield) or existing service dir (iteration) | `project-specs.md`, `prompts/`, `eval/`, `notebooks/*.ipynb`, `report.md` |
|
|
453
|
+
| Applied ML Scientist | `research/<name>/` | `project-specs.md`, `notebooks/*.ipynb`, `report.md` |
|
|
454
|
+
| Deep Learning Engineer | `services/<name>/` | `project-specs.md`, `notebooks/*.ipynb`, `report.md` |
|
|
455
|
+
| MLOps Engineer | `services/<name>/` | `project-specs.md` |
|
|
456
|
+
| Analytics Engineer | `data_models/<name>/` | `project-specs.md` |
|
|
457
|
+
| BI Engineer | `dashboards/<name>/` | `project-specs.md` |
|
|
458
|
+
| Syn (Fixer) | `fixes/<name>/` | `project-specs.md` |
|
|
459
|
+
| Syn (PM Mode) | `projects/<name>/` | `project-plan.md` (specialists still write into their own dirs) |
|
|
460
|
+
| Syn (Slides) | `presentations/<deck_slug>/` | `presentation-spec.md`, deck artifacts |
|
|
461
|
+
| Syn (Panel Review) | `panels/<dirname>/` | `panel-report.md`, `panel-sequencing-plan.md` |
|
|
462
|
+
| Syn (PR Review) | — (operates on a GitHub PR) | — |
|
|
463
|
+
| Backend Engineer | — (review only, no files produced) | — |
|
|
464
|
+
| Data Engineer | `models/<name>/` | `project-specs.md` |
|
|
465
|
+
| Data Modeller | `data_models/<name>/` | `project-specs.md` |
|
|
466
|
+
|
|
467
|
+
## Uninstall
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
npx github:proflandrigan/shards uninstall
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
## License
|
|
474
|
+
|
|
475
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proflandrigan/shards",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Shards of Syn's brain — a data-focused agent suite for Claude Code",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude-code",
|
|
7
|
+
"agents",
|
|
8
|
+
"data-science",
|
|
9
|
+
"data-engineering",
|
|
10
|
+
"workflows",
|
|
11
|
+
"machine-learning",
|
|
12
|
+
"artificial intelligence"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "JFL",
|
|
16
|
+
"bin": {
|
|
17
|
+
"shards": "tools/install.js",
|
|
18
|
+
"shards-ui": "tools/shards-ui.js",
|
|
19
|
+
"shards-gates": "tools/shards-gates.js",
|
|
20
|
+
"shards-sessions": "tools/shards-sessions.js"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "vitest run"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"src/",
|
|
27
|
+
"tools/install.js",
|
|
28
|
+
"tools/gate-hook.js",
|
|
29
|
+
"tools/gate-hook/",
|
|
30
|
+
"tools/shards-gates.js",
|
|
31
|
+
"tools/shards-sessions.js",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"vitest": "^4.1.4"
|
|
36
|
+
}
|
|
37
|
+
}
|