@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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Chat Pane
|
|
2
|
+
|
|
3
|
+
The center column. Live conversation with whichever shard is active.
|
|
4
|
+
|
|
5
|
+
## Anatomy
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌──────────────────────────────┐
|
|
9
|
+
│ Agent picker │ ← dropdown of all shards
|
|
10
|
+
├──────────────────────────────┤
|
|
11
|
+
│ Messages │
|
|
12
|
+
│ · user prompts │
|
|
13
|
+
│ · agent responses │
|
|
14
|
+
│ · tool calls (collapsible) │
|
|
15
|
+
│ · gate blocks │
|
|
16
|
+
├──────────────────────────────┤
|
|
17
|
+
│ Selection / pinboard │
|
|
18
|
+
├──────────────────────────────┤
|
|
19
|
+
│ Input [Shift+Tab = mode] │
|
|
20
|
+
└──────────────────────────────┘
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Agent picker
|
|
24
|
+
|
|
25
|
+
- Dropdown at the top of the chat pane lists every installed shard.
|
|
26
|
+
- Picking an agent inserts the corresponding slash command into the input (`/data-analyst`, `/ml-engineer`, etc.).
|
|
27
|
+
- The picker shows the agent's short description on hover.
|
|
28
|
+
|
|
29
|
+
## Messages
|
|
30
|
+
|
|
31
|
+
- User prompts render as plain text with light styling.
|
|
32
|
+
- Agent responses render as markdown via `renderMarkdown()` (marked.js v4, GFM, code highlighting).
|
|
33
|
+
- Tool calls render collapsed by default; click to expand arguments and results.
|
|
34
|
+
- `::GATE::…::ENDGATE::` blocks render as highlighted gate cards — visually distinct, harder to miss.
|
|
35
|
+
|
|
36
|
+
## Search
|
|
37
|
+
|
|
38
|
+
- `Cmd+F` focuses the chat search bar.
|
|
39
|
+
- Navigates matches with up/down arrows.
|
|
40
|
+
- Match count shown inline.
|
|
41
|
+
|
|
42
|
+
## Permission modes
|
|
43
|
+
|
|
44
|
+
The current permission mode is shown in the HUD. Cycle with `Shift+Tab`:
|
|
45
|
+
|
|
46
|
+
- **plan** — Claude must present an exit-plan-mode before editing.
|
|
47
|
+
- **acceptEdits** — auto-approve file edits.
|
|
48
|
+
- **default** — prompt for every tool use.
|
|
49
|
+
|
|
50
|
+
## Input box
|
|
51
|
+
|
|
52
|
+
- Multiline supported. `Enter` sends; `Shift+Enter` inserts a newline.
|
|
53
|
+
- Slash commands autocomplete as you type.
|
|
54
|
+
- File mentions: `@path/to/file` gets expanded inline.
|
|
55
|
+
- Drag-and-drop a file from the Explorer onto the input to attach it.
|
|
56
|
+
|
|
57
|
+
## Pinboard + selection context
|
|
58
|
+
|
|
59
|
+
Immediately above the input:
|
|
60
|
+
|
|
61
|
+
- **Pinboard** — files, snippets, and notes you've pinned for this chat.
|
|
62
|
+
- **Selection context** — last text/code you selected in the editor is offered as context.
|
|
63
|
+
|
|
64
|
+
See [Pinboard & Selection](pinboard-selection.md).
|
|
65
|
+
|
|
66
|
+
## Hook-driven live updates
|
|
67
|
+
|
|
68
|
+
The chat pane is fed by hook events:
|
|
69
|
+
|
|
70
|
+
- `UserPromptSubmit` → new user bubble.
|
|
71
|
+
- `PostToolUse` → new tool-call card.
|
|
72
|
+
- `Stop` → completes the current agent turn.
|
|
73
|
+
|
|
74
|
+
Events flow through `.shards/event-queue.jsonl` and SSE — the browser does not poll.
|
|
75
|
+
|
|
76
|
+
## See also
|
|
77
|
+
|
|
78
|
+
- [Overview](overview.md)
|
|
79
|
+
- [Pinboard](pinboard-selection.md)
|
|
80
|
+
- [Keybindings](keybindings.md)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Code Intel
|
|
2
|
+
|
|
3
|
+
Symbol indexing, Go-to-Definition, and find-references across the project.
|
|
4
|
+
|
|
5
|
+
## Under the hood
|
|
6
|
+
|
|
7
|
+
`src/ui/symbol-index.js` runs on the UI server. On startup it:
|
|
8
|
+
|
|
9
|
+
1. Tries `ctags` — if available, runs `ctags -R` across the repo.
|
|
10
|
+
2. Falls back to a regex-based scanner if ctags is missing.
|
|
11
|
+
3. Watches the working tree (`chokidar`) and re-indexes changed files incrementally.
|
|
12
|
+
|
|
13
|
+
The index is kept in memory; no sidecar file is written.
|
|
14
|
+
|
|
15
|
+
## What gets indexed
|
|
16
|
+
|
|
17
|
+
- Functions, classes, methods.
|
|
18
|
+
- Top-level variables and constants.
|
|
19
|
+
- TypeScript / Python type definitions.
|
|
20
|
+
- SQL models (dbt model names) when ctags is configured for `.sql`.
|
|
21
|
+
|
|
22
|
+
## Symbol search
|
|
23
|
+
|
|
24
|
+
- `Cmd+T` opens the symbol picker.
|
|
25
|
+
- Type to filter across the whole project.
|
|
26
|
+
- Enter jumps to the symbol; `Cmd+Enter` opens in a new tab.
|
|
27
|
+
- Results show symbol kind (function / class / var) and containing file.
|
|
28
|
+
|
|
29
|
+
## Go-to-Definition
|
|
30
|
+
|
|
31
|
+
- `F12` (or right-click → "Go to Definition") on an identifier.
|
|
32
|
+
- If a single definition is found, jumps directly.
|
|
33
|
+
- Multiple matches open a peek panel listing them.
|
|
34
|
+
|
|
35
|
+
## Find references
|
|
36
|
+
|
|
37
|
+
- `Shift+F12` on an identifier.
|
|
38
|
+
- Opens a references panel listing each match with file + line + surrounding snippet.
|
|
39
|
+
- Click any result to jump.
|
|
40
|
+
|
|
41
|
+
## Installing ctags
|
|
42
|
+
|
|
43
|
+
For best results install universal-ctags:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# macOS
|
|
47
|
+
brew install universal-ctags
|
|
48
|
+
|
|
49
|
+
# Ubuntu/Debian
|
|
50
|
+
apt install universal-ctags
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Without ctags, the regex fallback still provides workable symbol search and Go-to-Definition for Python, JavaScript, TypeScript, and Go — but with lower precision.
|
|
54
|
+
|
|
55
|
+
## Symbol pins
|
|
56
|
+
|
|
57
|
+
Code Intel feeds into the pinboard: searching a symbol and pinning it stores a reference that expands to the symbol's definition at prompt time. See [Pinboard](pinboard-selection.md).
|
|
58
|
+
|
|
59
|
+
## See also
|
|
60
|
+
|
|
61
|
+
- [File Editing](file-editing.md)
|
|
62
|
+
- [Quick Open & Palette](quick-open-palette.md)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File Editing
|
|
2
|
+
|
|
3
|
+
The right pane is a Monaco-based editor with specialized renderers for non-code formats.
|
|
4
|
+
|
|
5
|
+
## Supported formats
|
|
6
|
+
|
|
7
|
+
| Format | Renderer | Features |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| Source code (`.py`, `.js`, `.ts`, `.sql`, …) | Monaco | Syntax highlighting, IntelliSense, Go-to-Definition |
|
|
10
|
+
| Markdown (`.md`) | Split view (Monaco + preview) | Live preview, TOC |
|
|
11
|
+
| Jupyter notebooks (`.ipynb`) | Cell-based renderer | Per-cell code + output, image rendering |
|
|
12
|
+
| CSV / Parquet | Tabular viewer | Sortable/filterable table, schema panel |
|
|
13
|
+
| JSON | Tree view + raw | Expand/collapse, copy path |
|
|
14
|
+
| Images (`.png`, `.jpg`, `.svg`) | Image viewer | Zoom, pan |
|
|
15
|
+
| PDFs | Embedded viewer | Page navigation |
|
|
16
|
+
|
|
17
|
+
## Editing
|
|
18
|
+
|
|
19
|
+
- Unsaved changes show a dot on the tab.
|
|
20
|
+
- `Cmd+S` saves; autosave can be enabled in settings.
|
|
21
|
+
- Multi-cursor: `Cmd+D` adds next occurrence, `Option+click` for additional cursors.
|
|
22
|
+
- Find & replace: `Cmd+F` / `Cmd+Option+F`.
|
|
23
|
+
|
|
24
|
+
## Tabs
|
|
25
|
+
|
|
26
|
+
- Tabs live above the editor. Drag to reorder.
|
|
27
|
+
- `Cmd+W` closes current tab.
|
|
28
|
+
- `Cmd+Shift+T` reopens the last closed tab.
|
|
29
|
+
- "Close All" and "Split" buttons in the tab bar actions.
|
|
30
|
+
|
|
31
|
+
## Split view
|
|
32
|
+
|
|
33
|
+
- `Cmd+\` toggles horizontal split.
|
|
34
|
+
- Each split maintains its own tab set.
|
|
35
|
+
- Drag a tab between splits to move it.
|
|
36
|
+
|
|
37
|
+
## Notebook renderer
|
|
38
|
+
|
|
39
|
+
- Cell types: code, markdown, raw.
|
|
40
|
+
- Outputs rendered: stdout, images, HTML, Plotly, Altair.
|
|
41
|
+
- Cells are not executable from the UI — editing-only.
|
|
42
|
+
- Notebooks produced by Data Scientist / ML Engineer / AI Engineer land here automatically.
|
|
43
|
+
|
|
44
|
+
## Tabular renderer
|
|
45
|
+
|
|
46
|
+
- Previews CSV / Parquet / Arrow.
|
|
47
|
+
- Column types inferred.
|
|
48
|
+
- Filter per column; sort by clicking header.
|
|
49
|
+
- Status bar shows row count, column count, memory footprint.
|
|
50
|
+
|
|
51
|
+
## Markdown preview
|
|
52
|
+
|
|
53
|
+
- Split-pane live preview with scroll-sync.
|
|
54
|
+
- Renders via `renderMarkdown()` — same engine as chat messages.
|
|
55
|
+
- Tables, code blocks, mermaid-style diagrams all supported.
|
|
56
|
+
|
|
57
|
+
## See also
|
|
58
|
+
|
|
59
|
+
- [Code Intel](code-intel.md)
|
|
60
|
+
- [Quick Open & Palette](quick-open-palette.md)
|
|
61
|
+
- [Panels](panels.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Git
|
|
2
|
+
|
|
3
|
+
Git integration in the Shards UI: status, diffs, and PR review.
|
|
4
|
+
|
|
5
|
+
## Source Control sidebar
|
|
6
|
+
|
|
7
|
+
Click the branch icon in the activity bar (or `Cmd+Shift+G`). Shows:
|
|
8
|
+
|
|
9
|
+
- Current branch + upstream tracking state.
|
|
10
|
+
- List of changed files grouped by status: Modified / Added / Deleted / Untracked.
|
|
11
|
+
- A badge on the activity-bar button shows the change count when the sidebar is collapsed.
|
|
12
|
+
- Multi-repo projects: a repo picker at the top switches which repo the view shows.
|
|
13
|
+
|
|
14
|
+
## Diff view
|
|
15
|
+
|
|
16
|
+
Click any changed file → opens a split-pane diff in the right workspace.
|
|
17
|
+
|
|
18
|
+
- Left: the committed version. Right: the working copy.
|
|
19
|
+
- Hunks are navigable (up/down arrows in the diff toolbar).
|
|
20
|
+
- Line numbers are preserved.
|
|
21
|
+
|
|
22
|
+
## Commit / push
|
|
23
|
+
|
|
24
|
+
Commits are not performed from the UI — it is intentionally read-only for git state changes. Use Claude Code directly or your shell. This is a deliberate choice: commits often interact with hooks, signing, and pre-commit checks better handled in the terminal.
|
|
25
|
+
|
|
26
|
+
## PR review
|
|
27
|
+
|
|
28
|
+
When the working tree is on a branch with an open PR (detected via `gh`):
|
|
29
|
+
|
|
30
|
+
- "PR" tab appears in the source-control view.
|
|
31
|
+
- PR title + description at the top.
|
|
32
|
+
- File tree shows files changed vs. the base branch.
|
|
33
|
+
- Inline comment threads appear in the diff.
|
|
34
|
+
- Syn's PR Review mode (`Syn → [PR]`) can populate threaded review drafts into this view.
|
|
35
|
+
|
|
36
|
+
See `src/agents/specific_instructions/syn/pr_review.md` for how Syn participates.
|
|
37
|
+
|
|
38
|
+
## HUD integration
|
|
39
|
+
|
|
40
|
+
The HUD strip above the sidebar shows:
|
|
41
|
+
|
|
42
|
+
- Current branch.
|
|
43
|
+
- Pending PR comment count (if reviewing a PR).
|
|
44
|
+
- Pin count.
|
|
45
|
+
|
|
46
|
+
## Troubleshooting
|
|
47
|
+
|
|
48
|
+
- If the UI shows "no git repo detected": check that you launched `shards-ui` from inside a git working tree.
|
|
49
|
+
- If PR info is missing: verify `gh auth status` works from your shell.
|
|
50
|
+
|
|
51
|
+
## See also
|
|
52
|
+
|
|
53
|
+
- [Activity Bar](activity-bar.md)
|
|
54
|
+
- [Syn PR Review](../02-agents/syn.md)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Keybindings Reference
|
|
2
|
+
|
|
3
|
+
All keybindings registered by the Shards UI. On macOS use `Cmd`; on Linux/Windows use `Ctrl`.
|
|
4
|
+
|
|
5
|
+
## Global
|
|
6
|
+
|
|
7
|
+
| Keybinding | Action |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `Cmd+P` | Quick Open (files) |
|
|
10
|
+
| `Cmd+T` | Symbol search (project-wide) |
|
|
11
|
+
| `Cmd+K` | Command Palette |
|
|
12
|
+
| `Cmd+,` | Open Settings |
|
|
13
|
+
| `Cmd+B` | Toggle sidebar |
|
|
14
|
+
| `Cmd+\` | Toggle split view |
|
|
15
|
+
| `Cmd+S` | Save current file |
|
|
16
|
+
| `Cmd+W` | Close current tab |
|
|
17
|
+
| `Cmd+Shift+T` | Reopen last-closed tab |
|
|
18
|
+
| `Cmd+F` | Find in current view (editor or chat) |
|
|
19
|
+
| `Cmd+Option+F` | Find & Replace in editor |
|
|
20
|
+
| `Shift+Tab` | Cycle permission mode |
|
|
21
|
+
|
|
22
|
+
## Sidebar focus
|
|
23
|
+
|
|
24
|
+
| Keybinding | Action |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `Cmd+Shift+E` | Focus Explorer |
|
|
27
|
+
| `Cmd+Shift+G` | Focus Source Control |
|
|
28
|
+
| `Cmd+Shift+B` | Focus Bookmarks |
|
|
29
|
+
|
|
30
|
+
## Workspace
|
|
31
|
+
|
|
32
|
+
| Keybinding | Action |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `Cmd+1` | Focus Chat pane |
|
|
35
|
+
| `Cmd+2` | Focus Editor pane |
|
|
36
|
+
| `Cmd+3` | Focus secondary split pane |
|
|
37
|
+
|
|
38
|
+
## Editor (Monaco)
|
|
39
|
+
|
|
40
|
+
| Keybinding | Action |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `F12` | Go to Definition |
|
|
43
|
+
| `Shift+F12` | Find References |
|
|
44
|
+
| `Cmd+D` | Add next occurrence to selection |
|
|
45
|
+
| `Option+click` | Add cursor |
|
|
46
|
+
| `Cmd+/` | Toggle line comment |
|
|
47
|
+
| `Cmd+Shift+K` | Delete line |
|
|
48
|
+
| `Option+↑ / ↓` | Move line up/down |
|
|
49
|
+
|
|
50
|
+
## Chat
|
|
51
|
+
|
|
52
|
+
| Keybinding | Action |
|
|
53
|
+
|---|---|
|
|
54
|
+
| `Enter` | Send message |
|
|
55
|
+
| `Shift+Enter` | Newline in input |
|
|
56
|
+
| `Cmd+F` | Focus chat search bar |
|
|
57
|
+
| `↑ / ↓` (in search) | Navigate matches |
|
|
58
|
+
|
|
59
|
+
## Pinboard
|
|
60
|
+
|
|
61
|
+
| Keybinding | Action |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `Cmd+Shift+P` | Pin current selection |
|
|
64
|
+
| `Cmd+D` | Bookmark current file/line |
|
|
65
|
+
|
|
66
|
+
## Quick Open modifiers
|
|
67
|
+
|
|
68
|
+
In the `Cmd+P` input:
|
|
69
|
+
|
|
70
|
+
| Prefix | Behavior |
|
|
71
|
+
|---|---|
|
|
72
|
+
| `@` | Symbol search within current file |
|
|
73
|
+
| `#` | Symbol search across project |
|
|
74
|
+
| `:42` | Jump to line 42 in current file |
|
|
75
|
+
|
|
76
|
+
## See also
|
|
77
|
+
|
|
78
|
+
- [Quick Open & Palette](quick-open-palette.md)
|
|
79
|
+
- [Settings](settings-permissions.md)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Knowledge Map
|
|
2
|
+
|
|
3
|
+
Browser for the [Knowledge Ledger](../03-protocols/knowledge-ledger.md). Card and graph views over `.shards/knowledge/`.
|
|
4
|
+
|
|
5
|
+
## Opening
|
|
6
|
+
|
|
7
|
+
- Click the brain icon in the activity bar.
|
|
8
|
+
- Or command palette: "Open Knowledge Map".
|
|
9
|
+
|
|
10
|
+
## Views
|
|
11
|
+
|
|
12
|
+
### Card view
|
|
13
|
+
|
|
14
|
+
One card per ledger entry. Shows:
|
|
15
|
+
|
|
16
|
+
- Title.
|
|
17
|
+
- Type badge (entity / infrastructure / pattern / feature).
|
|
18
|
+
- Confidence indicator (high / medium / low).
|
|
19
|
+
- Tags.
|
|
20
|
+
- Contributed-by agent + date.
|
|
21
|
+
|
|
22
|
+
Click a card to open the raw markdown in the editor.
|
|
23
|
+
|
|
24
|
+
### Graph view
|
|
25
|
+
|
|
26
|
+
Entries are nodes; edges come from shared tags and cross-references. Tight clusters indicate domains of related knowledge.
|
|
27
|
+
|
|
28
|
+
- Drag nodes to rearrange.
|
|
29
|
+
- Click a node to open its card.
|
|
30
|
+
- Double-click a node to open the raw markdown.
|
|
31
|
+
|
|
32
|
+
## Filtering
|
|
33
|
+
|
|
34
|
+
Shared across both views:
|
|
35
|
+
|
|
36
|
+
- By **type**: entity / infrastructure / pattern / feature.
|
|
37
|
+
- By **confidence**: high / medium / low.
|
|
38
|
+
- By **tag** (multi-select).
|
|
39
|
+
- By **contributor** (which agent harvested it).
|
|
40
|
+
- Full-text search across title + body.
|
|
41
|
+
|
|
42
|
+
## Editing
|
|
43
|
+
|
|
44
|
+
- Click the pencil icon on a card → inline edit of frontmatter + body.
|
|
45
|
+
- Saves directly to the underlying `.md` file.
|
|
46
|
+
- `INDEX.md` is regenerated after any save.
|
|
47
|
+
|
|
48
|
+
## Adding entries
|
|
49
|
+
|
|
50
|
+
Two paths:
|
|
51
|
+
|
|
52
|
+
1. **From the UI**: "New Entry" button on the Knowledge Map toolbar. Opens a templated form.
|
|
53
|
+
2. **Via Syn**: `/knowledge` slash command → Syn's Knowledge mode. Syn can seed, browse, and manage entries conversationally.
|
|
54
|
+
|
|
55
|
+
## Frontmatter format
|
|
56
|
+
|
|
57
|
+
```yaml
|
|
58
|
+
---
|
|
59
|
+
title: teacher_activity grain surprise
|
|
60
|
+
domain: education
|
|
61
|
+
type: entity
|
|
62
|
+
confidence: high
|
|
63
|
+
contributed_by: data-analyst
|
|
64
|
+
date: 2025-09-12
|
|
65
|
+
tags: [teacher_activity, grain, daily]
|
|
66
|
+
---
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## How entries get harvested
|
|
70
|
+
|
|
71
|
+
After a specialist completes a project, the knowledge-harvest protocol runs: the specialist proposes candidate entries, the user confirms, and confirmed entries are written to the ledger. See [Knowledge Ledger](../03-protocols/knowledge-ledger.md).
|
|
72
|
+
|
|
73
|
+
## See also
|
|
74
|
+
|
|
75
|
+
- [Knowledge Ledger protocol](../03-protocols/knowledge-ledger.md)
|
|
76
|
+
- [Activity Bar](activity-bar.md)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Shards UI — Overview
|
|
2
|
+
|
|
3
|
+
A browser-based workspace that sits alongside Claude Code. Provides live chat with any shard, a file editor, agent-pushed panels, git integration, knowledge-map browsing, and the guide you are reading.
|
|
4
|
+
|
|
5
|
+
## Launching
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
shards-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or from Claude Code:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/shards-ui
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The server binds to `127.0.0.1` on the first available port in `7842-7845`. Auth tokens are per-process (randomly generated UUIDs, not persisted). The port file at `.shards/ui.port` stores the port and token for the browser.
|
|
18
|
+
|
|
19
|
+
## Layout
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
┌───────────────────────────────────────────────────────────────┐
|
|
23
|
+
│ Header: session bar · theme toggle · connection status │
|
|
24
|
+
├──┬────────────────────────────────────────────────────────────┤
|
|
25
|
+
│ │ Workspace │
|
|
26
|
+
│A │ ┌─────────────────────┬──────────────────────────────────┐│
|
|
27
|
+
│c │ │ Chat pane │ File / Panel pane ││
|
|
28
|
+
│t │ │ (agent picker, │ (Monaco editor, tables, ││
|
|
29
|
+
│i │ │ messages, │ panels, diagrams, etc.) ││
|
|
30
|
+
│v │ │ pinboard, │ ││
|
|
31
|
+
│i │ │ input) │ ││
|
|
32
|
+
│t │ │ │ ││
|
|
33
|
+
│y │ └─────────────────────┴──────────────────────────────────┘│
|
|
34
|
+
│ │ │
|
|
35
|
+
│B │ HUD: git branch · pin count · PR comments · context │
|
|
36
|
+
│a │ │
|
|
37
|
+
│r │ │
|
|
38
|
+
├──┴────────────────────────────────────────────────────────────┤
|
|
39
|
+
│ Sidebar (Explorer / Session Files / Bookmarks / Git / KM / │
|
|
40
|
+
│ Guide) │
|
|
41
|
+
└───────────────────────────────────────────────────────────────┘
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Top-level features
|
|
45
|
+
|
|
46
|
+
| Feature | Where | Page |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| Activity bar (sidebar nav) | Left edge | [Activity Bar](activity-bar.md) |
|
|
49
|
+
| Chat with any shard | Center pane | [Chat Pane](chat-pane.md) |
|
|
50
|
+
| File editing | Right pane | [File Editing](file-editing.md) |
|
|
51
|
+
| Agent-pushed panels | Right pane | [Panels](panels.md) |
|
|
52
|
+
| Pinboard & selection context | Above chat input | [Pinboard](pinboard-selection.md) |
|
|
53
|
+
| Git status + diffs + PR review | Sidebar + HUD | [Git](git.md) |
|
|
54
|
+
| Symbol search, Go-to-Definition | Editor | [Code Intel](code-intel.md) |
|
|
55
|
+
| Quick Open (Cmd+P) · Command Palette (Cmd+K) | Overlays | [Quick Open](quick-open-palette.md) |
|
|
56
|
+
| Knowledge Map | Sidebar button | [Knowledge Map](knowledge-map.md) |
|
|
57
|
+
| Settings & permissions | Cmd+, | [Settings](settings-permissions.md) |
|
|
58
|
+
| Guide (this doc) | Book icon | See [Activity Bar](activity-bar.md) |
|
|
59
|
+
|
|
60
|
+
## Keybindings at a glance
|
|
61
|
+
|
|
62
|
+
See the full [Keybindings Reference](keybindings.md).
|
|
63
|
+
|
|
64
|
+
Quick reference:
|
|
65
|
+
|
|
66
|
+
- `Cmd+P` — Quick Open
|
|
67
|
+
- `Cmd+K` — Command Palette
|
|
68
|
+
- `Cmd+,` — Settings
|
|
69
|
+
- `Cmd+B` — Toggle Explorer
|
|
70
|
+
- `Cmd+\` — Toggle split view
|
|
71
|
+
- `Cmd+1/2/3` — Switch between chat / file tabs
|
|
72
|
+
- `Shift+Tab` — Cycle permission mode (acceptEdits ↔ plan)
|
|
73
|
+
|
|
74
|
+
## Themes
|
|
75
|
+
|
|
76
|
+
Light and dark. Toggle in the header (moon/sun icon) or via settings. Theme persists in `localStorage`.
|
|
77
|
+
|
|
78
|
+
## Hooks
|
|
79
|
+
|
|
80
|
+
The UI integrates with Claude Code via four hooks configured in `.claude/settings.json`:
|
|
81
|
+
|
|
82
|
+
- `UserPromptSubmit` — relays user prompts to the UI.
|
|
83
|
+
- `Stop` — notifies the UI when the model stops.
|
|
84
|
+
- `PostToolUse` — pushes tool call results.
|
|
85
|
+
- `PreToolUse` (Bash) — captures Bash invocations.
|
|
86
|
+
|
|
87
|
+
Hook events flow through `src/ui/relay.js` → `.shards/event-queue.jsonl` → server SSE → browser.
|
|
88
|
+
|
|
89
|
+
## See also
|
|
90
|
+
|
|
91
|
+
- [Install & Setup](../01-getting-started/install.md)
|
|
92
|
+
- [Panels](panels.md)
|
|
93
|
+
- [Keybindings](keybindings.md)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Panels
|
|
2
|
+
|
|
3
|
+
Panels are rich, structured renderings that agents push to the right pane. Unlike file tabs, panels are ephemeral — they come from a running agent, not the filesystem.
|
|
4
|
+
|
|
5
|
+
## How panels arrive
|
|
6
|
+
|
|
7
|
+
An agent invokes UI mode (via the agent's `[UI]` menu option or a dedicated mode file like `research_ui_mode.md`). UI-mode variants emit structured JSON via a hook; `src/ui/js/panels.js` dispatches on `panel.panel` (the panel type) and calls the right renderer.
|
|
8
|
+
|
|
9
|
+
## Panel types
|
|
10
|
+
|
|
11
|
+
| Panel | Who pushes it | What it shows |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `data-viewer` | Data Analyst, Analytics Engineer | Query results table, schema, row count |
|
|
14
|
+
| `chart` | BI Engineer, Data Analyst | Plotly / Altair / Vega-Lite visualizations |
|
|
15
|
+
| `diagram` / `dag` | Analytics Engineer, Data Engineer | DAG of transformations, entity diagrams |
|
|
16
|
+
| `experiment-dashboard` | ML Engineer, AI Engineer, Data Scientist (`[EX]` / `[AR]` modes) | Runs table, metric trends, config comparison. AR mode adds auto-decision coloring, cost strip, convergence badge |
|
|
17
|
+
| `prompt-lab` | AI Engineer (`[PL]` mode) | Prompt editor, eval dataset, side-by-side outputs, version history |
|
|
18
|
+
| `eval-dashboard` | AI Engineer, ML Engineer | Evaluation metrics per variant, confusion matrices |
|
|
19
|
+
| `model-card` | ML Engineer, Deep Learning Engineer, Applied ML Scientist | Model card rendered from `model-card.md` template |
|
|
20
|
+
| `knowledge-map` | Syn (Knowledge mode) | Ledger entries card/graph view |
|
|
21
|
+
| `pr-review` | Syn (PR Review mode) | PR file tree, diff view, threaded comments |
|
|
22
|
+
| `brainstorm` | Syn (`[B]` / `/brainstorm`) | Live multi-specialist fan-out: problem + context, specialist cards (queued → thinking → responded with headlines), synthesis buckets, facilitation log, outcome |
|
|
23
|
+
| `guide` | Guide activity-bar button | This developer guide |
|
|
24
|
+
|
|
25
|
+
## Registering a new panel type
|
|
26
|
+
|
|
27
|
+
Two files:
|
|
28
|
+
|
|
29
|
+
1. **Renderer** — add a branch in `src/ui/js/panels.js`:
|
|
30
|
+
```js
|
|
31
|
+
case p.panel === 'my-panel':
|
|
32
|
+
renderMyPanel(container, panel);
|
|
33
|
+
break;
|
|
34
|
+
```
|
|
35
|
+
2. **Push-side** — the agent's `ui_mode.md` or equivalent variant emits the structured payload via the `push` helper.
|
|
36
|
+
|
|
37
|
+
See `src/ui/js/experiment-dashboard.js`, `prompt-lab.js`, and `knowledge-map.js` as reference implementations.
|
|
38
|
+
|
|
39
|
+
## Panel persistence
|
|
40
|
+
|
|
41
|
+
- Panel payloads are logged to the session JSON under `.shards/sessions/<id>/`.
|
|
42
|
+
- Re-opening a session re-renders its most recent panels.
|
|
43
|
+
- Panels are not saved as files — if you want a permanent artifact, save from the panel's export button (where supported).
|
|
44
|
+
|
|
45
|
+
## See also
|
|
46
|
+
|
|
47
|
+
- [File Editing](file-editing.md)
|
|
48
|
+
- [Experiment Versioning](../03-protocols/experiment-versioning.md)
|
|
49
|
+
- [Autonomous Research](../03-protocols/autonomous-research.md)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Pinboard & Selection Context
|
|
2
|
+
|
|
3
|
+
Two mechanisms for feeding context into the chat without typing it out.
|
|
4
|
+
|
|
5
|
+
## Pinboard
|
|
6
|
+
|
|
7
|
+
A persistent shelf of items attached to the current chat session. Appears above the input box.
|
|
8
|
+
|
|
9
|
+
### Pin types
|
|
10
|
+
|
|
11
|
+
- **File pins** — full file contents included with the next user prompt.
|
|
12
|
+
- **Snippet pins** — a range of lines from a file.
|
|
13
|
+
- **Note pins** — free-text notes.
|
|
14
|
+
- **Symbol pins** — a function, class, or variable resolved via the symbol index.
|
|
15
|
+
|
|
16
|
+
### Pinning
|
|
17
|
+
|
|
18
|
+
- From the editor: select text → right-click → "Pin selection".
|
|
19
|
+
- From the Explorer: right-click a file → "Pin to chat".
|
|
20
|
+
- From the command palette: `Cmd+K` → "Pin file".
|
|
21
|
+
- Keyboard: `Cmd+Shift+P` pins the current selection.
|
|
22
|
+
|
|
23
|
+
### Managing pins
|
|
24
|
+
|
|
25
|
+
- Click the X on a pin to remove it.
|
|
26
|
+
- Drag pins to reorder.
|
|
27
|
+
- "Clear pinboard" button clears all.
|
|
28
|
+
- Pinboard state persists in `.shards/sessions/<id>/pinboard.json`.
|
|
29
|
+
|
|
30
|
+
## Selection context
|
|
31
|
+
|
|
32
|
+
Separate from the pinboard. When you select text in the editor, the selection is offered as **context for the next message only** (not persistent).
|
|
33
|
+
|
|
34
|
+
- "Include selection" toggle in the input row.
|
|
35
|
+
- Auto-cleared after the message is sent.
|
|
36
|
+
- Use it when you want one-shot context without managing pins.
|
|
37
|
+
|
|
38
|
+
## How pins reach the agent
|
|
39
|
+
|
|
40
|
+
The pin payload is appended to the user prompt before it's sent to Claude:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
<pins>
|
|
44
|
+
<file path="src/foo.py">...contents...</file>
|
|
45
|
+
<snippet path="src/bar.py" lines="10-30">...</snippet>
|
|
46
|
+
<note>Remember: teacher_activity has hidden grain.</note>
|
|
47
|
+
</pins>
|
|
48
|
+
|
|
49
|
+
<user prompt here>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The agent sees the pins as part of the prompt; there is no special tool for them.
|
|
53
|
+
|
|
54
|
+
## When to use which
|
|
55
|
+
|
|
56
|
+
| Scenario | Use |
|
|
57
|
+
|---|---|
|
|
58
|
+
| You'll reference the same file for multiple turns | Pin the file |
|
|
59
|
+
| You want to ask one question about a specific block | Selection context |
|
|
60
|
+
| You're building up a brief across several messages | Notes pins |
|
|
61
|
+
| You want the agent to focus on one function | Symbol pin |
|
|
62
|
+
|
|
63
|
+
## See also
|
|
64
|
+
|
|
65
|
+
- [Chat Pane](chat-pane.md)
|
|
66
|
+
- [Code Intel](code-intel.md)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Quick Open & Command Palette
|
|
2
|
+
|
|
3
|
+
Two overlays for fast navigation and action.
|
|
4
|
+
|
|
5
|
+
## Quick Open — `Cmd+P`
|
|
6
|
+
|
|
7
|
+
Fuzzy file finder.
|
|
8
|
+
|
|
9
|
+
- Type to filter files by path.
|
|
10
|
+
- `Enter` opens in the active tab; `Cmd+Enter` opens in a new tab.
|
|
11
|
+
- Recent files shown first when the input is empty.
|
|
12
|
+
- Scope: the entire project working directory.
|
|
13
|
+
- Respects `.gitignore` — node_modules, build artifacts, etc., are excluded.
|
|
14
|
+
|
|
15
|
+
### Modifiers in the input
|
|
16
|
+
|
|
17
|
+
- `@symbol` — switch to symbol search within the currently open file.
|
|
18
|
+
- `#symbol` — switch to project-wide symbol search (equivalent to `Cmd+T`).
|
|
19
|
+
- `:42` — jump to line 42 in the currently open file.
|
|
20
|
+
|
|
21
|
+
## Command Palette — `Cmd+K`
|
|
22
|
+
|
|
23
|
+
All registered commands.
|
|
24
|
+
|
|
25
|
+
- Type to filter commands.
|
|
26
|
+
- Shows keybindings alongside each command.
|
|
27
|
+
- Commands include: toggle panels, switch agents, open settings, change theme, open the guide, and more.
|
|
28
|
+
|
|
29
|
+
### Common commands
|
|
30
|
+
|
|
31
|
+
| Command | Default keybinding |
|
|
32
|
+
|---|---|
|
|
33
|
+
| Open Guide | (via palette) |
|
|
34
|
+
| Toggle Split View | `Cmd+\` |
|
|
35
|
+
| Toggle Explorer | `Cmd+B` |
|
|
36
|
+
| Open Settings | `Cmd+,` |
|
|
37
|
+
| Switch Theme | (via palette) |
|
|
38
|
+
| Focus Chat | `Cmd+1` |
|
|
39
|
+
| Focus Editor | `Cmd+2` |
|
|
40
|
+
| Clear Pinboard | (via palette) |
|
|
41
|
+
| Reload Window | (via palette) |
|
|
42
|
+
|
|
43
|
+
New commands are registered in `src/ui/js/command-palette.js`.
|
|
44
|
+
|
|
45
|
+
## Differences
|
|
46
|
+
|
|
47
|
+
| | Quick Open | Palette |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| Trigger | `Cmd+P` | `Cmd+K` |
|
|
50
|
+
| Scope | Files + symbols + lines | Actions |
|
|
51
|
+
| Opens something | Always a file/location | Runs a command |
|
|
52
|
+
|
|
53
|
+
## See also
|
|
54
|
+
|
|
55
|
+
- [Keybindings](keybindings.md)
|
|
56
|
+
- [Code Intel](code-intel.md)
|