sinapse-ai 9.2.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +56 -343
- package/.claude/hooks/README.md +1 -0
- package/.claude/hooks/enforce-architecture-first.py +197 -196
- package/.claude/hooks/install-hooks.sh +1 -0
- package/.claude/hooks/mind-clone-governance.py +193 -192
- package/.claude/hooks/pre-commit-version-check.sh +1 -0
- package/.claude/hooks/precompact-session-digest.cjs +1 -0
- package/.claude/hooks/precompact-wrapper.cjs +1 -0
- package/.claude/hooks/read-protection.py +152 -151
- package/.claude/hooks/sql-governance.py +183 -182
- package/.claude/hooks/synapse-engine.cjs +1 -0
- package/.claude/hooks/synapse-wrapper.cjs +1 -0
- package/.claude/hooks/write-path-validation.py +195 -194
- package/.claude/rules/agent-authority.md +6 -0
- package/.claude/rules/agent-handoff.md +5 -0
- package/.claude/rules/cross-squad-routing.md +5 -0
- package/.claude/rules/hook-governance.md +6 -0
- package/.claude/rules/ids-principles.md +1 -0
- package/.claude/rules/mcp-usage.md +3 -1
- package/.claude/rules/safe-collaboration.md +10 -0
- package/.claude/rules/security-data-protection.md +9 -0
- package/.claude/rules/squad-awareness.md +73 -0
- package/.claude/rules/story-lifecycle.md +1 -0
- package/.claude/rules/tool-examples.md +7 -0
- package/.claude/rules/workflow-execution.md +8 -0
- package/.codex/agents/analyst.md +253 -72
- package/.codex/agents/architect.md +455 -68
- package/.codex/agents/data-engineer.md +492 -106
- package/.codex/agents/developer.md +560 -0
- package/.codex/agents/devops.md +518 -69
- package/.codex/agents/product-lead.md +335 -0
- package/.codex/agents/project-lead.md +377 -0
- package/.codex/agents/quality-gate.md +449 -0
- package/.codex/agents/sinapse-orqx.md +9 -7
- package/.codex/agents/sprint-lead.md +287 -0
- package/.codex/agents/squad-creator.md +344 -0
- package/.codex/agents/ux-design-expert.md +495 -0
- package/.codex/delegation-matrix.json +756 -44
- package/.codex/handoff-packet.schema.json +30 -6
- package/.sinapse-ai/cli/commands/config/index.js +1 -0
- package/.sinapse-ai/cli/commands/generate/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/regenerate.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/validate.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/add.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/index.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/link.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/setup.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/status.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/cleanup.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/index.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/record.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/seed.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/show.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/analyze.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/backup.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/execute.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/index.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/rollback.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/update-imports.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/validate.js +1 -0
- package/.sinapse-ai/cli/commands/qa/run.js +1 -0
- package/.sinapse-ai/cli/commands/qa/status.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/info-formatter.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-table.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-tree.js +1 -0
- package/.sinapse-ai/cli/commands/workers/index.js +1 -0
- package/.sinapse-ai/cli/commands/workers/info.js +1 -0
- package/.sinapse-ai/cli/commands/workers/list.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-filters.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-keyword.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-semantic.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search.js +1 -0
- package/.sinapse-ai/cli/commands/workers/utils/pagination.js +1 -0
- package/.sinapse-ai/cli/index.js +1 -0
- package/.sinapse-ai/cli/utils/output-formatter-cli.js +1 -0
- package/.sinapse-ai/cli/utils/score-calculator.js +1 -0
- package/.sinapse-ai/core/README.md +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-client.js +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-enricher.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/creation-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/devops-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/planning-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/hook-runtime.js +1 -0
- package/.sinapse-ai/core/code-intel/index.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/code-graph-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/provider-interface.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/registry-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/registry-syncer.js +1 -0
- package/.sinapse-ai/core/config/config-cache.js +1 -0
- package/.sinapse-ai/core/config/config-loader.js +1 -0
- package/.sinapse-ai/core/config/config-resolver.js +1 -0
- package/.sinapse-ai/core/config/env-interpolator.js +1 -0
- package/.sinapse-ai/core/config/merge-utils.js +1 -0
- package/.sinapse-ai/core/config/migrate-config.js +1 -0
- package/.sinapse-ai/core/config/schemas/framework-config.schema.json +2 -1
- package/.sinapse-ai/core/config/schemas/local-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/project-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/user-config.schema.json +1 -0
- package/.sinapse-ai/core/config/template-overrides.js +1 -0
- package/.sinapse-ai/core/config/templates/user-config.yaml +1 -0
- package/.sinapse-ai/core/docs/SHARD-TRANSLATION-GUIDE.md +1 -0
- package/.sinapse-ai/core/docs/component-creation-guide.md +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -0
- package/.sinapse-ai/core/docs/template-syntax.md +1 -1
- package/.sinapse-ai/core/docs/troubleshooting-guide.md +1 -1
- package/.sinapse-ai/core/doctor/checks/agent-memory.js +1 -0
- package/.sinapse-ai/core/doctor/checks/claude-md.js +1 -0
- package/.sinapse-ai/core/doctor/checks/code-intel.js +1 -0
- package/.sinapse-ai/core/doctor/checks/commands-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/core-config.js +1 -0
- package/.sinapse-ai/core/doctor/checks/entity-registry.js +1 -0
- package/.sinapse-ai/core/doctor/checks/git-hooks.js +1 -0
- package/.sinapse-ai/core/doctor/checks/graph-dashboard.js +1 -0
- package/.sinapse-ai/core/doctor/checks/hooks-claude-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/ide-sync.js +1 -0
- package/.sinapse-ai/core/doctor/checks/node-version.js +1 -0
- package/.sinapse-ai/core/doctor/checks/npm-packages.js +1 -0
- package/.sinapse-ai/core/doctor/checks/rules-files.js +1 -0
- package/.sinapse-ai/core/doctor/checks/settings-json.js +1 -0
- package/.sinapse-ai/core/doctor/checks/skills-count.js +1 -0
- package/.sinapse-ai/core/doctor/fix-handler.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/json.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/text.js +1 -0
- package/.sinapse-ai/core/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/core/elicitation/elicitation-engine.js +1 -0
- package/.sinapse-ai/core/elicitation/session-manager.js +1 -0
- package/.sinapse-ai/core/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/core/events/dashboard-emitter.js +1 -0
- package/.sinapse-ai/core/events/index.js +1 -0
- package/.sinapse-ai/core/events/types.js +1 -0
- package/.sinapse-ai/core/execution/autonomous-build-loop.js +1 -0
- package/.sinapse-ai/core/execution/build-orchestrator.js +1 -0
- package/.sinapse-ai/core/execution/build-state-manager.js +1 -0
- package/.sinapse-ai/core/execution/context-injector.js +1 -0
- package/.sinapse-ai/core/execution/parallel-executor.js +1 -0
- package/.sinapse-ai/core/execution/parallel-monitor.js +1 -0
- package/.sinapse-ai/core/execution/rate-limit-manager.js +1 -0
- package/.sinapse-ai/core/execution/result-aggregator.js +1 -0
- package/.sinapse-ai/core/execution/semantic-merge-engine.js +1 -0
- package/.sinapse-ai/core/execution/subagent-dispatcher.js +1 -0
- package/.sinapse-ai/core/execution/wave-executor.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/cli.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/code-intel-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/metrics-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/registry-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/dot-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/html-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/json-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/mermaid-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/index.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/stats-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/status-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/tree-renderer.js +1 -0
- package/.sinapse-ai/core/health-check/base-check.js +1 -0
- package/.sinapse-ai/core/health-check/check-registry.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/build-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/ci-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/deployment-readiness.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/docker-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/env-file.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/disk-space.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/environment-vars.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/git-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/ide-detection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/memory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/network.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/npm-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/shell-environment.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/agent-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/framework-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/node-version.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/package-json.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/sinapse-directory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/task-definitions.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/workflow-dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/branch-protection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/commit-history.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/conflicts.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-repo.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-status.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/gitignore.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/large-files.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/lockfile-integrity.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/api-endpoints.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/claude-code.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/github-cli.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/index.js +1 -2
- package/.sinapse-ai/core/health-check/checks/services/mcp-integration.js +1 -0
- package/.sinapse-ai/core/health-check/engine.js +1 -0
- package/.sinapse-ai/core/health-check/healers/backup-manager.js +1 -0
- package/.sinapse-ai/core/health-check/healers/index.js +1 -0
- package/.sinapse-ai/core/health-check/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/console.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/markdown.js +1 -0
- package/.sinapse-ai/core/ideation/ideation-engine.js +1 -0
- package/.sinapse-ai/core/ids/README.md +1 -0
- package/.sinapse-ai/core/ids/circuit-breaker.js +1 -0
- package/.sinapse-ai/core/ids/framework-governor.js +1 -0
- package/.sinapse-ai/core/ids/gates/g1-epic-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g2-story-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g3-story-validation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g4-dev-context.js +1 -0
- package/.sinapse-ai/core/ids/incremental-decision-engine.js +1 -0
- package/.sinapse-ai/core/ids/index.js +1 -0
- package/.sinapse-ai/core/ids/layer-classifier.js +1 -0
- package/.sinapse-ai/core/ids/registry-healer.js +1 -0
- package/.sinapse-ai/core/ids/registry-loader.js +1 -0
- package/.sinapse-ai/core/ids/registry-updater.js +1 -0
- package/.sinapse-ai/core/ids/verification-gate.js +1 -0
- package/.sinapse-ai/core/index.esm.js +1 -0
- package/.sinapse-ai/core/index.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-generator.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-validator.js +1 -0
- package/.sinapse-ai/core/mcp/config-migrator.js +1 -0
- package/.sinapse-ai/core/mcp/global-config-manager.js +1 -0
- package/.sinapse-ai/core/mcp/index.js +1 -0
- package/.sinapse-ai/core/mcp/os-detector.js +1 -0
- package/.sinapse-ai/core/mcp/symlink-manager.js +1 -0
- package/.sinapse-ai/core/memory/__tests__/active-modules.verify.js +1 -0
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -0
- package/.sinapse-ai/core/migration/migration-config.yaml +1 -0
- package/.sinapse-ai/core/migration/module-mapping.yaml +1 -0
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-status-writer.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +1 -0
- package/.sinapse-ai/core/orchestration/brownfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/checklist-runner.js +1 -0
- package/.sinapse-ai/core/orchestration/cli-commands.js +1 -0
- package/.sinapse-ai/core/orchestration/condition-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/context-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/dashboard-integration.js +1 -0
- package/.sinapse-ai/core/orchestration/data-lifecycle-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/epic-context-accumulator.js +1 -0
- package/.sinapse-ai/core/orchestration/execution-profile-resolver.js +1 -0
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-3-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-5-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/index.js +1 -0
- package/.sinapse-ai/core/orchestration/gate-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/index.js +1 -0
- package/.sinapse-ai/core/orchestration/lock-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/message-formatter.js +1 -0
- package/.sinapse-ai/core/orchestration/parallel-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/recovery-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/session-state.js +1 -0
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +1 -0
- package/.sinapse-ai/core/orchestration/subagent-prompt-builder.js +1 -0
- package/.sinapse-ai/core/orchestration/surface-checker.js +1 -0
- package/.sinapse-ai/core/orchestration/task-complexity-classifier.js +1 -0
- package/.sinapse-ai/core/orchestration/tech-stack-detector.js +1 -0
- package/.sinapse-ai/core/orchestration/terminal-spawner.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-orchestrator.js +1 -0
- package/.sinapse-ai/core/permissions/__tests__/permission-mode.test.js +1 -0
- package/.sinapse-ai/core/permissions/index.js +1 -0
- package/.sinapse-ai/core/permissions/operation-guard.js +1 -0
- package/.sinapse-ai/core/permissions/permission-mode.js +1 -0
- package/.sinapse-ai/core/quality-gates/base-layer.js +1 -0
- package/.sinapse-ai/core/quality-gates/checklist-generator.js +1 -0
- package/.sinapse-ai/core/quality-gates/human-review-orchestrator.js +1 -0
- package/.sinapse-ai/core/quality-gates/index.js +244 -0
- package/.sinapse-ai/core/quality-gates/layer1-precommit.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -0
- package/.sinapse-ai/core/quality-gates/notification-manager.js +1 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.js +462 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +105 -16
- package/.sinapse-ai/core/quality-gates/quality-gate-manager.js +1 -0
- package/.sinapse-ai/core/registry/README.md +1 -0
- package/.sinapse-ai/core/registry/build-registry.js +1 -0
- package/.sinapse-ai/core/registry/registry-loader.js +1 -0
- package/.sinapse-ai/core/registry/registry-schema.json +1 -0
- package/.sinapse-ai/core/registry/service-registry.json +0 -120
- package/.sinapse-ai/core/registry/validate-registry.js +1 -0
- package/.sinapse-ai/core/session/context-detector.js +1 -0
- package/.sinapse-ai/core/session/context-loader.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-builder.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-tracker.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/consistency-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/hook-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/manifest-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/output-analyzer.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/pipeline-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/quality-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/relevance-matrix.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/safe-read-json.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/session-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/timing-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/uap-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/report-formatter.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/synapse-diagnostics.js +1 -0
- package/.sinapse-ai/core/synapse/domain/domain-loader.js +1 -0
- package/.sinapse-ai/core/synapse/engine.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l0-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l1-global.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l2-agent.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l3-workflow.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l4-task.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l5-squad.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l6-keyword.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l7-star-command.js +1 -0
- package/.sinapse-ai/core/synapse/layers/layer-processor.js +1 -0
- package/.sinapse-ai/core/synapse/memory/memory-bridge.js +1 -0
- package/.sinapse-ai/core/synapse/memory/synapse-memory-provider.js +1 -0
- package/.sinapse-ai/core/synapse/output/formatter.js +1 -0
- package/.sinapse-ai/core/synapse/runtime/hook-runtime.js +1 -0
- package/.sinapse-ai/core/synapse/scripts/generate-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/session/session-manager.js +1 -0
- package/.sinapse-ai/core/synapse/utils/atomic-write.js +1 -0
- package/.sinapse-ai/core/synapse/utils/paths.js +1 -0
- package/.sinapse-ai/core/synapse/utils/tokens.js +1 -0
- package/.sinapse-ai/core/ui/index.js +1 -0
- package/.sinapse-ai/core/ui/observability-panel.js +1 -0
- package/.sinapse-ai/core/ui/panel-renderer.js +1 -0
- package/.sinapse-ai/core/utils/output-formatter.js +1 -0
- package/.sinapse-ai/core/utils/security-utils.js +1 -0
- package/.sinapse-ai/core/utils/yaml-validator.js +1 -0
- package/.sinapse-ai/data/agent-config-requirements.yaml +1 -0
- package/.sinapse-ai/data/capability-detection.js +1 -0
- package/.sinapse-ai/data/entity-registry.yaml +1654 -1831
- package/.sinapse-ai/data/learned-patterns.yaml +1 -0
- package/.sinapse-ai/data/mcp-discipline.js +1 -0
- package/.sinapse-ai/data/mcp-tool-examples.yaml +1 -0
- package/.sinapse-ai/data/registry-update-log.jsonl +709 -0
- package/.sinapse-ai/data/tok2-validation.js +1 -0
- package/.sinapse-ai/data/tok3-token-comparison.js +1 -0
- package/.sinapse-ai/data/tool-registry.yaml +1 -0
- package/.sinapse-ai/data/tool-search-validation.js +1 -0
- package/.sinapse-ai/data/workflow-chains.yaml +1 -0
- package/.sinapse-ai/data/workflow-patterns.yaml +1 -0
- package/.sinapse-ai/data/workflow-state-schema.yaml +1 -0
- package/.sinapse-ai/development/README.md +1 -0
- package/.sinapse-ai/development/agents/analyst/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/analyst.md +90 -0
- package/.sinapse-ai/development/agents/architect.md +73 -0
- package/.sinapse-ai/development/agents/data-engineer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/data-engineer.md +1 -0
- package/.sinapse-ai/development/agents/developer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/developer.md +69 -0
- package/.sinapse-ai/development/agents/devops/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/devops.md +117 -0
- package/.sinapse-ai/development/agents/project-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/quality-gate/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/quality-gate.md +85 -0
- package/.sinapse-ai/development/agents/sprint-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/ux/MEMORY.md +1 -0
- package/.sinapse-ai/development/checklists/agent-quality-gate.md +28 -0
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +21 -0
- package/.sinapse-ai/development/checklists/code-review-checklist.md +106 -0
- package/.sinapse-ai/development/checklists/issue-triage-checklist.md +10 -0
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +17 -0
- package/.sinapse-ai/development/checklists/pr-quality-checklist.md +72 -0
- package/.sinapse-ai/development/checklists/security-deployment-checklist.md +54 -0
- package/.sinapse-ai/development/checklists/self-critique-checklist.md +20 -1
- package/.sinapse-ai/development/data/quality-dimensions-framework.md +1 -0
- package/.sinapse-ai/development/data/tier-system-framework.md +1 -0
- package/.sinapse-ai/development/scripts/activation-runtime.js +1 -0
- package/.sinapse-ai/development/scripts/agent-assignment-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -0
- package/.sinapse-ai/development/scripts/agent-exit-hooks.js +1 -0
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -0
- package/.sinapse-ai/development/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/development/scripts/backlog-manager.js +1 -0
- package/.sinapse-ai/development/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -0
- package/.sinapse-ai/development/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/development/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/development/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/development/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/development/scripts/decision-context.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-generator.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-indexer.js +1 -0
- package/.sinapse-ai/development/scripts/decision-recorder.js +1 -0
- package/.sinapse-ai/development/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -0
- package/.sinapse-ai/development/scripts/diff-generator.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-engine.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-session-manager.js +1 -1
- package/.sinapse-ai/development/scripts/generate-greeting.js +1 -0
- package/.sinapse-ai/development/scripts/git-wrapper.js +1 -1
- package/.sinapse-ai/development/scripts/greeting-builder.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-config-cli.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-preference-manager.js +1 -0
- package/.sinapse-ai/development/scripts/issue-triage.js +1 -0
- package/.sinapse-ai/development/scripts/manifest-preview.js +1 -1
- package/.sinapse-ai/development/scripts/metrics-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/migrate-task-to-v2.js +1 -0
- package/.sinapse-ai/development/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/development/scripts/pattern-learner.js +1 -1
- package/.sinapse-ai/development/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +1 -0
- package/.sinapse-ai/development/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/development/scripts/rollback-handler.js +1 -1
- package/.sinapse-ai/development/scripts/security-checker.js +1 -1
- package/.sinapse-ai/development/scripts/skill-validator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/README.md +1 -0
- package/.sinapse-ai/development/scripts/squad/index.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-analyzer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-designer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-extender.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-generator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-loader.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-migrator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-validator.js +1 -0
- package/.sinapse-ai/development/scripts/story-index-generator.js +1 -0
- package/.sinapse-ai/development/scripts/story-manager.js +1 -0
- package/.sinapse-ai/development/scripts/story-update-hook.js +1 -0
- package/.sinapse-ai/development/scripts/task-identifier-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/template-engine.js +1 -1
- package/.sinapse-ai/development/scripts/template-validator.js +1 -1
- package/.sinapse-ai/development/scripts/test-generator.js +1 -1
- package/.sinapse-ai/development/scripts/test-greeting-system.js +1 -0
- package/.sinapse-ai/development/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +1 -0
- package/.sinapse-ai/development/scripts/usage-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/validate-filenames.js +1 -0
- package/.sinapse-ai/development/scripts/validate-task-v2.js +1 -0
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +1 -0
- package/.sinapse-ai/development/scripts/version-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/workflow-navigator.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-state-manager.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-validator.js +1 -0
- package/.sinapse-ai/development/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/development/skills/debug.md +57 -0
- package/.sinapse-ai/development/skills/fast-review.md +69 -0
- package/.sinapse-ai/development/skills/research-synthesis.md +77 -0
- package/.sinapse-ai/development/skills/security-scan.md +73 -0
- package/.sinapse-ai/development/skills/verify.md +53 -0
- package/.sinapse-ai/development/tasks/add-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/advanced-elicitation.md +1 -1
- package/.sinapse-ai/development/tasks/analyst-facilitate-brainstorming.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-brownfield.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-framework.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-performance.md +1 -0
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/audit-codebase.md +1 -0
- package/.sinapse-ai/development/tasks/audit-tailwind-config.md +1 -0
- package/.sinapse-ai/development/tasks/audit-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/README.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/agent-prompt-template.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/context-loading.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/execution-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/finalization.md +1 -0
- package/.sinapse-ai/development/tasks/bootstrap-shadcn-library.md +1 -0
- package/.sinapse-ai/development/tasks/build-component.md +1 -0
- package/.sinapse-ai/development/tasks/calculate-roi.md +1 -0
- package/.sinapse-ai/development/tasks/check-docs-links.md +1 -0
- package/.sinapse-ai/development/tasks/ci-cd-configuration.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-worktrees.md +1 -0
- package/.sinapse-ai/development/tasks/collaborative-edit.md +1 -1
- package/.sinapse-ai/development/tasks/compose-molecule.md +1 -0
- package/.sinapse-ai/development/tasks/consolidate-patterns.md +1 -0
- package/.sinapse-ai/development/tasks/correct-course.md +1 -1
- package/.sinapse-ai/development/tasks/create-doc.md +1 -0
- package/.sinapse-ai/development/tasks/create-task.md +1 -1
- package/.sinapse-ai/development/tasks/db-analyze-hotpaths.md +1 -0
- package/.sinapse-ai/development/tasks/db-apply-migration.md +1 -0
- package/.sinapse-ai/development/tasks/db-bootstrap.md +1 -0
- package/.sinapse-ai/development/tasks/db-domain-modeling.md +1 -0
- package/.sinapse-ai/development/tasks/db-dry-run.md +1 -0
- package/.sinapse-ai/development/tasks/db-env-check.md +1 -0
- package/.sinapse-ai/development/tasks/db-explain.md +1 -0
- package/.sinapse-ai/development/tasks/db-impersonate.md +1 -0
- package/.sinapse-ai/development/tasks/db-load-csv.md +1 -0
- package/.sinapse-ai/development/tasks/db-policy-apply.md +1 -0
- package/.sinapse-ai/development/tasks/db-rls-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-rollback.md +1 -0
- package/.sinapse-ai/development/tasks/db-run-sql.md +1 -0
- package/.sinapse-ai/development/tasks/db-schema-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-seed.md +1 -0
- package/.sinapse-ai/development/tasks/db-smoke-test.md +1 -0
- package/.sinapse-ai/development/tasks/db-snapshot.md +1 -0
- package/.sinapse-ai/development/tasks/db-squad-integration.md +1 -0
- package/.sinapse-ai/development/tasks/db-supabase-setup.md +1 -0
- package/.sinapse-ai/development/tasks/db-verify-order.md +1 -0
- package/.sinapse-ai/development/tasks/deprecate-component.md +1 -1
- package/.sinapse-ai/development/tasks/dev-apply-qa-fixes.md +1 -0
- package/.sinapse-ai/development/tasks/dev-improve-code-quality.md +1 -1
- package/.sinapse-ai/development/tasks/dev-optimize-performance.md +1 -1
- package/.sinapse-ai/development/tasks/dev-suggest-refactoring.md +1 -1
- package/.sinapse-ai/development/tasks/dev-validate-next-story.md +1 -1
- package/.sinapse-ai/development/tasks/document-gotchas.md +1 -0
- package/.sinapse-ai/development/tasks/document-project.md +1 -1
- package/.sinapse-ai/development/tasks/export-design-tokens-dtcg.md +1 -0
- package/.sinapse-ai/development/tasks/extend-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/extract-tokens.md +1 -0
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +1 -0
- package/.sinapse-ai/development/tasks/generate-ai-frontend-prompt.md +1 -1
- package/.sinapse-ai/development/tasks/generate-documentation.md +1 -0
- package/.sinapse-ai/development/tasks/generate-migration-strategy.md +1 -0
- package/.sinapse-ai/development/tasks/generate-shock-report.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-repository-cleanup.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-version-management.md +1 -0
- package/.sinapse-ai/development/tasks/github-issue-triage.md +1 -0
- package/.sinapse-ai/development/tasks/ids-health.md +1 -0
- package/.sinapse-ai/development/tasks/ids-query.md +1 -0
- package/.sinapse-ai/development/tasks/improve-self.md +1 -1
- package/.sinapse-ai/development/tasks/index-docs.md +1 -1
- package/.sinapse-ai/development/tasks/integrate-squad.md +1 -0
- package/.sinapse-ai/development/tasks/kb-mode-interaction.md +1 -1
- package/.sinapse-ai/development/tasks/learn-patterns.md +1 -1
- package/.sinapse-ai/development/tasks/list-mcps.md +1 -0
- package/.sinapse-ai/development/tasks/mcp-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/merge-worktree.md +1 -0
- package/.sinapse-ai/development/tasks/modify-agent.md +1 -1
- package/.sinapse-ai/development/tasks/modify-task.md +1 -1
- package/.sinapse-ai/development/tasks/modify-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -0
- package/.sinapse-ai/development/tasks/po-manage-story-backlog.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story-from-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story-to-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story.md +1 -0
- package/.sinapse-ai/development/tasks/propose-modification.md +1 -1
- package/.sinapse-ai/development/tasks/publish-npm.md +1 -0
- package/.sinapse-ai/development/tasks/qa-browser-console-check.md +1 -0
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -0
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -0
- package/.sinapse-ai/development/tasks/qa-gate.md +1 -1
- package/.sinapse-ai/development/tasks/qa-generate-tests.md +1 -1
- package/.sinapse-ai/development/tasks/qa-library-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-migration-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-nfr-assess.md +1 -1
- package/.sinapse-ai/development/tasks/qa-review-proposal.md +1 -1
- package/.sinapse-ai/development/tasks/qa-risk-profile.md +1 -1
- package/.sinapse-ai/development/tasks/qa-security-checklist.md +1 -0
- package/.sinapse-ai/development/tasks/qa-test-design.md +1 -1
- package/.sinapse-ai/development/tasks/qa-trace-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/remove-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/review-contributor-pr.md +1 -0
- package/.sinapse-ai/development/tasks/run-design-system-pipeline.md +1 -0
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/search-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/security-audit.md +1 -0
- package/.sinapse-ai/development/tasks/security-scan.md +1 -0
- package/.sinapse-ai/development/tasks/session-resume.md +1 -0
- package/.sinapse-ai/development/tasks/setup-database.md +1 -0
- package/.sinapse-ai/development/tasks/setup-design-system.md +1 -0
- package/.sinapse-ai/development/tasks/setup-project-docs.md +1 -0
- package/.sinapse-ai/development/tasks/shard-doc.md +1 -1
- package/.sinapse-ai/development/tasks/sm-create-next-story.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-analyze.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-design.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-extend.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-list.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-migrate.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-validate.md +1 -0
- package/.sinapse-ai/development/tasks/sync-documentation.md +1 -1
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -0
- package/.sinapse-ai/development/tasks/tailwind-upgrade.md +1 -0
- package/.sinapse-ai/development/tasks/test-as-user.md +1 -0
- package/.sinapse-ai/development/tasks/test-validation-task.md +1 -0
- package/.sinapse-ai/development/tasks/triage-github-issues.md +1 -0
- package/.sinapse-ai/development/tasks/undo-last.md +1 -1
- package/.sinapse-ai/development/tasks/update-manifest.md +1 -1
- package/.sinapse-ai/development/tasks/update-source-tree.md +1 -0
- package/.sinapse-ai/development/tasks/ux-create-wireframe.md +1 -0
- package/.sinapse-ai/development/tasks/ux-ds-scan-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/ux-user-research.md +1 -0
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -0
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/yolo-toggle.md +1 -0
- package/.sinapse-ai/development/templates/ptc-entity-validation.md +1 -0
- package/.sinapse-ai/development/templates/ptc-qa-gate.md +1 -0
- package/.sinapse-ai/development/templates/ptc-research-aggregation.md +1 -0
- package/.sinapse-ai/development/templates/research-prompt-tmpl.md +1 -0
- package/.sinapse-ai/development/templates/service-template/README.md.hbs +159 -158
- package/.sinapse-ai/development/templates/service-template/__tests__/index.test.ts.hbs +238 -237
- package/.sinapse-ai/development/templates/service-template/client.ts.hbs +404 -403
- package/.sinapse-ai/development/templates/service-template/errors.ts.hbs +183 -182
- package/.sinapse-ai/development/templates/service-template/index.ts.hbs +121 -120
- package/.sinapse-ai/development/templates/service-template/jest.config.js +1 -0
- package/.sinapse-ai/development/templates/service-template/package.json.hbs +88 -87
- package/.sinapse-ai/development/templates/service-template/tsconfig.json +1 -0
- package/.sinapse-ai/development/templates/service-template/types.ts.hbs +146 -145
- package/.sinapse-ai/development/templates/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/agent-template.md +18 -4
- package/.sinapse-ai/development/templates/squad/checklist-template.md +14 -5
- package/.sinapse-ai/development/templates/squad/data-template.yaml +1 -0
- package/.sinapse-ai/development/templates/squad/script-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/task-template.md +8 -0
- package/.sinapse-ai/development/templates/squad/template-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/tool-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/workflow-template.yaml +8 -0
- package/.sinapse-ai/development/templates/squad-template/LICENSE +22 -21
- package/.sinapse-ai/development/templates/squad-template/README.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/agents/example-agent.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/package.json +1 -0
- package/.sinapse-ai/development/templates/squad-template/squad.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/tasks/example-task.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/templates/example-template.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/tests/example-agent.test.js +1 -0
- package/.sinapse-ai/development/templates/squad-template/workflows/example-workflow.yaml +1 -0
- package/.sinapse-ai/development/workflows/README.md +1 -0
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/design-system-build-quality.yaml +1 -0
- package/.sinapse-ai/development/workflows/development-cycle.yaml +1 -0
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +1 -0
- package/.sinapse-ai/development/workflows/fast-track.yaml +87 -0
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -0
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +1 -0
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -0
- package/.sinapse-ai/docs/standards/EXECUTOR-DECISION-TREE.md +1 -0
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -0
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-QUICK-REFERENCE.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-V2.1.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +1 -0
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +1 -0
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1 -0
- package/.sinapse-ai/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/workflow-elicitation.js +1 -1
- package/.sinapse-ai/framework-config.yaml +1 -16
- package/.sinapse-ai/hooks/ids-post-commit.js +1 -0
- package/.sinapse-ai/hooks/ids-pre-push.js +1 -0
- package/.sinapse-ai/hooks/unified/README.md +11 -11
- package/.sinapse-ai/hooks/unified/hook-interface.js +1 -0
- package/.sinapse-ai/hooks/unified/hook-registry.js +1 -0
- package/.sinapse-ai/hooks/unified/index.js +1 -0
- package/.sinapse-ai/hooks/unified/runners/precompact-runner.js +1 -0
- package/.sinapse-ai/index.esm.js +1 -1
- package/.sinapse-ai/index.js +1 -1
- package/.sinapse-ai/infrastructure/README.md +1 -0
- package/.sinapse-ai/infrastructure/contracts/compatibility/sinapse-4.0.4.yaml +1 -21
- package/.sinapse-ai/infrastructure/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider-factory.js +7 -5
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/claude-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/clickup-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/github-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/jira-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/local-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/schemas/agent-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/schemas/task-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/scripts/approach-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/asset-inventory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/atomic-layer-classifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/batch-creator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/capability-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/changelog-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/cicd-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/clickup-helpers.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/codebase-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/collect-tool-usage.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-metadata.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-search.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-cache.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/coverage-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dashboard-status-writer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dependency-impact-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/diff-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/config-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/doc-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/gitignore-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/mode-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-synchronizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/framework-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/generate-optimization-report.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/generate-settings-json.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-config-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-hooks/post-commit.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-wrapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/agent-parser.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/claude-code.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/improvement-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/improvement-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.cmd +81 -80
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.cmd +27 -26
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/usage-tracker/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/modification-risk-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/output-formatter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/path-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pattern-extractor.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-and-error-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-optimizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/plan-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter-factory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pr-review-ai.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/project-status-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-loop-orchestrator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/repository-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/sandbox-tester.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/security-checker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/sinapse-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/spot-check-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/status-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/story-worktree-hooks.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/stuck-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/subtask-verifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/template-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/template-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-quality-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-utilities-fast.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-utilities.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/tool-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/usage-analytics.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-agents.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-claude-integration.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +3 -1
- package/.sinapse-ai/infrastructure/scripts/validate-output-pattern.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-user-profile.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/visual-impact-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/worktree-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/infrastructure/templates/coderabbit.yaml.template +280 -279
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/README.md +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/ci.yml.template +170 -169
- package/.sinapse-ai/infrastructure/templates/github-workflows/pr-automation.yml.template +331 -330
- package/.sinapse-ai/infrastructure/templates/github-workflows/release.yml.template +197 -196
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +19 -18
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-node.tmpl +86 -85
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-python.tmpl +146 -145
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-sinapse-base.tmpl +64 -63
- package/.sinapse-ai/infrastructure/templates/project-docs/coding-standards-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/source-tree-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/tech-stack-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +183 -182
- package/.sinapse-ai/infrastructure/tests/project-status-loader.test.js +1 -0
- package/.sinapse-ai/infrastructure/tests/regression-suite-v2.md +1 -0
- package/.sinapse-ai/infrastructure/tests/validate-module.js +1 -0
- package/.sinapse-ai/infrastructure/tests/worktree-manager.test.js +1 -0
- package/.sinapse-ai/infrastructure/tools/README.md +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/github-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/llm-routing.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/railway-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/supabase-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/local/ffmpeg.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/21st-dev-magic.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/browser.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/clickup.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/context7.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/desktop-commander.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/exa.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/google-workspace.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/n8n.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/supabase.yaml +1 -0
- package/.sinapse-ai/install-manifest.yaml +1933 -1937
- package/.sinapse-ai/local-config.yaml.template +65 -71
- package/.sinapse-ai/manifests/agents.csv +29 -0
- package/.sinapse-ai/manifests/schema/manifest-schema.json +1 -0
- package/.sinapse-ai/manifests/tasks.csv +204 -0
- package/.sinapse-ai/manifests/workers.csv +196 -0
- package/.sinapse-ai/monitor/hooks/lib/__init__.py +2 -1
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +59 -58
- package/.sinapse-ai/monitor/hooks/lib/send_event.py +48 -47
- package/.sinapse-ai/monitor/hooks/notification.py +30 -29
- package/.sinapse-ai/monitor/hooks/post_tool_use.py +46 -45
- package/.sinapse-ai/monitor/hooks/pre_compact.py +30 -29
- package/.sinapse-ai/monitor/hooks/pre_tool_use.py +41 -40
- package/.sinapse-ai/monitor/hooks/stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/subagent_stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/user_prompt_submit.py +39 -38
- package/.sinapse-ai/presets/README.md +1 -0
- package/.sinapse-ai/product/README.md +1 -0
- package/.sinapse-ai/product/checklists/accessibility-wcag-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/architect-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/change-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/component-quality-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/database-design-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-predeploy-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-rollback-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/migration-readiness-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pattern-audit-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pm-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/po-master-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/pre-push-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/release-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/story-dod-checklist.md +1 -1
- package/.sinapse-ai/product/data/atomic-design-principles.md +1 -0
- package/.sinapse-ai/product/data/brainstorming-techniques.md +1 -1
- package/.sinapse-ai/product/data/consolidation-algorithms.md +1 -0
- package/.sinapse-ai/product/data/database-best-practices.md +1 -0
- package/.sinapse-ai/product/data/design-token-best-practices.md +1 -0
- package/.sinapse-ai/product/data/elicitation-methods.md +1 -1
- package/.sinapse-ai/product/data/integration-patterns.md +1 -0
- package/.sinapse-ai/product/data/migration-safety-guide.md +1 -0
- package/.sinapse-ai/product/data/mode-selection-best-practices.md +1 -0
- package/.sinapse-ai/product/data/postgres-tuning-guide.md +1 -0
- package/.sinapse-ai/product/data/rls-security-patterns.md +1 -0
- package/.sinapse-ai/product/data/roi-calculation-guide.md +1 -0
- package/.sinapse-ai/product/data/supabase-patterns.md +1 -0
- package/.sinapse-ai/product/data/test-levels-framework.md +1 -1
- package/.sinapse-ai/product/data/test-priorities-matrix.md +1 -1
- package/.sinapse-ai/product/data/wcag-compliance-guide.md +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-inline-greeting.yaml +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-template.md +1 -0
- package/.sinapse-ai/product/templates/adr.hbs +126 -125
- package/.sinapse-ai/product/templates/agent-template.yaml +1 -1
- package/.sinapse-ai/product/templates/architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brainstorming-output-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-risk-report-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/changelog-template.md +1 -0
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +1 -0
- package/.sinapse-ai/product/templates/competitor-analysis-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/component-react-tmpl.tsx +1 -0
- package/.sinapse-ai/product/templates/current-approach-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/dbdr.hbs +242 -241
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/ds-artifact-analysis.md +1 -0
- package/.sinapse-ai/product/templates/engine/elicitation.js +1 -0
- package/.sinapse-ai/product/templates/engine/index.js +1 -0
- package/.sinapse-ai/product/templates/engine/loader.js +1 -0
- package/.sinapse-ai/product/templates/engine/renderer.js +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/adr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/dbdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/epic.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/pmdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd-v2.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/story.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/task.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/validator.js +1 -0
- package/.sinapse-ai/product/templates/epic.hbs +213 -212
- package/.sinapse-ai/product/templates/eslintrc-security.json +1 -0
- package/.sinapse-ai/product/templates/front-end-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/front-end-spec-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/fullstack-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/github-actions-cd.yml +1 -0
- package/.sinapse-ai/product/templates/github-actions-ci.yml +1 -0
- package/.sinapse-ai/product/templates/github-pr-template.md +1 -0
- package/.sinapse-ai/product/templates/gordon-mcp.yaml +1 -0
- package/.sinapse-ai/product/templates/index-strategy-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/market-research-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/mcp-workflow.js +1 -0
- package/.sinapse-ai/product/templates/migration-plan-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/migration-strategy-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-checklist-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -0
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +1 -0
- package/.sinapse-ai/product/templates/pmdr.hbs +187 -186
- package/.sinapse-ai/product/templates/prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/prd-v2.0.hbs +217 -216
- package/.sinapse-ai/product/templates/prd.hbs +202 -201
- package/.sinapse-ai/product/templates/project-brief-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/qa-gate-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/qa-report-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/rls-policies-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/schema-design-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/shock-report-tmpl.html +1 -0
- package/.sinapse-ai/product/templates/spec-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/state-persistence-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +1 -0
- package/.sinapse-ai/product/templates/statusline/track-agent.sh +1 -0
- package/.sinapse-ai/product/templates/story-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/story.hbs +264 -263
- package/.sinapse-ai/product/templates/task-execution-report.md +1 -0
- package/.sinapse-ai/product/templates/task-template.md +1 -1
- package/.sinapse-ai/product/templates/task.hbs +171 -170
- package/.sinapse-ai/product/templates/tmpl-comment-on-examples.sql +159 -158
- package/.sinapse-ai/product/templates/tmpl-migration-script.sql +92 -91
- package/.sinapse-ai/product/templates/tmpl-rls-granular-policies.sql +105 -104
- package/.sinapse-ai/product/templates/tmpl-rls-kiss-policy.sql +11 -10
- package/.sinapse-ai/product/templates/tmpl-rls-roles.sql +136 -135
- package/.sinapse-ai/product/templates/tmpl-rls-simple.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-rls-tenant.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-rollback-script.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-seed-data.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-smoke-test.sql +17 -16
- package/.sinapse-ai/product/templates/tmpl-staging-copy-merge.sql +140 -139
- package/.sinapse-ai/product/templates/tmpl-stored-proc.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-trigger.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-view-materialized.sql +134 -133
- package/.sinapse-ai/product/templates/tmpl-view.sql +178 -177
- package/.sinapse-ai/product/templates/token-exports-css-tmpl.css +1 -0
- package/.sinapse-ai/product/templates/token-exports-tailwind-tmpl.js +1 -0
- package/.sinapse-ai/product/templates/tokens-schema-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/workflow-template.yaml +1 -1
- package/.sinapse-ai/quality/metrics-collector.js +1 -0
- package/.sinapse-ai/quality/metrics-hook.js +1 -0
- package/.sinapse-ai/quality/schemas/quality-metrics.schema.json +1 -0
- package/.sinapse-ai/quality/seed-metrics.js +1 -0
- package/.sinapse-ai/schemas/README.md +1 -0
- package/.sinapse-ai/schemas/validate-v3-schema.js +1 -0
- package/.sinapse-ai/scripts/README.md +1 -0
- package/.sinapse-ai/scripts/batch-migrate-phase1.ps1 +37 -36
- package/.sinapse-ai/scripts/batch-migrate-phase2.ps1 +89 -88
- package/.sinapse-ai/scripts/batch-migrate-phase3.ps1 +46 -45
- package/.sinapse-ai/scripts/command-execution-hook.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/diagnose-npx-issue.ps1 +97 -96
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/README.md +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/index.html +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/public/favicon.svg +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/App.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useAutoRefresh.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useHealthData.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/main.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/App.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/index.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/vite.config.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.cmd +86 -85
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.ps1 +118 -117
- package/.sinapse-ai/scripts/migrate-framework-docs.sh +1 -0
- package/.sinapse-ai/scripts/pm.sh +1 -0
- package/.sinapse-ai/scripts/session-context-loader.js +1 -0
- package/.sinapse-ai/scripts/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/scripts/test-template-system.js +1 -1
- package/.sinapse-ai/scripts/validate-phase1.ps1 +36 -35
- package/.sinapse-ai/scripts/workflow-management.md +1 -0
- package/.sinapse-ai/utils/filters/constants.js +1 -0
- package/.sinapse-ai/utils/filters/content-filter.js +1 -0
- package/.sinapse-ai/utils/filters/field-filter.js +1 -0
- package/.sinapse-ai/utils/filters/index.js +1 -0
- package/.sinapse-ai/utils/filters/schema-filter.js +1 -0
- package/.sinapse-ai/utils/format-duration.js +1 -0
- package/.sinapse-ai/utils/sinapse-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/confidence-scorer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/integration.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/suggestion-engine.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/wave-analyzer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/workflow-registry.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/confidence-scorer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/output-formatter.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/suggestion-engine.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/capture-hook.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/gotcha-registry.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-capture.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-store.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/qa-feedback.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/semantic-search.js +1 -0
- package/.sinapse-ai/workflow-intelligence/registry/workflow-registry.js +1 -0
- package/LICENSE +34 -33
- package/README.en.md +192 -229
- package/README.md +118 -308
- package/bin/modules/mcp-installer.js +1 -0
- package/bin/sinapse-graph.js +1 -0
- package/bin/sinapse-ids.js +1 -0
- package/bin/sinapse-minimal.js +1 -0
- package/bin/utils/detect-fsmonitor.js +1 -0
- package/bin/utils/framework-guard.js +1 -0
- package/bin/utils/install-errors.js +1 -0
- package/bin/utils/install-transaction.js +1 -0
- package/bin/utils/pro-detector.js +1 -0
- package/docs/README.md +1 -0
- package/docs/codex-integration-process.md +12 -160
- package/docs/codex-parity-program.md +18 -661
- package/docs/examples/squads/basic-squad/README.md +1 -0
- package/docs/examples/squads/basic-squad/agents/greeter-agent.md +1 -0
- package/docs/examples/squads/basic-squad/tasks/greet-user.md +1 -0
- package/docs/examples/squads/multi-agent-squad/README.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/lead-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/researcher-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/writer-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/research-topic.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/write-report.md +1 -0
- package/docs/examples/squads/squad-with-tools/README.md +1 -0
- package/docs/examples/squads/squad-with-tools/agents/analyzer-agent.md +1 -0
- package/docs/examples/squads/squad-with-tools/tools/text-analyzer.js +1 -0
- package/docs/framework/codex-parity/codex-integration-process.md +171 -0
- package/docs/framework/codex-parity/codex-parity-program.md +670 -0
- package/docs/framework/config-override-guide.md +1 -0
- package/docs/{core-architecture.md → framework/core-architecture.md} +1 -0
- package/docs/framework/entity-layer-classification.md +1 -0
- package/docs/{glossary.md → framework/glossary.md} +1 -0
- package/docs/framework/performance-tips.md +1 -0
- package/docs/{00-shared-activation-pipeline.md → framework/shared-activation-pipeline.md} +1 -0
- package/docs/framework/source-tree.md +1 -0
- package/docs/framework/squad-creation-standards.md +331 -0
- package/docs/{versioning-and-releases.md → framework/versioning-and-releases.md} +1 -0
- package/docs/guides/README.md +1 -0
- package/docs/guides/ade-guide.md +1 -0
- package/docs/guides/agent-reference.md +131 -194
- package/docs/guides/agent-selection-guide.md +1 -0
- package/docs/guides/agents/ANALYST-SYSTEM.md +1 -0
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +1 -0
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +1 -0
- package/docs/guides/agents/DEV-SYSTEM.md +1 -0
- package/docs/guides/agents/DEVOPS-SYSTEM.md +1 -0
- package/docs/guides/agents/PM-SYSTEM.md +1 -0
- package/docs/guides/agents/QA-SYSTEM.md +1 -0
- package/docs/guides/agents/SINAPSE-AGENT-FLOWS.zip +0 -0
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +1 -0
- package/docs/guides/agents/SM-SYSTEM.md +1 -0
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +1 -0
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +1 -0
- package/docs/guides/agents/traces/README.md +1 -0
- package/docs/guides/agents/traces/analyst-execution-trace.md +1 -0
- package/docs/guides/agents/traces/architect-execution-trace.md +1 -0
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +1 -0
- package/docs/guides/agents/traces/dev-execution-trace.md +1 -0
- package/docs/guides/agents/traces/devops-execution-trace.md +1 -0
- package/docs/guides/agents/traces/execution-traces.zip +0 -0
- package/docs/guides/agents/traces/pm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/po-execution-trace.md +1 -0
- package/docs/guides/agents/traces/qa-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sinapse-orqx-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +1 -0
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +1 -0
- package/docs/guides/api-reference.md +1 -0
- package/docs/guides/build-recovery-guide.md +1 -0
- package/docs/guides/code-graph-mcp-setup.md +1 -0
- package/docs/guides/coderabbit/README.md +1 -0
- package/docs/guides/config-migration-guide.md +1 -0
- package/docs/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/guides/development-setup.md +1 -0
- package/docs/{docker-mcp-setup.md → guides/docker-mcp-setup.md} +1 -0
- package/docs/guides/ide-integration.md +237 -0
- package/docs/guides/ide-sync-guide.md +1 -0
- package/docs/guides/mcp/desktop-commander.md +1 -0
- package/docs/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/guides/mcp-global-setup.md +1 -0
- package/docs/{meta-agent-commands.md → guides/meta-agent-commands.md} +1 -1
- package/docs/guides/permission-modes.md +1 -0
- package/docs/guides/project-status-feature.md +1 -0
- package/docs/guides/quality-dashboard.md +1 -0
- package/docs/guides/quality-gates.md +1 -0
- package/docs/guides/service-discovery.md +1 -0
- package/docs/guides/squad-examples/README.md +1 -0
- package/docs/guides/squad-examples/data-processor-squad.yaml +1 -0
- package/docs/guides/squad-examples/simple-agent.yaml +1 -0
- package/docs/guides/squad-migration.md +1 -0
- package/docs/guides/testing-guide.md +1 -0
- package/docs/guides/vertical-trails/data-engineer-trail.md +1 -0
- package/docs/guides/vertical-trails/devops-trail.md +1 -0
- package/docs/guides/vertical-trails/squad-creator-trail.md +1 -0
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/DESIGN-SYSTEM-BUILD-QUALITY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +1 -0
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +1 -0
- package/docs/guides/workflows/SINAPSE-WORKFLOWS.zip +0 -0
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +1 -0
- package/docs/guides/workflows/xref-phase3-scripts.md +1 -0
- package/docs/guides/workflows/xref-phase5-core.md +1 -0
- package/docs/ide-integration.md +30 -231
- package/docs/pt/ENVIRONMENT.md +1 -0
- package/docs/pt/README.md +1 -0
- package/docs/pt/agents/archetype-rationale.md +1 -0
- package/docs/pt/agents/persona-definitions.md +1 -0
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +1 -0
- package/docs/pt/architecture/ade-architecture.md +1 -0
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +1 -0
- package/docs/pt/architecture/adr/adr-isolated-vm-decision.md +1 -0
- package/docs/pt/architecture/agent-config-audit.md +1 -0
- package/docs/pt/architecture/agent-responsibility-matrix.md +1 -0
- package/docs/pt/architecture/agent-tool-integration-guide.md +1 -0
- package/docs/pt/architecture/contribution-workflow-research.md +1 -0
- package/docs/pt/architecture/dashboard-architecture.md +1 -0
- package/docs/pt/architecture/dashboard-realtime.md +1 -0
- package/docs/pt/architecture/hcs-check-specifications.md +1 -0
- package/docs/pt/architecture/hcs-execution-modes.md +1 -0
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -0
- package/docs/pt/architecture/high-level-architecture.md +1 -0
- package/docs/pt/architecture/introduction.md +1 -0
- package/docs/pt/architecture/mcp-api-keys-management.md +1 -0
- package/docs/pt/architecture/mcp-system-diagrams.md +1 -0
- package/docs/pt/architecture/module-system.md +1 -0
- package/docs/pt/architecture/source-tree.md +1 -0
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +1 -0
- package/docs/pt/architecture/utility-integration-guide.md +1 -0
- package/docs/pt/contributing.md +1 -0
- package/docs/pt/core-architecture.md +1 -0
- package/docs/pt/docker-mcp-setup.md +1 -0
- package/docs/pt/framework/source-tree.md +1 -0
- package/docs/pt/getting-started.md +1 -0
- package/docs/pt/guides/README.md +1 -0
- package/docs/pt/guides/ade-guide.md +1 -0
- package/docs/pt/guides/agent-selection-guide.md +1 -0
- package/docs/pt/guides/api-reference.md +1 -0
- package/docs/pt/guides/build-recovery-guide.md +1 -0
- package/docs/pt/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/pt/guides/development-setup.md +1 -0
- package/docs/pt/guides/ide-sync-guide.md +1 -0
- package/docs/pt/guides/mcp/desktop-commander.md +1 -0
- package/docs/pt/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/pt/guides/mcp-global-setup.md +1 -0
- package/docs/pt/guides/permission-modes.md +1 -0
- package/docs/pt/guides/project-status-feature.md +1 -0
- package/docs/pt/guides/quality-dashboard.md +1 -0
- package/docs/pt/guides/quality-gates.md +1 -0
- package/docs/pt/guides/service-discovery.md +1 -0
- package/docs/pt/guides/squad-examples/README.md +1 -0
- package/docs/pt/guides/squad-migration.md +1 -0
- package/docs/pt/guides/testing-guide.md +1 -0
- package/docs/pt/guides/user-guide.md +1 -0
- package/docs/pt/guides/workflows-guide.md +1 -0
- package/docs/pt/installation/troubleshooting.md +1 -0
- package/docs/pt/installation/v4-quick-start.md +1 -0
- package/docs/pt/meta-agent-commands.md +1 -0
- package/docs/pt/performance-tuning-guide.md +1 -0
- package/docs/pt/platforms/claude-code.md +1 -0
- package/docs/pt/sinapse-nomenclature-specification.md +1 -0
- package/docs/pt/specifications/docs-agent-technical-specification.md +1 -0
- package/docs/pt/troubleshooting.md +1 -0
- package/docs/pt/versioning-and-releases.md +1 -0
- package/docs/sinapse-agent-flows/README.md +1 -0
- package/docs/sinapse-agent-flows/analyst-system.md +1 -0
- package/docs/sinapse-agent-flows/architect-system.md +1 -0
- package/docs/sinapse-agent-flows/data-engineer-system.md +1 -0
- package/docs/sinapse-agent-flows/dev-system.md +1 -0
- package/docs/sinapse-agent-flows/devops-system.md +1 -0
- package/docs/sinapse-agent-flows/pm-system.md +1 -0
- package/docs/sinapse-agent-flows/qa-system.md +1 -0
- package/docs/sinapse-agent-flows/sinapse-orqx-system.md +1 -0
- package/docs/sinapse-agent-flows/sm-system.md +1 -0
- package/docs/sinapse-agent-flows/squad-creator-system.md +1 -0
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +1 -0
- package/docs/sinapse-workflows/README.md +1 -0
- package/docs/sinapse-workflows/auto-worktree-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/design-system-build-quality-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/qa-loop-workflow.md +1 -0
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +1 -0
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +1 -0
- package/package.json +1 -1
- package/packages/installer/package.json +1 -0
- package/packages/installer/src/__tests__/performance-benchmark.js +1 -0
- package/packages/installer/src/config/templates/env-template.js +1 -0
- package/packages/installer/src/config/validation/config-validator.js +1 -0
- package/packages/installer/src/detection/detect-project-type.js +1 -0
- package/packages/installer/src/installer/dependency-installer.js +1 -0
- package/packages/installer/src/installer/file-hasher.js +1 -0
- package/packages/installer/src/installer/manifest-signature.js +1 -0
- package/packages/installer/src/merger/index.js +1 -0
- package/packages/installer/src/merger/parsers/env-parser.js +1 -0
- package/packages/installer/src/merger/parsers/markdown-section-parser.js +1 -0
- package/packages/installer/src/merger/strategies/base-merger.js +1 -0
- package/packages/installer/src/merger/strategies/env-merger.js +1 -0
- package/packages/installer/src/merger/strategies/index.js +1 -0
- package/packages/installer/src/merger/strategies/markdown-merger.js +1 -0
- package/packages/installer/src/merger/strategies/replace-merger.js +1 -0
- package/packages/installer/src/merger/strategies/yaml-merger.js +1 -0
- package/packages/installer/src/merger/types.js +1 -0
- package/packages/installer/src/updater/index.js +1 -0
- package/packages/installer/src/utils/sinapse-colors.js +1 -0
- package/packages/installer/src/wizard/ide-selector.js +1 -0
- package/packages/installer/src/wizard/validation/index.js +1 -0
- package/packages/installer/src/wizard/validation/validators/config-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/dependency-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/mcp-health-checker.js +1 -0
- package/packages/installer/src/wizard/validators.js +1 -0
- package/packages/installer/src/wizard/wizard.js +1 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +1 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +1 -0
- package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-checks.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-orchestrator.test.js +1 -0
- package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +1 -0
- package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +1 -0
- package/packages/installer/tests/unit/merger/markdown-merger.test.js +1 -0
- package/packages/installer/tests/unit/merger/strategies.test.js +1 -0
- package/packages/installer/tests/unit/merger/yaml-merger.test.js +1 -0
- package/packages/sinapse-install/README.md +1 -0
- package/packages/sinapse-install/src/dep-checker.js +1 -0
- package/packages/sinapse-install/src/edmcp/index.js +1 -0
- package/packages/sinapse-install/src/os-detector.js +1 -0
- package/packages/sinapse-pro-cli/src/recover.js +1 -0
- package/scripts/check-markdown-links.py +353 -352
- package/scripts/code-intel-health-check.js +1 -0
- package/scripts/dashboard-parallel-dev.sh +1 -0
- package/scripts/dashboard-parallel-phase3.sh +1 -0
- package/scripts/dashboard-parallel-phase4.sh +1 -0
- package/scripts/install-monitor-hooks.sh +1 -0
- package/scripts/package-synapse.js +1 -0
- package/scripts/semantic-lint.js +1 -0
- package/scripts/sign-manifest.ps1 +131 -130
- package/scripts/validate-sinapse-ai-deps.js +1 -0
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -0
- package/sinapse/knowledge-base/routing-catalog.md +1 -0
- package/sinapse/squad.yaml +1 -0
- package/sinapse/tasks/compose-multi-squad-plan.md +1 -0
- package/sinapse/tasks/coordinate-cross-squad.md +1 -0
- package/sinapse/tasks/diagnose-and-route.md +1 -0
- package/sinapse/tasks/onboard-user.md +1 -0
- package/sinapse/tasks/resolve-conflict.md +1 -0
- package/sinapse/tasks/squad-status-report.md +1 -0
- package/sinapse/tasks/strategic-brief.md +1 -0
- package/squads/claude-code-mastery/README.md +1 -0
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +1 -0
- package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/change-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/context-rot-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/pre-push-checklist.md +1 -0
- package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +1 -0
- package/squads/claude-code-mastery/data/hook-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +1 -0
- package/squads/claude-code-mastery/data/project-type-signatures.yaml +1 -0
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +927 -0
- package/squads/claude-code-mastery/scripts/validate-setup.js +1 -0
- package/squads/claude-code-mastery/templates/claude-md-fullstack.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-library.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-microservices.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-mobile.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-monorepo.md +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +1 -0
- package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +1 -0
- package/squads/squad-animations/knowledge-base/unicorn-studio-pipeline.md +197 -0
- package/squads/squad-animations/squad.yaml +7 -2
- package/squads/squad-animations/tasks/create-unicorn-animation.md +61 -0
- package/squads/squad-animations/tasks/identify-website-animation.md +120 -0
- package/squads/squad-brand/knowledge-base/archetype-brand-mapping.md +12 -1
- package/squads/squad-brand/knowledge-base/brand-activism-cultural-branding.md +216 -0
- package/squads/squad-brand/knowledge-base/brand-audit-criteria.md +58 -0
- package/squads/squad-brand/knowledge-base/brand-digital-strategy.md +188 -0
- package/squads/squad-brand/knowledge-base/brand-experience-bx.md +227 -0
- package/squads/squad-brand/knowledge-base/brand-legal-ip.md +222 -0
- package/squads/squad-brand/knowledge-base/brand-naming-framework.md +163 -0
- package/squads/squad-brand/knowledge-base/brand-rebranding-framework.md +208 -0
- package/squads/squad-brand/knowledge-base/brand-strategy-frameworks-catalog.md +330 -52
- package/squads/squad-brand/knowledge-base/brand-valuation-frameworks.md +92 -13
- package/squads/squad-brand/knowledge-base/branding-master-reference.md +1001 -0
- package/squads/squad-brand/knowledge-base/brazilian-branding-context.md +208 -0
- package/squads/squad-brand/knowledge-base/color-psychology.md +25 -12
- package/squads/squad-brand/knowledge-base/employer-personal-branding.md +206 -0
- package/squads/squad-brand/knowledge-base/routing-catalog.md +34 -0
- package/squads/squad-brand/knowledge-base/sonic-branding-principles.md +6 -1
- package/squads/squad-brand/knowledge-base/typography-personality.md +34 -0
- package/squads/squad-claude/knowledge-base/claude-code-internals-deep.md +578 -0
- package/squads/squad-claude/knowledge-base/claude-code-tools-reference.md +313 -0
- package/squads/squad-claude/knowledge-base/context-window-optimization.md +334 -0
- package/squads/squad-claude/knowledge-base/knowledge-architecture-reference.md +403 -0
- package/squads/squad-claude/knowledge-base/memory-systems-reference.md +412 -0
- package/squads/squad-claude/knowledge-base/obsidian-claude-integration.md +423 -0
- package/squads/squad-claude/knowledge-base/retrieval-augmented-generation.md +320 -0
- package/squads/squad-claude/knowledge-base/skill-creation-patterns.md +380 -0
- package/squads/squad-claude/knowledge-base/swarm-orchestration-patterns.md +411 -0
- package/squads/squad-cloning/knowledge-base/agent-generation-guide.md +89 -0
- package/squads/squad-cloning/knowledge-base/clone-quality-assurance.md +211 -0
- package/squads/squad-cloning/knowledge-base/cognitive-dna-framework.md +90 -0
- package/squads/squad-cloning/knowledge-base/confidence-scoring.md +51 -0
- package/squads/squad-cloning/knowledge-base/cross-squad-deployment.md +47 -0
- package/squads/squad-cloning/knowledge-base/ethical-guidelines.md +237 -0
- package/squads/squad-cloning/knowledge-base/knowledge-graph-for-clones.md +295 -0
- package/squads/squad-cloning/knowledge-base/memory-architecture-for-clones.md +229 -0
- package/squads/squad-cloning/knowledge-base/multi-agent-deployment-patterns.md +320 -0
- package/squads/squad-cloning/knowledge-base/skill-standard-for-clones.md +262 -0
- package/squads/squad-cloning/knowledge-base/sop-extraction-guide.md +243 -0
- package/squads/squad-cloning/knowledge-base/source-classification.md +68 -0
- package/squads/squad-commercial/knowledge-base/account-based-selling.md +206 -0
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +14 -0
- package/squads/squad-commercial/knowledge-base/ai-in-sales.md +199 -0
- package/squads/squad-commercial/knowledge-base/brazilian-sales-context.md +195 -0
- package/squads/squad-commercial/knowledge-base/commercial-analytics-reporting.md +120 -1
- package/squads/squad-commercial/knowledge-base/customer-success-operations.md +83 -2
- package/squads/squad-commercial/knowledge-base/negotiation-frameworks.md +166 -0
- package/squads/squad-commercial/knowledge-base/plg-pls-framework.md +160 -0
- package/squads/squad-commercial/knowledge-base/prospecting-pipeline-generation.md +69 -0
- package/squads/squad-commercial/knowledge-base/revenue-architecture-models.md +153 -1
- package/squads/squad-commercial/knowledge-base/sales-compensation-brazil.md +210 -0
- package/squads/squad-commercial/knowledge-base/sales-enablement-playbook.md +260 -0
- package/squads/squad-commercial/knowledge-base/sales-methodology-comparison.md +185 -0
- package/squads/squad-commercial/knowledge-base/sales-qualification-methodology.md +97 -4
- package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1123 -0
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +104 -0
- package/squads/squad-content/knowledge-base/brazilian-content-context.md +176 -0
- package/squads/squad-content/knowledge-base/competitor-analysis-methods.md +40 -1
- package/squads/squad-content/knowledge-base/content-architecture-taxonomy.md +206 -0
- package/squads/squad-content/knowledge-base/content-formats-encyclopedia.md +58 -1
- package/squads/squad-content/knowledge-base/content-governance-principles.md +132 -1
- package/squads/squad-content/knowledge-base/content-measurement-framework.md +99 -3
- package/squads/squad-content/knowledge-base/content-references-bibliography.md +130 -0
- package/squads/squad-content/knowledge-base/content-repurposing-playbook.md +107 -1
- package/squads/squad-content/knowledge-base/content-strategy-master-reference.md +1097 -0
- package/squads/squad-content/knowledge-base/content-tech-stack.md +150 -0
- package/squads/squad-content/knowledge-base/copywriting-formulas-library.md +188 -0
- package/squads/squad-content/knowledge-base/editorial-strategy-frameworks.md +148 -5
- package/squads/squad-content/knowledge-base/email-newsletter-strategy.md +161 -0
- package/squads/squad-content/knowledge-base/hook-formulas-library.md +88 -0
- package/squads/squad-content/knowledge-base/narrative-structures-library.md +72 -1
- package/squads/squad-content/knowledge-base/platform-algorithm-intelligence.md +86 -1
- package/squads/squad-content/knowledge-base/seo-content-deep.md +231 -0
- package/squads/squad-content/knowledge-base/social-algorithms-master-reference.md +1007 -0
- package/squads/squad-content/knowledge-base/video-audio-content-playbook.md +218 -0
- package/squads/squad-copy/knowledge-base/ai-copy-production.md +254 -0
- package/squads/squad-copy/knowledge-base/brazilian-copywriting-context.md +242 -0
- package/squads/squad-copy/knowledge-base/copywriting-formulas-encyclopedia.md +164 -80
- package/squads/squad-copy/knowledge-base/email-copywriting-system.md +299 -0
- package/squads/squad-copy/knowledge-base/headline-patterns-library.md +70 -0
- package/squads/squad-copy/knowledge-base/landing-page-copy-architecture.md +267 -0
- package/squads/squad-copy/knowledge-base/legendary-copywriters-frameworks.md +128 -0
- package/squads/squad-copy/knowledge-base/power-words-catalog.md +205 -0
- package/squads/squad-copy/knowledge-base/seo-copywriting.md +255 -0
- package/squads/squad-copy/knowledge-base/storytelling-frameworks.md +103 -0
- package/squads/squad-copy/knowledge-base/video-script-copywriting.md +239 -0
- package/squads/squad-council/knowledge-base/brand-strategy-models.md +193 -0
- package/squads/squad-council/knowledge-base/decision-frameworks-encyclopedia.md +266 -0
- package/squads/squad-council/knowledge-base/financial-strategy-models.md +239 -0
- package/squads/squad-council/knowledge-base/growth-strategy-models.md +267 -0
- package/squads/squad-council/knowledge-base/innovation-disruption-frameworks.md +193 -0
- package/squads/squad-council/knowledge-base/market-analysis-frameworks.md +240 -0
- package/squads/squad-council/knowledge-base/organizational-leadership-models.md +212 -0
- package/squads/squad-council/knowledge-base/sales-strategy-models.md +215 -0
- package/squads/squad-courses/knowledge-base/adult-learning-principles.md +75 -0
- package/squads/squad-courses/knowledge-base/assessment-design-guide.md +68 -0
- package/squads/squad-courses/knowledge-base/course-launch-strategy.md +251 -0
- package/squads/squad-courses/knowledge-base/course-pricing-models.md +95 -0
- package/squads/squad-courses/knowledge-base/domain-advocacia-curriculum.md +385 -0
- package/squads/squad-courses/knowledge-base/domain-contabilidade-curriculum.md +266 -0
- package/squads/squad-courses/knowledge-base/engagement-retention-patterns.md +93 -0
- package/squads/squad-courses/knowledge-base/instructional-design-frameworks.md +149 -2
- package/squads/squad-courses/knowledge-base/platform-comparison.md +68 -0
- package/squads/squad-courses/knowledge-base/video-production-guide.md +70 -0
- package/squads/squad-cybersecurity/knowledge-base/authentication-security.md +393 -0
- package/squads/squad-cybersecurity/knowledge-base/cloud-security-reference.md +363 -0
- package/squads/squad-cybersecurity/knowledge-base/compliance-frameworks.md +273 -0
- package/squads/squad-cybersecurity/knowledge-base/database-security.md +438 -0
- package/squads/squad-cybersecurity/knowledge-base/incident-response-playbook.md +420 -0
- package/squads/squad-cybersecurity/knowledge-base/network-security-reference.md +477 -0
- package/squads/squad-cybersecurity/knowledge-base/owasp-top-10-reference.md +362 -0
- package/squads/squad-cybersecurity/knowledge-base/penetration-testing-methodology.md +350 -0
- package/squads/squad-cybersecurity/knowledge-base/supply-chain-security.md +311 -0
- package/squads/squad-cybersecurity/knowledge-base/vulnerability-management.md +349 -0
- package/squads/squad-cybersecurity/knowledge-base/zero-trust-architecture.md +225 -0
- package/squads/squad-design/knowledge-base/brazilian-design-context.md +223 -0
- package/squads/squad-design/knowledge-base/component-api-patterns.md +208 -4
- package/squads/squad-design/knowledge-base/design-system-master-reference.md +1302 -0
- package/squads/squad-design/knowledge-base/design-systems-frameworks.md +433 -25
- package/squads/squad-design/knowledge-base/design-to-code-pipeline.md +375 -0
- package/squads/squad-design/knowledge-base/design-token-architecture.md +259 -4
- package/squads/squad-design/knowledge-base/designops-maturity.md +312 -0
- package/squads/squad-design/knowledge-base/famous-design-systems-study.md +291 -0
- package/squads/squad-design/knowledge-base/responsive-modern-css.md +96 -4
- package/squads/squad-design/knowledge-base/wcag-aria-reference.md +117 -5
- package/squads/squad-design/knowledge-base/web-performance-reference.md +127 -4
- package/squads/squad-finance/knowledge-base/brazilian-taxation.md +263 -0
- package/squads/squad-finance/knowledge-base/capital-budgeting.md +229 -0
- package/squads/squad-finance/knowledge-base/cash-flow-management.md +220 -0
- package/squads/squad-finance/knowledge-base/contabilidade-master-reference.md +998 -0
- package/squads/squad-finance/knowledge-base/corporate-finance-frameworks.md +272 -0
- package/squads/squad-finance/knowledge-base/finance-master-reference.md +946 -0
- package/squads/squad-finance/knowledge-base/financial-reporting-analysis.md +316 -0
- package/squads/squad-finance/knowledge-base/fintech-brazilian-context.md +242 -0
- package/squads/squad-finance/knowledge-base/fpa-planning-frameworks.md +286 -0
- package/squads/squad-finance/knowledge-base/ma-and-transactions.md +285 -0
- package/squads/squad-finance/knowledge-base/risk-management.md +233 -0
- package/squads/squad-finance/knowledge-base/startups-venture-capital.md +337 -0
- package/squads/squad-finance/knowledge-base/valuation-methods.md +254 -0
- package/squads/squad-growth/knowledge-base/ai-growth-playbook.md +216 -0
- package/squads/squad-growth/knowledge-base/attribution-models.md +78 -0
- package/squads/squad-growth/knowledge-base/brazilian-growth-context.md +208 -0
- package/squads/squad-growth/knowledge-base/community-led-growth.md +175 -0
- package/squads/squad-growth/knowledge-base/content-marketing-flywheel.md +190 -0
- package/squads/squad-growth/knowledge-base/cro-experimentation-framework.md +93 -2
- package/squads/squad-growth/knowledge-base/email-lifecycle-framework.md +192 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks-catalog.md +82 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks.md +99 -6
- package/squads/squad-growth/knowledge-base/growth-master-reference.md +1168 -0
- package/squads/squad-growth/knowledge-base/plg-metrics-framework.md +183 -0
- package/squads/squad-growth/knowledge-base/retention-lifecycle-marketing.md +193 -0
- package/squads/squad-growth/knowledge-base/routing-catalog.md +53 -11
- package/squads/squad-growth/knowledge-base/seo-technical-reference.md +69 -0
- package/squads/squad-growth/knowledge-base/unit-economics-ltv-cac.md +253 -0
- package/squads/squad-growth/knowledge-base/viral-referral-mechanics.md +159 -0
- package/squads/squad-paidmedia/knowledge-base/audiences-segmentation-deep.md +285 -0
- package/squads/squad-paidmedia/knowledge-base/brazil-market-context.md +284 -0
- package/squads/squad-paidmedia/knowledge-base/creative-strategy-deep.md +294 -0
- package/squads/squad-paidmedia/knowledge-base/google-ads-account-architecture.md +87 -0
- package/squads/squad-paidmedia/knowledge-base/meta-ads-campaign-architecture.md +76 -0
- package/squads/squad-paidmedia/knowledge-base/paid-media-metrics-reference.md +117 -0
- package/squads/squad-paidmedia/knowledge-base/paid-traffic-master-reference.md +1308 -0
- package/squads/squad-paidmedia/knowledge-base/programmatic-attribution-deep.md +311 -0
- package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +95 -18
- package/squads/squad-paidmedia/knowledge-base/social-algorithms-playbook.md +361 -0
- package/squads/squad-paidmedia/knowledge-base/tiktok-linkedin-ads-playbook.md +213 -0
- package/squads/squad-paidmedia/knowledge-base/traffic-masters-frameworks.md +71 -0
- package/squads/squad-product/knowledge-base/brazilian-product-context.md +284 -0
- package/squads/squad-product/knowledge-base/customer-success-integration.md +242 -0
- package/squads/squad-product/knowledge-base/discovery-methodology-playbook.md +141 -0
- package/squads/squad-product/knowledge-base/experimentation-framework.md +196 -0
- package/squads/squad-product/knowledge-base/pm-frameworks-reference.md +125 -9
- package/squads/squad-product/knowledge-base/product-analytics-formulas.md +72 -0
- package/squads/squad-product/knowledge-base/product-led-growth-reference.md +155 -13
- package/squads/squad-product/knowledge-base/product-market-fit-framework.md +222 -0
- package/squads/squad-product/knowledge-base/routing-catalog.md +32 -0
- package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +591 -0
- package/squads/squad-research/knowledge-base/ai-augmented-research.md +212 -0
- package/squads/squad-research/knowledge-base/brazilian-market-research-sources.md +197 -0
- package/squads/squad-research/knowledge-base/community-platforms-reference.md +786 -0
- package/squads/squad-research/knowledge-base/community-research-methods.md +194 -0
- package/squads/squad-research/knowledge-base/hybrid-retrieval-patterns.md +144 -0
- package/squads/squad-research/knowledge-base/knowledge-graph-construction.md +122 -0
- package/squads/squad-research/knowledge-base/mixed-methods-research-design.md +168 -0
- package/squads/squad-research/knowledge-base/multi-agent-research-methodology.md +144 -0
- package/squads/squad-research/knowledge-base/network-effects-analysis.md +192 -0
- package/squads/squad-research/knowledge-base/qualitative-research-deep-methods.md +202 -0
- package/squads/squad-research/knowledge-base/quantitative-research-methods.md +208 -0
- package/squads/squad-research/knowledge-base/research-frameworks-encyclopedia.md +40 -0
- package/squads/squad-research/knowledge-base/research-synthesis-frameworks.md +223 -0
- package/squads/squad-storytelling/knowledge-base/blake-snyder-beat-sheet.md +151 -0
- package/squads/squad-storytelling/knowledge-base/brand-mythology-framework.md +236 -0
- package/squads/squad-storytelling/knowledge-base/brazilian-storytelling-context.md +237 -0
- package/squads/squad-storytelling/knowledge-base/business-storytelling-frameworks.md +209 -0
- package/squads/squad-storytelling/knowledge-base/data-storytelling.md +232 -0
- package/squads/squad-storytelling/knowledge-base/heros-journey-deep.md +174 -0
- package/squads/squad-storytelling/knowledge-base/improv-storytelling.md +226 -0
- package/squads/squad-storytelling/knowledge-base/persuasion-narrative-techniques.md +269 -0
- package/squads/squad-storytelling/knowledge-base/pitch-presentation-frameworks.md +222 -0
- package/squads/squad-storytelling/knowledge-base/social-movement-narratives.md +191 -0
- package/squads/squad-storytelling/knowledge-base/story-circle-dan-harmon.md +171 -0
- package/squads/squad-storytelling/knowledge-base/video-storytelling.md +252 -0
- package/.sinapse-ai/core/health-check/checks/services/gemini-cli.js +0 -239
- package/.sinapse-ai/core/orchestration/gemini-model-selector.js +0 -161
- package/.sinapse-ai/hooks/gemini/after-tool.js +0 -77
- package/.sinapse-ai/hooks/gemini/before-agent.js +0 -79
- package/.sinapse-ai/hooks/gemini/before-tool.js +0 -114
- package/.sinapse-ai/hooks/gemini/rewind-handler.js +0 -68
- package/.sinapse-ai/hooks/gemini/session-end.js +0 -90
- package/.sinapse-ai/hooks/gemini/session-start.js +0 -90
- package/.sinapse-ai/infrastructure/integrations/ai-providers/gemini-provider.js +0 -365
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/cloudrun-adapter.js +0 -128
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/index.js +0 -41
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/policy-sync.js +0 -73
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/security-adapter.js +0 -159
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/supabase-adapter.js +0 -88
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/workspace-adapter.js +0 -99
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +0 -205
- package/.sinapse-ai/product/templates/gemini/settings.json +0 -79
- package/.sinapse-ai/product/templates/sinapse-ai-config.yaml +0 -106
- package/docs/changelog.md +0 -184
- package/docs/community.md +0 -227
- package/docs/en/sinapse-agent-flows/README.md +0 -190
- package/docs/en/sinapse-agent-flows/analyst-system.md +0 -26
- package/docs/en/sinapse-agent-flows/architect-system.md +0 -26
- package/docs/en/sinapse-agent-flows/data-engineer-system.md +0 -26
- package/docs/en/sinapse-agent-flows/dev-system.md +0 -26
- package/docs/en/sinapse-agent-flows/devops-system.md +0 -26
- package/docs/en/sinapse-agent-flows/pm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/qa-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sinapse-orqx-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/squad-creator-system.md +0 -26
- package/docs/en/sinapse-agent-flows/ux-design-expert-system.md +0 -26
- package/docs/en/sinapse-workflows/README.md +0 -247
- package/docs/en/sinapse-workflows/auto-worktree-workflow.md +0 -62
- package/docs/en/sinapse-workflows/brownfield-discovery-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-fullstack-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-service-workflow.md +0 -51
- package/docs/en/sinapse-workflows/brownfield-ui-workflow.md +0 -51
- package/docs/en/sinapse-workflows/design-system-build-quality-workflow.md +0 -53
- package/docs/en/sinapse-workflows/greenfield-fullstack-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-service-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-ui-workflow.md +0 -45
- package/docs/en/sinapse-workflows/qa-loop-workflow.md +0 -50
- package/docs/en/sinapse-workflows/spec-pipeline-workflow.md +0 -48
- package/docs/en/sinapse-workflows/story-development-cycle-workflow.md +0 -50
- package/docs/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/prd-cli-graph-dashboard.md +0 -274
- package/docs/troubleshooting.md +0 -881
- package/packages/gemini-sinapse-extension/README.md +0 -53
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +0 -138
- package/packages/gemini-sinapse-extension/commands/sinapse-agent.js +0 -7
- package/packages/gemini-sinapse-extension/commands/sinapse-agents.js +0 -49
- package/packages/gemini-sinapse-extension/commands/sinapse-analyst.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-architect.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-data-engineer.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-dev.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-devops.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-menu.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-orqx.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-pm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-po.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-qa.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-sm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-squad-creator.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-status.js +0 -66
- package/packages/gemini-sinapse-extension/commands/sinapse-ux-design-expert.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-validate.js +0 -33
- package/packages/gemini-sinapse-extension/extension.json +0 -147
- package/packages/gemini-sinapse-extension/gemini-extension.json +0 -147
- package/packages/gemini-sinapse-extension/hooks/hooks.json +0 -70
- /package/docs/{architecture-overview.md → framework/architecture-overview.md} +0 -0
- /package/docs/{codex-delegation-parity.md → framework/codex-parity/codex-delegation-parity.md} +0 -0
- /package/docs/{codex-total-parity-orchestration-plan.md → framework/codex-parity/codex-total-parity-orchestration-plan.md} +0 -0
- /package/docs/{codex-workflow-task-parity.md → framework/codex-parity/codex-workflow-task-parity.md} +0 -0
- /package/docs/{collaboration-autonomy-plan.md → framework/collaboration-autonomy-plan.md} +0 -0
- /package/docs/{feature-process.md → framework/feature-process.md} +0 -0
- /package/docs/{guiding-principles.md → framework/guiding-principles.md} +0 -0
- /package/docs/{orqx-plan.md → framework/orqx-plan.md} +0 -0
- /package/docs/{roadmap.md → framework/roadmap.md} +0 -0
- /package/docs/{getting-started.md → guides/getting-started.md} +0 -0
- /package/docs/{git-workflow-guide.md → guides/git-workflow-guide.md} +0 -0
- /package/docs/{squad-commands-reference.md → guides/squad-commands-reference.md} +0 -0
- /package/{CHROME-BRAIN-INSTALL.md → docs/installation/chrome-brain.md} +0 -0
- /package/docs/{npx-install.md → installation/npx-install.md} +0 -0
- /package/docs/{uninstallation.md → installation/uninstallation.md} +0 -0
- /package/docs/{security.md → security/overview.md} +0 -0
- /package/docs/{security-best-practices.md → security/security-best-practices.md} +0 -0
|
@@ -0,0 +1,927 @@
|
|
|
1
|
+
# Claude Code Internals Reference
|
|
2
|
+
|
|
3
|
+
Comprehensive reference covering Claude Code's production architecture, agent loop, tools, hooks, memory, compaction, MCP, skills, KAIROS, autoDream, swarm patterns, AGI levels, and the broader ecosystem of LLM coding tools.
|
|
4
|
+
|
|
5
|
+
**Sources:** Leaked source code analysis (v2.1.88), claw-code clean-room rewrite, architecture deep dives, competing frameworks analysis, 80+ sources across skills ecosystem, swarm intelligence, and AGI research.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Codebase Scale and Structure
|
|
10
|
+
|
|
11
|
+
### The Leak Event (March 31, 2026)
|
|
12
|
+
|
|
13
|
+
A 59.8 MB JavaScript source map file was accidentally included in npm package v2.1.88 due to a missing `*.map` entry in `.npmignore`. Bun (which Anthropic acquired late 2025) generates source maps by default.
|
|
14
|
+
|
|
15
|
+
**Scale of exposure:**
|
|
16
|
+
|
|
17
|
+
| Metric | Value |
|
|
18
|
+
|--------|-------|
|
|
19
|
+
| Lines of TypeScript | 512,000+ |
|
|
20
|
+
| Source files | 1,902 |
|
|
21
|
+
| Commands | 207 |
|
|
22
|
+
| Tools | 184 |
|
|
23
|
+
| Subsystems | 35 |
|
|
24
|
+
| Hidden feature flags | 44 (covering 20+ unshipped features) |
|
|
25
|
+
|
|
26
|
+
The clean-room rewrite (claw-code) reached 163,000 GitHub stars, becoming the fastest-growing repository in GitHub history.
|
|
27
|
+
|
|
28
|
+
### Technical Stack
|
|
29
|
+
|
|
30
|
+
- **Runtime:** Bun
|
|
31
|
+
- **Language:** TypeScript (strict mode)
|
|
32
|
+
- **UI:** React + Ink (terminal renderer with game-engine-style optimization)
|
|
33
|
+
- **Authentication:** OAuth 2.0
|
|
34
|
+
- **LSP:** Language Server Protocol integration
|
|
35
|
+
- **MCP:** Model Context Protocol integration
|
|
36
|
+
|
|
37
|
+
### 35 Subsystems
|
|
38
|
+
|
|
39
|
+
| Subsystem | Modules | Purpose |
|
|
40
|
+
|-----------|---------|---------|
|
|
41
|
+
| components | 389 | UI components (React + Ink terminal) |
|
|
42
|
+
| services | 130 | Backend services (analytics, API, OAuth, MCP, plugins, memory) |
|
|
43
|
+
| hooks | 104 | Event hooks (notifications, tool permissions, file suggestions) |
|
|
44
|
+
| commands | ~85 | Slash commands (/commit, /review, /compact, /mcp, /memory) |
|
|
45
|
+
| tools | ~184 | Agent tools (BashTool, FileReadTool, AgentTool, etc.) |
|
|
46
|
+
| bridge | 31 | IDE integration (REPL, JWT, messaging, polling) |
|
|
47
|
+
| skills | 20 | Skill system (batch, loop, remember, simplify, etc.) |
|
|
48
|
+
| memdir | 8 | Memory directory (findRelevantMemories, memoryScan, memoryAge) |
|
|
49
|
+
| coordinator | 1 | Multi-agent coordination mode |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 2. Core Architecture -- The Agent Loop
|
|
54
|
+
|
|
55
|
+
The fundamental agent loop is deliberately minimal (~20 lines). The 512,000 lines represent the supporting infrastructure, not control logic.
|
|
56
|
+
|
|
57
|
+
### Loop Pattern
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
1. User Input -> Add as message to session
|
|
61
|
+
2. API Call -> ApiClient::stream() with current context
|
|
62
|
+
3. Message Assembly -> Collect text + tool-use events
|
|
63
|
+
4. Tool Detection -> Extract pending tool invocations
|
|
64
|
+
5. Permission Authorization -> Check against PermissionPolicy
|
|
65
|
+
6. Hook Execution -> Run PreToolUse/PostToolUse via HookRunner
|
|
66
|
+
7. Tool Execution -> Delegate to ToolExecutor::execute()
|
|
67
|
+
8. Result Recording -> Store tool results as messages
|
|
68
|
+
9. Loop -> Repeat until no pending tools or max_iterations
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Key insight:** "Overengineering control flow (state machines, DAG orchestration) is misplaced effort. Keep iteration patterns austere and invest in the ecosystem surrounding them."
|
|
72
|
+
|
|
73
|
+
### 5 Architectural Layers
|
|
74
|
+
|
|
75
|
+
| Layer | Function | Components |
|
|
76
|
+
|-------|----------|------------|
|
|
77
|
+
| Agent Loop | Task decomposition, tool selection | Tool calls, file reads, retries |
|
|
78
|
+
| Context and Memory | Knowledge persistence | CLAUDE.md, auto-memory, history |
|
|
79
|
+
| Execution Surface | System actions | Read, Edit, Bash, subagents, worktrees |
|
|
80
|
+
| Governance and Safety | Permission limits | Permission modes, hooks, sandboxing |
|
|
81
|
+
| Extensibility | New capabilities | Skills, plugins, MCP, Agent SDK |
|
|
82
|
+
|
|
83
|
+
### Query Engine
|
|
84
|
+
|
|
85
|
+
`QueryEngine.ts` is 46,000 lines. Four layers:
|
|
86
|
+
|
|
87
|
+
1. `submitMessage()` -- validate and build system prompt
|
|
88
|
+
2. `query()`/`queryLoop()` -- `while(true)` agentic loop
|
|
89
|
+
3. `queryModel`/`callModel` -- Anthropic API wrapper with streaming
|
|
90
|
+
4. Stop hooks + token budget logic
|
|
91
|
+
|
|
92
|
+
### 7 Continuation Reasons
|
|
93
|
+
|
|
94
|
+
1. `max_output_tokens_escalate`
|
|
95
|
+
2. `max_output_tokens_recovery`
|
|
96
|
+
3. `reactive_compact_retry`
|
|
97
|
+
4. `collapse_drain_retry`
|
|
98
|
+
5. `stop_hook_blocking`
|
|
99
|
+
6. `token_budget_continuation`
|
|
100
|
+
7. Tool-use loop (implicit)
|
|
101
|
+
|
|
102
|
+
### Retry Logic
|
|
103
|
+
|
|
104
|
+
- Up to 10 retries with exponential backoff + jitter
|
|
105
|
+
- 529 (Overloaded): Only foreground retries; background bails immediately
|
|
106
|
+
- Opus Fallback: After 3 consecutive 529s on Opus, triggers FallbackTriggeredError
|
|
107
|
+
- OAuth 401: Forces token refresh
|
|
108
|
+
- Context Overflow 400: Computes new maxTokensOverride
|
|
109
|
+
- Persistent Mode: Indefinite retry with 30min cap and heartbeat messages
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 3. System Prompt and Context Engineering
|
|
114
|
+
|
|
115
|
+
### Prompt Construction Constants
|
|
116
|
+
|
|
117
|
+
- `MAX_INSTRUCTION_FILE_CHARS`: 4,000 characters per file
|
|
118
|
+
- `MAX_TOTAL_INSTRUCTION_CHARS`: 12,000 characters total
|
|
119
|
+
- `FRONTIER_MODEL_NAME`: "Opus 4.6"
|
|
120
|
+
|
|
121
|
+
### Cache Optimization Strategy
|
|
122
|
+
|
|
123
|
+
The architectural constraint around which the entire product is built:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
[Static System Prompt] -> CACHED (shared across all users)
|
|
127
|
+
|
|
|
128
|
+
[SYSTEM_PROMPT_DYNAMIC_BOUNDARY]
|
|
129
|
+
|
|
|
130
|
+
[Dynamic Content: CLAUDE.md, git status, date] -> NOT CACHED (session-specific)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
- Static content first, dynamic content last
|
|
134
|
+
- All Claude Code users share the same system prompt cache
|
|
135
|
+
- 14 tracked cache-break vectors monitored for invalidation
|
|
136
|
+
- Adding an MCP tool, putting a timestamp in system prompt, switching models -- each invalidates the cache and 5x costs for that turn
|
|
137
|
+
|
|
138
|
+
**Cost impact:**
|
|
139
|
+
|
|
140
|
+
| Scenario | Cost per 100-turn Opus session |
|
|
141
|
+
|----------|-------------------------------|
|
|
142
|
+
| Without caching | $50-100 |
|
|
143
|
+
| With caching | $10-19 |
|
|
144
|
+
|
|
145
|
+
### 6-Layer Prompt Assembly
|
|
146
|
+
|
|
147
|
+
1. **Priority Resolver** -- waterfall decision tree
|
|
148
|
+
2. **Content Factory** -- static + dynamic sections
|
|
149
|
+
3. **Section Registry** -- memoization control
|
|
150
|
+
4. **CLAUDE.md Loader** -- multi-scope file discovery
|
|
151
|
+
5. **Memory System** -- auto-memory injection
|
|
152
|
+
6. **Cache Boundary** -- global vs session-scoped split
|
|
153
|
+
|
|
154
|
+
### Static Sections (before boundary, globally cacheable)
|
|
155
|
+
|
|
156
|
+
- Intro (identity, URL guard, cyber-risk)
|
|
157
|
+
- System (markdown, permission modes, injection warnings)
|
|
158
|
+
- Doing Tasks (YAGNI, security, code-style)
|
|
159
|
+
- Actions (reversibility, blast-radius)
|
|
160
|
+
- Using Tools (hierarchy, parallelism)
|
|
161
|
+
- Tone and Style (no emojis, file:line refs)
|
|
162
|
+
- Output Efficiency
|
|
163
|
+
|
|
164
|
+
### Dynamic Sections (after boundary, session-specific)
|
|
165
|
+
|
|
166
|
+
| Section | Cache Behavior | Content |
|
|
167
|
+
|---------|---------------|---------|
|
|
168
|
+
| session_guidance | memoized | Questions, shell tips, agent contracts |
|
|
169
|
+
| memory | memoized | CLAUDE.md hierarchy + MEMORY.md |
|
|
170
|
+
| env_info_simple | memoized | CWD, git, shell, platform, model, cutoff |
|
|
171
|
+
| mcp_instructions | **volatile** | Per-server instructions (reconnect-aware) |
|
|
172
|
+
| scratchpad | memoized | Session directory + rules |
|
|
173
|
+
| token_budget | memoized | Target approach instruction |
|
|
174
|
+
|
|
175
|
+
### CLAUDE.md Hierarchy (4 scopes)
|
|
176
|
+
|
|
177
|
+
| Scope | Location | Sharing |
|
|
178
|
+
|-------|----------|---------|
|
|
179
|
+
| Managed | `/etc/claude-code/CLAUDE.md` | Machine-wide |
|
|
180
|
+
| User | `~/.claude/CLAUDE.md` | Cross-project, private |
|
|
181
|
+
| Project | `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules/*.md` | Git-versioned |
|
|
182
|
+
| Local | `CLAUDE.local.md` | Project-specific, private |
|
|
183
|
+
|
|
184
|
+
Discovery walks ascending from CWD to root. Files closer to CWD appear later (higher effective priority).
|
|
185
|
+
|
|
186
|
+
### @include Directive
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
@shared-rules.md (relative)
|
|
190
|
+
@./scripts/lint.md (relative explicit)
|
|
191
|
+
@~/company/standards.md (home-relative)
|
|
192
|
+
@/absolute/path/rules.md (absolute)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Includes are inserted BEFORE the file that includes them. Circular references prevented.
|
|
196
|
+
|
|
197
|
+
### Path-Scoped Rules
|
|
198
|
+
|
|
199
|
+
```yaml
|
|
200
|
+
---
|
|
201
|
+
paths:
|
|
202
|
+
- src/components/**
|
|
203
|
+
- "*.tsx"
|
|
204
|
+
---
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Rules only load when working on files matching the globs.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 4. Tool System
|
|
212
|
+
|
|
213
|
+
### Architecture Principles
|
|
214
|
+
|
|
215
|
+
Each tool is self-contained with: input schema (Zod), permission level (per-tool), execution logic, output formatting, UI component (React + Ink), and prompt template.
|
|
216
|
+
|
|
217
|
+
**Key insight:** "Agents with 5-8 well-described, purpose-built tools consistently outperform agents with a single omnibus tool -- even when the omnibus tool is technically more capable."
|
|
218
|
+
|
|
219
|
+
### Tool Interface: `Tool<Input, Output, P>`
|
|
220
|
+
|
|
221
|
+
Three generics: Zod input schema, output type, progress event shape.
|
|
222
|
+
|
|
223
|
+
Required members:
|
|
224
|
+
- `name` -- primary identifier
|
|
225
|
+
- `inputSchema` -- Zod schema (source of truth)
|
|
226
|
+
- `maxResultSizeChars` -- trigger for disk persistence
|
|
227
|
+
- `call()` -- async execution
|
|
228
|
+
- `checkPermissions()` -- pre-execution validation
|
|
229
|
+
- `isConcurrencySafe(input)` -- can run in parallel?
|
|
230
|
+
- `isReadOnly(input)` -- read-only operation?
|
|
231
|
+
|
|
232
|
+
Factory defaults fail-closed: `isConcurrencySafe: false`, `isReadOnly: false`, `isDestructive: false`.
|
|
233
|
+
|
|
234
|
+
### 3-Tier Registration Pipeline
|
|
235
|
+
|
|
236
|
+
1. `getAllBaseTools()` -- exhaustive catalog with feature flags and env var gating
|
|
237
|
+
2. `getTools()` -- filter by mode (simple, REPL, deny rules, `isEnabled()`)
|
|
238
|
+
3. `assembleToolPool()` -- built-ins alphabetic first, MCP tools alphabetic after (preserves cache breakpoints)
|
|
239
|
+
|
|
240
|
+
### Tool Categories
|
|
241
|
+
|
|
242
|
+
| Category | Tools |
|
|
243
|
+
|----------|-------|
|
|
244
|
+
| Execution | BashTool, PowerShellTool, REPLTool, AgentTool |
|
|
245
|
+
| File | FileReadTool, FileEditTool, FileWriteTool, GlobTool, GrepTool |
|
|
246
|
+
| Web | WebFetchTool, WebSearchTool, WebBrowserTool |
|
|
247
|
+
| Dev | LSPTool, NotebookEditTool, MCPTool, EnterWorktreeTool |
|
|
248
|
+
| Control | TaskCreateTool, ScheduleCronTool, TeamCreateTool, RemoteTriggerTool |
|
|
249
|
+
| KAIROS-only | SendUserFile, PushNotification, SubscribePR |
|
|
250
|
+
| Internal-only | ConfigTool, TungstenTool, SuggestBackgroundPRTool |
|
|
251
|
+
| Agent | AgentTool, SendMessageTool, TaskStopTool, TaskOutputTool |
|
|
252
|
+
| MCP | ListMcpResourcesTool, ReadMcpResourceTool, MonitorTool, McpAuthTool |
|
|
253
|
+
|
|
254
|
+
### Execution Pipeline (`toolExecution.ts`)
|
|
255
|
+
|
|
256
|
+
1. Zod validation (`inputSchema.safeParse`)
|
|
257
|
+
2. Semantic validation (path traversal, size limits)
|
|
258
|
+
3. Speculative classifier (Bash security check starts before hooks)
|
|
259
|
+
4. `backfillObservableInput` (clone for hooks and canUseTool)
|
|
260
|
+
5. PreToolUse hooks
|
|
261
|
+
6. `canUseTool()` -- main permission gate
|
|
262
|
+
7. `tool.call()` -- actual execution
|
|
263
|
+
8. PostToolUse hooks
|
|
264
|
+
9. Result serialization with size budget
|
|
265
|
+
|
|
266
|
+
Three copies of input maintained: API-bound original, backfilled observable clone, hook-updated call input.
|
|
267
|
+
|
|
268
|
+
### Concurrency Orchestration
|
|
269
|
+
|
|
270
|
+
`partitionToolCalls()` groups consecutive safe tools for parallel execution. Non-safe tools break batches and run serially. Ceiling: `CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY` (default 10).
|
|
271
|
+
|
|
272
|
+
### Bash Tool: Special Treatment
|
|
273
|
+
|
|
274
|
+
- Only tool whose errors abort siblings (implicit dependency chains)
|
|
275
|
+
- 23 security checks in `bashSecurity.ts`
|
|
276
|
+
- 9,707 lines across 3 files
|
|
277
|
+
- Uses tree-sitter WASM parser to build AST of every command
|
|
278
|
+
- 18 Zsh builtins blocked
|
|
279
|
+
- Defense against zero-width space injection, IFS null-byte injection, Unicode injection
|
|
280
|
+
|
|
281
|
+
### Deferred Tools and Tool Search
|
|
282
|
+
|
|
283
|
+
Original problem: tool definitions consumed ~14-16K tokens in system prompt.
|
|
284
|
+
|
|
285
|
+
Solution (since v2.1.69): ALL built-in tools deferred via ToolSearch.
|
|
286
|
+
|
|
287
|
+
**Reduction:** ~14-16K tokens to ~968 tokens (93% reduction).
|
|
288
|
+
|
|
289
|
+
How it works: Claude sees only ToolSearch + non-deferred tools. When needed, searches via keyword or `select:tool_name`. Returns 3-5 tool references that expand automatically.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## 5. Permission System
|
|
294
|
+
|
|
295
|
+
### 6 Permission Modes
|
|
296
|
+
|
|
297
|
+
| Mode | Auto-Allowed | Use |
|
|
298
|
+
|------|-------------|-----|
|
|
299
|
+
| default | Read only | Sensitive work |
|
|
300
|
+
| acceptEdits | Read + edit | Iteration with command gate |
|
|
301
|
+
| plan | Read, plan, explore | Design before modify |
|
|
302
|
+
| auto | Everything (with classifier) | Long tasks, Team/Enterprise |
|
|
303
|
+
| bypassPermissions | Everything, no checks | Test VMs only |
|
|
304
|
+
| dontAsk | Pre-approved only | Policy-driven lockdown |
|
|
305
|
+
|
|
306
|
+
### Configuration Hierarchy
|
|
307
|
+
|
|
308
|
+
```
|
|
309
|
+
Managed > CLI flags > Local > Project > User > Defaults
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Permission Rules
|
|
313
|
+
|
|
314
|
+
```json
|
|
315
|
+
{
|
|
316
|
+
"permissions": {
|
|
317
|
+
"allow": ["Bash(git diff *)", "Read(.)", "Edit(src/*)"],
|
|
318
|
+
"ask": ["Bash(npm run *)", "WebFetch(*)"],
|
|
319
|
+
"deny": ["Bash(rm *)", "Read(.env*)"]
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Evaluation: deny > ask > allow (first match wins).
|
|
325
|
+
|
|
326
|
+
Auto mode: Requires Sonnet 4.6+, Team/Enterprise. Separate classifier reviews each action. Broad rules (`Bash(*)`) discarded; narrow rules (`Bash(npm test)`) kept.
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
## 6. Hook System
|
|
331
|
+
|
|
332
|
+
### 26 Hook Events
|
|
333
|
+
|
|
334
|
+
| Event | When | Blockable |
|
|
335
|
+
|-------|------|-----------|
|
|
336
|
+
| SessionStart | Session starts/resumes | No |
|
|
337
|
+
| InstructionsLoaded | CLAUDE.md/rules loaded | No |
|
|
338
|
+
| UserPromptSubmit | User submits prompt | Yes |
|
|
339
|
+
| PreToolUse | Before tool executes | Yes |
|
|
340
|
+
| PermissionRequest | Permission dialog | Yes |
|
|
341
|
+
| PostToolUse | After tool succeeds | No |
|
|
342
|
+
| PostToolUseFailure | After tool fails | No |
|
|
343
|
+
| SubagentStart | Subagent spawned | No |
|
|
344
|
+
| SubagentStop | Subagent terminates | Yes |
|
|
345
|
+
| TaskCreated/TaskCompleted | Task lifecycle | Yes |
|
|
346
|
+
| Stop | Claude finishes response | Yes |
|
|
347
|
+
| TeammateIdle | Teammate goes idle | Yes |
|
|
348
|
+
| ConfigChange | Config changes | Yes |
|
|
349
|
+
| WorktreeCreate/WorktreeRemove | Worktree lifecycle | Yes/No |
|
|
350
|
+
| PreCompact/PostCompact | Compaction lifecycle | No |
|
|
351
|
+
| SessionEnd | Session ends | No |
|
|
352
|
+
|
|
353
|
+
### 4 Handler Types
|
|
354
|
+
|
|
355
|
+
| Type | Usage | Description |
|
|
356
|
+
|------|-------|-------------|
|
|
357
|
+
| command | 95% | Shell script execution |
|
|
358
|
+
| http | Remote | HTTP endpoint call |
|
|
359
|
+
| prompt | Single-turn | LLM evaluation |
|
|
360
|
+
| agent | Multi-turn | Subagent with tool access |
|
|
361
|
+
|
|
362
|
+
Precedence: agent > prompt > shell hooks.
|
|
363
|
+
|
|
364
|
+
### Exit Codes
|
|
365
|
+
|
|
366
|
+
| Code | Meaning | Effect |
|
|
367
|
+
|------|---------|--------|
|
|
368
|
+
| 0 | Allow | Operation proceeds |
|
|
369
|
+
| 2 | Block | Operation denied |
|
|
370
|
+
| Other | Warning | Non-blocking error |
|
|
371
|
+
|
|
372
|
+
### Matcher Syntax
|
|
373
|
+
|
|
374
|
+
```json
|
|
375
|
+
{ "matcher": "Bash" } // exact match
|
|
376
|
+
{ "matcher": "Edit|Write" } // either tool
|
|
377
|
+
{ "matcher": "mcp__memory__.*" } // regex
|
|
378
|
+
{ "if": "Bash(git *)" } // permission rule syntax
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## 7. Memory Architecture
|
|
384
|
+
|
|
385
|
+
### Three-Layer Self-Healing Memory
|
|
386
|
+
|
|
387
|
+
MEMORY.md is a lightweight index (~150 chars/line, max 200 lines / ~25KB) that acts as a pointer system, never storing raw data.
|
|
388
|
+
|
|
389
|
+
Design principles:
|
|
390
|
+
- Memory treated as hints, not ground truth
|
|
391
|
+
- Agent must verify against actual codebase before acting
|
|
392
|
+
- Strict Write Discipline -- updates only after successful actions
|
|
393
|
+
|
|
394
|
+
### Memory Hierarchy
|
|
395
|
+
|
|
396
|
+
| Layer | Always Loaded | Purpose |
|
|
397
|
+
|-------|--------------|---------|
|
|
398
|
+
| MEMORY.md index | Yes | Navigation, pointers |
|
|
399
|
+
| Topic files | On-demand | Detailed knowledge |
|
|
400
|
+
| Session transcripts | Grep-searchable only | Never loaded directly |
|
|
401
|
+
|
|
402
|
+
### autoDream -- Memory Consolidation
|
|
403
|
+
|
|
404
|
+
4-phase process:
|
|
405
|
+
|
|
406
|
+
1. **Orient** -- Read MEMORY.md, scan existing memory files
|
|
407
|
+
2. **Gather** -- Check logs for outdated/contradictory memories
|
|
408
|
+
3. **Consolidate** -- Merge observations, resolve conflicts
|
|
409
|
+
4. **Prune** -- Maintain <=200 lines / ~25KB limit
|
|
410
|
+
|
|
411
|
+
**Triple-gate trigger (ALL required):**
|
|
412
|
+
- >= 24 hours since last consolidation
|
|
413
|
+
- >= 5 new sessions minimum
|
|
414
|
+
- No active consolidation process (file-based advisory lock)
|
|
415
|
+
|
|
416
|
+
Runs as a forked sub-agent with Bash read-only access during idle periods. Currently gated under KAIROS flag.
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
## 8. Compaction System
|
|
421
|
+
|
|
422
|
+
### 5 Compaction Strategies
|
|
423
|
+
|
|
424
|
+
| Layer | Strategy | API Calls | Details |
|
|
425
|
+
|-------|----------|-----------|---------|
|
|
426
|
+
| Tool Result Budget | Cap individual result sizes | Zero | Per-result limits |
|
|
427
|
+
| Snip Compact | Remove unnecessary intermediate messages | Zero | Local editing |
|
|
428
|
+
| Microcompact | Merge consecutive tool-result/user pairs | Zero | Local cache editing |
|
|
429
|
+
| Context Collapse | Read-time projection with staged commits | Zero | Progressive removal |
|
|
430
|
+
| AutoCompact | Full summarization via forked agent | 1 | 13K token buffer, up to 20K summaries, 3-failure circuit breaker |
|
|
431
|
+
|
|
432
|
+
### What is Preserved
|
|
433
|
+
|
|
434
|
+
- CLAUDE.md (re-read from disk after each compaction)
|
|
435
|
+
- User requests and key code snippets
|
|
436
|
+
- "Compact Instructions" section from CLAUDE.md
|
|
437
|
+
|
|
438
|
+
### What is Lost
|
|
439
|
+
|
|
440
|
+
- Instructions given in conversation (not in CLAUDE.md)
|
|
441
|
+
- Error messages, line numbers, variable values, stack traces
|
|
442
|
+
- Reasoning behind decisions
|
|
443
|
+
- Debugging details
|
|
444
|
+
|
|
445
|
+
### Compact Instructions
|
|
446
|
+
|
|
447
|
+
Section in CLAUDE.md that controls preservation:
|
|
448
|
+
|
|
449
|
+
```markdown
|
|
450
|
+
## Compact instructions
|
|
451
|
+
- Preserve code paths and unresolved security questions
|
|
452
|
+
- Preserve diff summaries and failed test output
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### Known Bug
|
|
456
|
+
|
|
457
|
+
Comment from March 10, 2026: "1,279 sessions had 50+ consecutive failures...wasting ~250K API calls/day globally." Mitigation: `MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3`.
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
461
|
+
## 9. MCP Integration
|
|
462
|
+
|
|
463
|
+
### Tool Naming Convention
|
|
464
|
+
|
|
465
|
+
```
|
|
466
|
+
mcp__{server}__{tool}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
Both components normalized: non-alphanumeric replaced with underscores.
|
|
470
|
+
|
|
471
|
+
### 6 Transport Types
|
|
472
|
+
|
|
473
|
+
| Transport | Description |
|
|
474
|
+
|-----------|-------------|
|
|
475
|
+
| Stdio | Local process execution |
|
|
476
|
+
| SSE | Server-Sent Events (legacy) |
|
|
477
|
+
| HTTP | Remote endpoints with optional OAuth |
|
|
478
|
+
| WebSocket | Real-time bidirectional |
|
|
479
|
+
| SDK | Built-in implementations |
|
|
480
|
+
| ManagedProxy | Anthropic-hosted proxy |
|
|
481
|
+
|
|
482
|
+
### Architecture Principle
|
|
483
|
+
|
|
484
|
+
"Claude Code isn't built on top of MCP. It IS MCP -- every capability, including Computer Use, runs as a tool call."
|
|
485
|
+
|
|
486
|
+
Computer Use is `@ant/computer-use-mcp` -- a dedicated MCP server, not special-cased functionality.
|
|
487
|
+
|
|
488
|
+
### MCP Instructions
|
|
489
|
+
|
|
490
|
+
`getMcpInstructions()` iterates connected servers, extracting `instructions` fields. MCP instructions are volatile because servers can connect/disconnect between turns.
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
## 10. Agent System
|
|
495
|
+
|
|
496
|
+
### Agent Definitions (Discriminated Union)
|
|
497
|
+
|
|
498
|
+
| Source | Loading | Override |
|
|
499
|
+
|--------|---------|----------|
|
|
500
|
+
| Built-In | Dynamic system prompts | Cannot be overridden |
|
|
501
|
+
| Custom | `.claude/agents/*.md` with YAML frontmatter | User-configurable |
|
|
502
|
+
| Plugin | Via `--plugin-dir` | Admin-trusted for MCP |
|
|
503
|
+
|
|
504
|
+
### Built-In Agents
|
|
505
|
+
|
|
506
|
+
| Agent | Model | Tools | Mode |
|
|
507
|
+
|-------|-------|-------|------|
|
|
508
|
+
| general-purpose | default | All (`['*']`) | sync/async |
|
|
509
|
+
| Explore | haiku (external) / inherit (internal) | Read-only | sync |
|
|
510
|
+
| Plan | inherit | Read-only | sync |
|
|
511
|
+
| verification | inherit | No Edit/Write; allows /tmp scripts | async (forced) |
|
|
512
|
+
| fork | inherit | All + cache-identical tools | experimental |
|
|
513
|
+
|
|
514
|
+
### Custom Agent Frontmatter
|
|
515
|
+
|
|
516
|
+
```yaml
|
|
517
|
+
---
|
|
518
|
+
name: security-reviewer
|
|
519
|
+
description: Reviews code for security vulnerabilities
|
|
520
|
+
model: opus
|
|
521
|
+
tools: [Read, Grep, Glob, Bash]
|
|
522
|
+
disallowedTools: [Edit, Write]
|
|
523
|
+
permissionMode: plan
|
|
524
|
+
maxTurns: 20
|
|
525
|
+
background: false
|
|
526
|
+
isolation: worktree
|
|
527
|
+
memory: project
|
|
528
|
+
mcpServers: [memory-server]
|
|
529
|
+
skills: [security-review]
|
|
530
|
+
initialPrompt: "Review the staged changes for vulnerabilities"
|
|
531
|
+
effort: high
|
|
532
|
+
---
|
|
533
|
+
You are a senior security engineer.
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Sync vs Async Execution
|
|
537
|
+
|
|
538
|
+
6 conditions force async:
|
|
539
|
+
1. `run_in_background === true`
|
|
540
|
+
2. Agent definition `background: true`
|
|
541
|
+
3. Coordinator mode active
|
|
542
|
+
4. Fork experiment (`FORK_SUBAGENT` gate)
|
|
543
|
+
5. KAIROS assistant mode
|
|
544
|
+
6. Proactive mode
|
|
545
|
+
|
|
546
|
+
### Fork Path (Experimental)
|
|
547
|
+
|
|
548
|
+
Children use identical placeholder text for each `tool_result`, guaranteeing byte-identical prefixes for prompt caching. "Spawning five forked agents costs barely more than 1."
|
|
549
|
+
|
|
550
|
+
---
|
|
551
|
+
|
|
552
|
+
## 11. Multi-Agent and Coordinator Mode
|
|
553
|
+
|
|
554
|
+
### Three Execution Models
|
|
555
|
+
|
|
556
|
+
| Model | Description | Communication |
|
|
557
|
+
|-------|-------------|---------------|
|
|
558
|
+
| Fork | Forked sub-agents | Cache-sharing, report to parent |
|
|
559
|
+
| Teammate | Collaborative agents | Task files on disk + SendMessageTool |
|
|
560
|
+
| Worktree | Git worktree isolation | Isolated codebases, review/merge by user |
|
|
561
|
+
|
|
562
|
+
### Agent Teams
|
|
563
|
+
|
|
564
|
+
A session acts as team lead, coordinating teammates with independent context windows.
|
|
565
|
+
|
|
566
|
+
**SendMessageTool routing:**
|
|
567
|
+
|
|
568
|
+
| Target | Behavior |
|
|
569
|
+
|--------|----------|
|
|
570
|
+
| teammate name | Written to mailbox; auto-resumes if stopped |
|
|
571
|
+
| `"*"` | Broadcast to all except sender |
|
|
572
|
+
| `"team-lead"` | Approve/reject graceful shutdown |
|
|
573
|
+
| `"uds:<path>"` | Unix domain socket cross-session |
|
|
574
|
+
| `"bridge:<session-id>"` | Remote control via Anthropic servers |
|
|
575
|
+
|
|
576
|
+
### Coordinator Mode (4 phases)
|
|
577
|
+
|
|
578
|
+
Implemented via system prompt, not code:
|
|
579
|
+
|
|
580
|
+
1. **Research** -- workers investigate codebase in parallel
|
|
581
|
+
2. **Synthesis** -- coordinator reads findings, crafts specs
|
|
582
|
+
3. **Implementation** -- workers execute changes per spec
|
|
583
|
+
4. **Verification** -- tests changes
|
|
584
|
+
|
|
585
|
+
### Cache Sharing Economics
|
|
586
|
+
|
|
587
|
+
Sub-agents pay only for unique instructions by sharing byte-identical context copies. Without cache sharing, multi-agent parallelism incurs massive token penalties.
|
|
588
|
+
|
|
589
|
+
Workers operate in isolated git worktrees (avoiding merge conflicts).
|
|
590
|
+
|
|
591
|
+
---
|
|
592
|
+
|
|
593
|
+
## 12. Skills and Plugins
|
|
594
|
+
|
|
595
|
+
### Skills (SKILL.md Format)
|
|
596
|
+
|
|
597
|
+
```yaml
|
|
598
|
+
---
|
|
599
|
+
name: explain-code
|
|
600
|
+
description: Explains code with visual diagrams
|
|
601
|
+
disable-model-invocation: true
|
|
602
|
+
user-invocable: false
|
|
603
|
+
allowed-tools: [Read, Grep, Glob]
|
|
604
|
+
---
|
|
605
|
+
Instructions for the skill...
|
|
606
|
+
$ARGUMENTS for dynamic values
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### Progressive Disclosure (3 levels)
|
|
610
|
+
|
|
611
|
+
| Level | Loaded | When | Size |
|
|
612
|
+
|-------|--------|------|------|
|
|
613
|
+
| Metadata | name + description | Always (startup) | ~100 tokens |
|
|
614
|
+
| Instructions | Full SKILL.md body | When skill activated | <5000 tokens |
|
|
615
|
+
| Resources | scripts/, references/, assets/ | On demand | Unlimited |
|
|
616
|
+
|
|
617
|
+
Keep SKILL.md below 500 lines. Move detailed reference material to separate files.
|
|
618
|
+
|
|
619
|
+
### Plugins
|
|
620
|
+
|
|
621
|
+
Bundles of skills + agents + hooks + MCP + LSP:
|
|
622
|
+
|
|
623
|
+
```
|
|
624
|
+
.claude-plugin/
|
|
625
|
+
plugin.json # Manifest
|
|
626
|
+
skills/ # SKILL.md files
|
|
627
|
+
agents/ # Subagent definitions
|
|
628
|
+
hooks/ # hooks.json
|
|
629
|
+
.mcp.json # MCP server configs
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### Agent Skills Ecosystem (2026)
|
|
633
|
+
|
|
634
|
+
| Metric | Value |
|
|
635
|
+
|--------|-------|
|
|
636
|
+
| Skills cataloged | 1,060+ |
|
|
637
|
+
| Platforms supporting format | 33 |
|
|
638
|
+
| Official vendor skills | 307 |
|
|
639
|
+
| Community skills | 144+ |
|
|
640
|
+
|
|
641
|
+
The SKILL.md format is the de facto universal standard, supported by Claude Code, Codex, Gemini CLI, Cursor, VS Code, GitHub Copilot, and 27+ other clients.
|
|
642
|
+
|
|
643
|
+
### Top Repositories
|
|
644
|
+
|
|
645
|
+
| Repository | Stars | Description |
|
|
646
|
+
|------------|-------|-------------|
|
|
647
|
+
| obra/superpowers | 134K | Complete dev methodology framework |
|
|
648
|
+
| anthropics/skills | 110K | Official Anthropic skills + spec |
|
|
649
|
+
| anthropics/claude-code | 108K | Official Claude Code CLI |
|
|
650
|
+
| trailofbits/skills | 4.2K | 73 security-focused skills |
|
|
651
|
+
|
|
652
|
+
---
|
|
653
|
+
|
|
654
|
+
## 13. Unreleased Systems (Feature-Flagged)
|
|
655
|
+
|
|
656
|
+
### KAIROS -- Autonomous Daemon Mode
|
|
657
|
+
|
|
658
|
+
Referenced 150+ times in source. Named after Ancient Greek "at the right time."
|
|
659
|
+
|
|
660
|
+
- Autonomous operation via periodic `<tick>` prompts
|
|
661
|
+
- 15-second blocking budget per decision cycle
|
|
662
|
+
- Append-only daily log files for audit trails
|
|
663
|
+
- GitHub webhooks, 5-minute cron cycles
|
|
664
|
+
- Background memory consolidation via `/dream`
|
|
665
|
+
- Exclusive tools: SendUserFileTool, PushNotificationTool, SubscribePRTool
|
|
666
|
+
|
|
667
|
+
### ULTRAPLAN -- Remote Planning
|
|
668
|
+
|
|
669
|
+
- Offloads complex planning to Cloud Container Runtime running Opus 4.6
|
|
670
|
+
- 30-minute planning window
|
|
671
|
+
- Polls every 3 seconds with "teleport sentinel" result retrieval
|
|
672
|
+
- Browser UI for live monitoring (approve/reject plan)
|
|
673
|
+
|
|
674
|
+
### BUDDY -- Digital Pet System
|
|
675
|
+
|
|
676
|
+
- Tamagotchi-style companion with 18 species
|
|
677
|
+
- Gacha mechanics, 1% shiny odds
|
|
678
|
+
- Rarity tiers, procedurally generated stats
|
|
679
|
+
|
|
680
|
+
### Feature Flags (44 total)
|
|
681
|
+
|
|
682
|
+
Notable compile-time flags: PROACTIVE, KAIROS, COORDINATOR_MODE, BUDDY, BRIDGE_MODE, VOICE_MODE, FORK_SUBAGENT, ANTI_DISTILLATION_CC.
|
|
683
|
+
|
|
684
|
+
Notable runtime flags (GrowthBook, `tengu_` prefix): `tengu_anti_distill_fake_tool_injection`, `tengu_penguins_off` (Fast Mode kill-switch).
|
|
685
|
+
|
|
686
|
+
### Model Codenames
|
|
687
|
+
|
|
688
|
+
| Codename | Maps To |
|
|
689
|
+
|----------|---------|
|
|
690
|
+
| Tengu | Claude Code (project codename) |
|
|
691
|
+
| Capybara | New model family (possibly Mythos) |
|
|
692
|
+
| Fennec | Opus 4.6 |
|
|
693
|
+
| Numbat | Unreleased model |
|
|
694
|
+
| Penguin Mode | Fast Mode |
|
|
695
|
+
| Chicago | Computer Use |
|
|
696
|
+
|
|
697
|
+
### Anti-Distillation (2 layers)
|
|
698
|
+
|
|
699
|
+
**Layer 1 -- Fake Tool Injection:** When flag enabled, decoy tool definitions injected into system prompt. Requires 4 simultaneous conditions.
|
|
700
|
+
|
|
701
|
+
**Layer 2 -- Connector-Text Summarization:** Server returns cryptographically signed summaries rather than full reasoning chains. Internal users only.
|
|
702
|
+
|
|
703
|
+
### Undercover Mode
|
|
704
|
+
|
|
705
|
+
Identity masking for external repositories. Enabled by default for Anthropic employees in non-allowlisted repos. Strips Co-Authored-By attribution, forbids mentioning internal codenames, suppresses "Claude Code" references. No force-OFF mechanism documented.
|
|
706
|
+
|
|
707
|
+
---
|
|
708
|
+
|
|
709
|
+
## 14. Boot Sequence
|
|
710
|
+
|
|
711
|
+
### 6-Phase Startup
|
|
712
|
+
|
|
713
|
+
**Phase 1 -- CLI Entrypoint:** Fast-path for `--version`, `--daemon-worker` without loading heavy modules.
|
|
714
|
+
|
|
715
|
+
**Phase 2 -- Parallel Prefetch (~135ms):** Three concurrent operations: MDM policy queries (20-40ms), OAuth/API key prefetch (~65ms), results cached before needed.
|
|
716
|
+
|
|
717
|
+
**Phase 3 -- Commander Parsing:** Settings, CLI args, env vars, migrations (schema v11).
|
|
718
|
+
|
|
719
|
+
**Phase 4 -- Setup Orchestration:** 13 ordered steps including setCwd (must precede hooks), captureHooksConfigSnapshot, worktree creation, background jobs.
|
|
720
|
+
|
|
721
|
+
**Phase 5 -- Global State:** Session identity, usage counters, flags, "sticky latches" preventing mid-session cache busts.
|
|
722
|
+
|
|
723
|
+
**Phase 6 -- Ink Render:** React/Ink TUI with deferred prefetches after first render.
|
|
724
|
+
|
|
725
|
+
### Bare Mode (`--bare`)
|
|
726
|
+
|
|
727
|
+
For scripted/SDK use. Eliminates: UDS server, teammate snapshot, session memory, plugin hooks, attribution, deferred prefetches. Optimized for CI latency.
|
|
728
|
+
|
|
729
|
+
---
|
|
730
|
+
|
|
731
|
+
## 15. Sandboxing
|
|
732
|
+
|
|
733
|
+
### OS-Level Primitives
|
|
734
|
+
|
|
735
|
+
| Platform | Technology |
|
|
736
|
+
|----------|-----------|
|
|
737
|
+
| macOS | Seatbelt |
|
|
738
|
+
| Linux/WSL2 | bubblewrap |
|
|
739
|
+
| Windows (native) | Planned |
|
|
740
|
+
|
|
741
|
+
### Isolation
|
|
742
|
+
|
|
743
|
+
- **Filesystem:** Read/write in CWD; blocks outside
|
|
744
|
+
- **Network:** Access via unix domain socket proxy enforcing domain allowlists
|
|
745
|
+
- **Child processes:** Inherit sandbox restrictions
|
|
746
|
+
|
|
747
|
+
Impact: Reduces permission prompts by 84% in internal use.
|
|
748
|
+
|
|
749
|
+
---
|
|
750
|
+
|
|
751
|
+
## 16. Bridge System (IDE Integration)
|
|
752
|
+
|
|
753
|
+
### VS Code Extension
|
|
754
|
+
|
|
755
|
+
- Native panel with inline edits and IDE-style diff reviews
|
|
756
|
+
- Review/edit plans before accepting
|
|
757
|
+
- Auto-accept edits
|
|
758
|
+
- @-mention files with line ranges
|
|
759
|
+
- Multiple conversations in tabs
|
|
760
|
+
|
|
761
|
+
### Bridge Protocol
|
|
762
|
+
|
|
763
|
+
Bidirectional messaging connecting local CLI with claude.ai/code, iOS, Android. CLI makes HTTPS requests outbound only (no inbound ports). NOT a network tunnel -- forwards structured application messages.
|
|
764
|
+
|
|
765
|
+
---
|
|
766
|
+
|
|
767
|
+
## 17. Security Architecture
|
|
768
|
+
|
|
769
|
+
### Bash Validation System
|
|
770
|
+
|
|
771
|
+
- 9,707 lines across 3 files
|
|
772
|
+
- 23+ numbered security validators
|
|
773
|
+
- Tree-sitter WASM parser builds AST of every command
|
|
774
|
+
|
|
775
|
+
### Known Vulnerabilities
|
|
776
|
+
|
|
777
|
+
**Parser Differential:** Three different parsers have conflicting edge-case behavior. Commands with embedded carriage returns can get validator approval while bash interprets differently.
|
|
778
|
+
|
|
779
|
+
**Subcommand Limit Bypass:** Commands with >50 subcommands override security analysis.
|
|
780
|
+
|
|
781
|
+
**Early-Allow Short Circuits:** Some validators return "allow" bypassing subsequent checks.
|
|
782
|
+
|
|
783
|
+
---
|
|
784
|
+
|
|
785
|
+
## 18. Swarm Intelligence Patterns
|
|
786
|
+
|
|
787
|
+
### Biological Foundations
|
|
788
|
+
|
|
789
|
+
| System | Mechanism | Application |
|
|
790
|
+
|--------|-----------|-------------|
|
|
791
|
+
| Ant colonies | Pheromone trails (stigmergy) | ACO -- optimal routes |
|
|
792
|
+
| Bird flocks | Alignment, cohesion, separation | Boids/PSO -- continuous optimization |
|
|
793
|
+
| Bee swarms | Waggle dance communication | Bee Colony -- multi-objective optimization |
|
|
794
|
+
|
|
795
|
+
### Core Principles
|
|
796
|
+
|
|
797
|
+
1. **Self-organization:** Global structures emerge from simple local interactions
|
|
798
|
+
2. **Stigmergy:** Indirect communication through the environment
|
|
799
|
+
3. **Emergence:** Complex behaviors from simple rules
|
|
800
|
+
4. **Decentralization:** No central leader; resilient to individual failures
|
|
801
|
+
5. **Positive feedback:** Amplification mechanisms (pheromone reinforcement)
|
|
802
|
+
6. **Negative feedback:** Evaporation, saturation -- prevents local optima
|
|
803
|
+
|
|
804
|
+
### Modern AI Agent Swarm Frameworks
|
|
805
|
+
|
|
806
|
+
| Framework | Architecture | State | Production-Ready |
|
|
807
|
+
|-----------|-------------|-------|-----------------|
|
|
808
|
+
| LangGraph | Graph-based | Robust (persistent) | Yes |
|
|
809
|
+
| CrewAI | Role-based | Layers (ChromaDB+SQLite) | Yes |
|
|
810
|
+
| AutoGen/AG2 | Conversational | Session (no persistence) | Partial (maintenance mode) |
|
|
811
|
+
| OpenAI Swarm | Handoff-based | None (stateless) | No |
|
|
812
|
+
| Claude Code Teams | Peer communication | Task files + messages | Experimental |
|
|
813
|
+
| Ruflo | Hive Mind | Shared knowledge | Yes (Claude only) |
|
|
814
|
+
| MetaGPT | SOP-based | Shared documents | Partial |
|
|
815
|
+
|
|
816
|
+
### Swarm Patterns for Development
|
|
817
|
+
|
|
818
|
+
| Pattern | Description | Example |
|
|
819
|
+
|---------|-------------|---------|
|
|
820
|
+
| Orchestrator-Worker | Central coordinator dispatches to workers | SINAPSE Imperator, Ruflo Queen |
|
|
821
|
+
| Peer-to-Peer | Agents operate as equals, direct communication | Claude Code Agent Teams |
|
|
822
|
+
| Hierarchical | Tree of agents with authority relationships | Agency Swarm, MetaGPT |
|
|
823
|
+
| Blackboard | Shared workspace agents read/write | LangGraph state graph |
|
|
824
|
+
| Stigmergic | Indirect communication via environment artifacts | Git branches, TODO comments |
|
|
825
|
+
| Pipeline | Sequential processing chain | SINAPSE SDC workflow |
|
|
826
|
+
|
|
827
|
+
### SINAPSE Comparison
|
|
828
|
+
|
|
829
|
+
SINAPSE uses primarily Orchestrator-Worker (Imperator at top, squad orchestrators, specialists) with Pipeline for SDC workflow. The handoff/scratchpad system adds Stigmergy elements. No competitor has the combination of squads + orchestration + constitution + quality gates.
|
|
830
|
+
|
|
831
|
+
---
|
|
832
|
+
|
|
833
|
+
## 19. LLM Coding Tool Comparison
|
|
834
|
+
|
|
835
|
+
### Instruction File Comparison
|
|
836
|
+
|
|
837
|
+
| Tool | File | Format |
|
|
838
|
+
|------|------|--------|
|
|
839
|
+
| Claude Code | `CLAUDE.md` | Markdown |
|
|
840
|
+
| Codex CLI | `AGENTS.md` | Markdown |
|
|
841
|
+
| Gemini CLI | `GEMINI.md` | Markdown (with @import) |
|
|
842
|
+
| Cursor | `.cursor/rules/*/RULE.md` | Markdown + YAML frontmatter |
|
|
843
|
+
| GitHub Copilot | `copilot-instructions.md` | Markdown |
|
|
844
|
+
| Windsurf | `.windsurf/rules/*.md` | Markdown + YAML frontmatter |
|
|
845
|
+
|
|
846
|
+
### Feature Comparison
|
|
847
|
+
|
|
848
|
+
| Feature | Claude Code | Codex | Gemini CLI | Cursor |
|
|
849
|
+
|---------|-------------|-------|-----------|--------|
|
|
850
|
+
| Hooks | 26 events | 2 events | N/A | N/A |
|
|
851
|
+
| Memory | Auto (MEMORY.md) | None | Not documented | Notepads (manual) |
|
|
852
|
+
| Subagents | Yes (agents/ + Teams) | Yes (config.toml) | Yes (agents/) | Via MCP |
|
|
853
|
+
| Skills | SKILL.md | SKILL.md | N/A | N/A |
|
|
854
|
+
| Sandboxing | Seatbelt/bubblewrap | Docker | Docker/Podman | N/A |
|
|
855
|
+
|
|
856
|
+
---
|
|
857
|
+
|
|
858
|
+
## 20. AGI Levels and Timeline
|
|
859
|
+
|
|
860
|
+
### Classification Systems
|
|
861
|
+
|
|
862
|
+
**OpenAI 5-Level Framework (2024):**
|
|
863
|
+
|
|
864
|
+
| Level | Name | Description | Status (2026) |
|
|
865
|
+
|-------|------|-------------|---------------|
|
|
866
|
+
| L1 | Chatbots | Conversational AI | Achieved |
|
|
867
|
+
| L2 | Reasoners | PhD-level reasoning | Achieved (o3, Claude) |
|
|
868
|
+
| L3 | Agents | Autonomous multi-step tasks | In progress |
|
|
869
|
+
| L4 | Innovators | AI that invents and creates | Emerging |
|
|
870
|
+
| L5 | Organizations | AI that runs organizations | Theoretical |
|
|
871
|
+
|
|
872
|
+
### Industry Predictions (2026)
|
|
873
|
+
|
|
874
|
+
| Source | Prediction |
|
|
875
|
+
|--------|-----------|
|
|
876
|
+
| Anthropic (Dario Amodei) | "Powerful AI" within 2-3 years (Jan 2025) |
|
|
877
|
+
| OpenAI (Sam Altman) | "We now believe we know how to build AGI" (Jun 2025) |
|
|
878
|
+
| DeepMind (Demis Hassabis) | Critical breakthroughs possible in 5-10 years (2025) |
|
|
879
|
+
| Ray Kurzweil | 2029 for human-level AI (maintained since 2005) |
|
|
880
|
+
|
|
881
|
+
### What AGI Means for Development Frameworks
|
|
882
|
+
|
|
883
|
+
1. **L3 (Agents):** Frameworks like SINAPSE become orchestration layers managing autonomous agents
|
|
884
|
+
2. **L4 (Innovators):** Frameworks shift from instruction-execution to goal-specification
|
|
885
|
+
3. **L5 (Organizations):** Frameworks become the operating system for AI-run organizations
|
|
886
|
+
|
|
887
|
+
### Key Technical Challenges
|
|
888
|
+
|
|
889
|
+
- Persistent memory and learning across sessions
|
|
890
|
+
- Reliable multi-step planning and execution
|
|
891
|
+
- Self-correction and error recovery
|
|
892
|
+
- Transfer learning across domains
|
|
893
|
+
- Alignment and safety guarantees
|
|
894
|
+
|
|
895
|
+
---
|
|
896
|
+
|
|
897
|
+
## 21. Implications for SINAPSE
|
|
898
|
+
|
|
899
|
+
### Architecture Lessons
|
|
900
|
+
|
|
901
|
+
1. **Keep the agent loop simple** -- SINAPSE's orchestration is already well-designed; avoid over-engineering control flow
|
|
902
|
+
2. **Invest in the surrounding ecosystem** -- Tools, hooks, memory, compaction are where sophistication pays off
|
|
903
|
+
3. **Cache optimization is existential** -- System prompt design directly impacts cost
|
|
904
|
+
4. **Safety through proximity** -- Security rules embedded in tool descriptions, not separate policy files
|
|
905
|
+
5. **Progressive disclosure for skills** -- SINAPSE's agent.md + tasks/ + knowledge-base/ naturally follows this pattern
|
|
906
|
+
|
|
907
|
+
### Competitive Position
|
|
908
|
+
|
|
909
|
+
| Dimension | SINAPSE | Best Competitor |
|
|
910
|
+
|-----------|---------|-----------------|
|
|
911
|
+
| Cross-domain orchestration | 20+ squads | None |
|
|
912
|
+
| Constitution/governance | Formal, enforced | None |
|
|
913
|
+
| Quality gates | Automatic (hooks + QA) | obra/superpowers (2-stage review) |
|
|
914
|
+
| Memory + context | Agent memory + scratchpad | None |
|
|
915
|
+
| Skill format | Proprietary (powerful) | SKILL.md (universal) |
|
|
916
|
+
|
|
917
|
+
### Strategic Recommendations
|
|
918
|
+
|
|
919
|
+
1. Export squad knowledge as SKILL.md for 33-platform reach
|
|
920
|
+
2. Position as "Superpowers on steroids" -- not just skills but orchestrated system
|
|
921
|
+
3. Monitor KAIROS pattern for autonomous agent capabilities
|
|
922
|
+
4. Adopt prompt caching strategies from Claude Code architecture
|
|
923
|
+
5. Implement Deferred Tool pattern to reduce context consumption
|
|
924
|
+
|
|
925
|
+
---
|
|
926
|
+
|
|
927
|
+
*Knowledge base compiled from research conducted by Prism (Research Operations Conductor) and Scope (Research Analyst) -- SINAPSE Research Initiative*
|