all-hands-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.allhands/README.md +75 -0
- package/.allhands/agents/compounder.yaml +15 -0
- package/.allhands/agents/coordinator.yaml +17 -0
- package/.allhands/agents/documentor.yaml +15 -0
- package/.allhands/agents/e2e-test-planner.yaml +17 -0
- package/.allhands/agents/emergent.yaml +22 -0
- package/.allhands/agents/executor.yaml +14 -0
- package/.allhands/agents/ideation.yaml +11 -0
- package/.allhands/agents/initiative-steering.yaml +19 -0
- package/.allhands/agents/judge.yaml +13 -0
- package/.allhands/agents/planner.yaml +19 -0
- package/.allhands/agents/pr-reviewer.yaml +15 -0
- package/.allhands/docs.json +5 -0
- package/.allhands/docs.local.json +26 -0
- package/.allhands/flows/COMPOUNDING.md +203 -0
- package/.allhands/flows/COORDINATION.md +89 -0
- package/.allhands/flows/CORE.md +87 -0
- package/.allhands/flows/DOCUMENTATION.md +218 -0
- package/.allhands/flows/E2E_TEST_PLAN_BUILDING.md +140 -0
- package/.allhands/flows/EMERGENT_PLANNING.md +57 -0
- package/.allhands/flows/IDEATION_SCOPING.md +154 -0
- package/.allhands/flows/INITIATIVE_STEERING.md +110 -0
- package/.allhands/flows/JUDGE_REVIEWING.md +79 -0
- package/.allhands/flows/PROMPT_TASK_EXECUTION.md +68 -0
- package/.allhands/flows/PR_REVIEWING.md +43 -0
- package/.allhands/flows/SPEC_PLANNING.md +216 -0
- package/.allhands/flows/harness/WRITING_HARNESS_FLOWS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_KNOWLEDGE.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_ORCHESTRATION.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_SKILLS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_TOOLS.md +27 -0
- package/.allhands/flows/harness/WRITING_HARNESS_VALIDATION_TOOLING.md +27 -0
- package/.allhands/flows/shared/CODEBASE_UNDERSTANDING.md +72 -0
- package/.allhands/flows/shared/CREATE_HARNESS_SPEC.md +48 -0
- package/.allhands/flows/shared/CREATE_SPEC.md +41 -0
- package/.allhands/flows/shared/CREATE_VALIDATION_TOOLING_SPEC.md +70 -0
- package/.allhands/flows/shared/DOCUMENTATION_DISCOVERY.md +123 -0
- package/.allhands/flows/shared/DOCUMENTATION_WRITER.md +101 -0
- package/.allhands/flows/shared/EMERGENT_REFINEMENT_ANALYSIS.md +76 -0
- package/.allhands/flows/shared/EXTERNAL_TECH_GUIDANCE.md +97 -0
- package/.allhands/flows/shared/IDEATION_CODEBASE_GROUNDING.md +49 -0
- package/.allhands/flows/shared/PLAN_DEEPENING.md +152 -0
- package/.allhands/flows/shared/PROMPT_TASKS_CURATION.md +113 -0
- package/.allhands/flows/shared/PROMPT_VALIDATION_REVIEW.MD +99 -0
- package/.allhands/flows/shared/QUICK_PREMORTEM.md +70 -0
- package/.allhands/flows/shared/RESEARCH_GUIDANCE.md +38 -0
- package/.allhands/flows/shared/REVIEW_OPTIONS_BREAKDOWN.md +68 -0
- package/.allhands/flows/shared/SKILL_EXTRACTION.md +84 -0
- package/.allhands/flows/shared/SPEC_FLOW_ANALYSIS.md +119 -0
- package/.allhands/flows/shared/TDD_WORKFLOW.md +109 -0
- package/.allhands/flows/shared/UTILIZE_VALIDATION_TOOLING.md +84 -0
- package/.allhands/flows/shared/WRITING_HARNESS_FLOWS.md +11 -0
- package/.allhands/flows/shared/WRITING_HARNESS_MCP_TOOLS.md +84 -0
- package/.allhands/flows/shared/jury/ARCHITECTURE_REVIEW.md +91 -0
- package/.allhands/flows/shared/jury/BEST_PRACTICES_REVIEW.md +80 -0
- package/.allhands/flows/shared/jury/CLAIM_VERIFICATION_REVIEW.md +101 -0
- package/.allhands/flows/shared/jury/EXPECTATIONS_FIT_REVIEW.md +78 -0
- package/.allhands/flows/shared/jury/MAINTAINABILITY_REVIEW.md +110 -0
- package/.allhands/flows/shared/jury/PROMPTS_EXPECTATIONS_FIT.md +74 -0
- package/.allhands/flows/shared/jury/PROMPTS_FLOW_ANALYSIS.md +92 -0
- package/.allhands/flows/shared/jury/PROMPTS_YAGNI.md +78 -0
- package/.allhands/flows/shared/jury/PROMPT_PREMORTEM.md +125 -0
- package/.allhands/flows/shared/jury/SECURITY_REVIEW.md +86 -0
- package/.allhands/flows/shared/jury/YAGNI_REVIEW.md +82 -0
- package/.allhands/flows/wip/DEBUG_INVESTIGATION.md +162 -0
- package/.allhands/flows/wip/MEMORY_RECALL.md +62 -0
- package/.allhands/harness/ah +131 -0
- package/.allhands/harness/package-lock.json +5292 -0
- package/.allhands/harness/package.json +52 -0
- package/.allhands/harness/src/__tests__/e2e/commands.test.ts +307 -0
- package/.allhands/harness/src/__tests__/e2e/event-loop.test.ts +539 -0
- package/.allhands/harness/src/__tests__/e2e/hooks.test.ts +427 -0
- package/.allhands/harness/src/__tests__/e2e/new-initiative-routing.test.ts +137 -0
- package/.allhands/harness/src/__tests__/e2e/run-e2e.ts +109 -0
- package/.allhands/harness/src/__tests__/e2e/specs-type.test.ts +210 -0
- package/.allhands/harness/src/__tests__/e2e/validation-hooks.test.ts +669 -0
- package/.allhands/harness/src/__tests__/e2e/validation-path-consistency.test.ts +354 -0
- package/.allhands/harness/src/__tests__/e2e/validation.test.ts +528 -0
- package/.allhands/harness/src/__tests__/harness/assertions.ts +318 -0
- package/.allhands/harness/src/__tests__/harness/cli-runner.ts +359 -0
- package/.allhands/harness/src/__tests__/harness/fixture.ts +384 -0
- package/.allhands/harness/src/__tests__/harness/hook-runner.ts +411 -0
- package/.allhands/harness/src/__tests__/harness/index.ts +122 -0
- package/.allhands/harness/src/cli.ts +36 -0
- package/.allhands/harness/src/commands/complexity.ts +177 -0
- package/.allhands/harness/src/commands/context7.ts +202 -0
- package/.allhands/harness/src/commands/docs.ts +557 -0
- package/.allhands/harness/src/commands/hooks.ts +24 -0
- package/.allhands/harness/src/commands/index.ts +51 -0
- package/.allhands/harness/src/commands/knowledge.ts +382 -0
- package/.allhands/harness/src/commands/memories.ts +302 -0
- package/.allhands/harness/src/commands/notify.ts +61 -0
- package/.allhands/harness/src/commands/oracle.ts +158 -0
- package/.allhands/harness/src/commands/perplexity.ts +220 -0
- package/.allhands/harness/src/commands/planning.ts +245 -0
- package/.allhands/harness/src/commands/schema.ts +73 -0
- package/.allhands/harness/src/commands/skills.ts +128 -0
- package/.allhands/harness/src/commands/solutions.ts +353 -0
- package/.allhands/harness/src/commands/spawn.ts +158 -0
- package/.allhands/harness/src/commands/specs.ts +532 -0
- package/.allhands/harness/src/commands/tavily.ts +226 -0
- package/.allhands/harness/src/commands/tools.ts +579 -0
- package/.allhands/harness/src/commands/trace.ts +327 -0
- package/.allhands/harness/src/commands/tui.ts +960 -0
- package/.allhands/harness/src/commands/validate.ts +143 -0
- package/.allhands/harness/src/commands/validation-tools.ts +108 -0
- package/.allhands/harness/src/hooks/context.ts +1442 -0
- package/.allhands/harness/src/hooks/enforcement.ts +170 -0
- package/.allhands/harness/src/hooks/index.ts +54 -0
- package/.allhands/harness/src/hooks/lifecycle.ts +229 -0
- package/.allhands/harness/src/hooks/notification.ts +104 -0
- package/.allhands/harness/src/hooks/observability.ts +551 -0
- package/.allhands/harness/src/hooks/session.ts +88 -0
- package/.allhands/harness/src/hooks/shared.ts +815 -0
- package/.allhands/harness/src/hooks/transcript-parser.ts +208 -0
- package/.allhands/harness/src/hooks/validation.ts +617 -0
- package/.allhands/harness/src/lib/__tests__/ctags.test.ts +244 -0
- package/.allhands/harness/src/lib/__tests__/docs-validation.test.ts +344 -0
- package/.allhands/harness/src/lib/__tests__/mcp-runtime.test.ts +190 -0
- package/.allhands/harness/src/lib/__tests__/schema.test.ts +861 -0
- package/.allhands/harness/src/lib/base-command.ts +198 -0
- package/.allhands/harness/src/lib/cli-daemon.ts +343 -0
- package/.allhands/harness/src/lib/compaction.ts +313 -0
- package/.allhands/harness/src/lib/ctags.ts +497 -0
- package/.allhands/harness/src/lib/docs-validation.ts +907 -0
- package/.allhands/harness/src/lib/event-loop.ts +662 -0
- package/.allhands/harness/src/lib/flows.ts +155 -0
- package/.allhands/harness/src/lib/git.ts +276 -0
- package/.allhands/harness/src/lib/knowledge-worker.ts +72 -0
- package/.allhands/harness/src/lib/knowledge.ts +810 -0
- package/.allhands/harness/src/lib/llm.ts +255 -0
- package/.allhands/harness/src/lib/mcp-client.ts +432 -0
- package/.allhands/harness/src/lib/mcp-daemon.ts +486 -0
- package/.allhands/harness/src/lib/mcp-runtime.ts +418 -0
- package/.allhands/harness/src/lib/notification.ts +115 -0
- package/.allhands/harness/src/lib/opencode/index.ts +70 -0
- package/.allhands/harness/src/lib/opencode/profiles.ts +300 -0
- package/.allhands/harness/src/lib/opencode/prompts/codesearch.md +98 -0
- package/.allhands/harness/src/lib/opencode/prompts/knowledge-aggregator.md +67 -0
- package/.allhands/harness/src/lib/opencode/runner.ts +281 -0
- package/.allhands/harness/src/lib/oracle.ts +926 -0
- package/.allhands/harness/src/lib/planning-utils.ts +150 -0
- package/.allhands/harness/src/lib/planning.ts +605 -0
- package/.allhands/harness/src/lib/pr-review.ts +225 -0
- package/.allhands/harness/src/lib/prompts.ts +522 -0
- package/.allhands/harness/src/lib/schema.ts +418 -0
- package/.allhands/harness/src/lib/schemas/agent-profile.ts +141 -0
- package/.allhands/harness/src/lib/schemas/template-vars.ts +138 -0
- package/.allhands/harness/src/lib/session.ts +164 -0
- package/.allhands/harness/src/lib/specs.ts +348 -0
- package/.allhands/harness/src/lib/tldr.ts +829 -0
- package/.allhands/harness/src/lib/tmux.ts +1051 -0
- package/.allhands/harness/src/lib/trace-store.ts +714 -0
- package/.allhands/harness/src/mcp/__tests__/index.test.ts +46 -0
- package/.allhands/harness/src/mcp/_template.ts +47 -0
- package/.allhands/harness/src/mcp/filesystem.ts +33 -0
- package/.allhands/harness/src/mcp/index.ts +69 -0
- package/.allhands/harness/src/mcp/playwright.ts +34 -0
- package/.allhands/harness/src/mcp/xcodebuild.ts +29 -0
- package/.allhands/harness/src/schemas/docs.schema.json +44 -0
- package/.allhands/harness/src/schemas/settings.schema.json +214 -0
- package/.allhands/harness/src/tui/actions.ts +227 -0
- package/.allhands/harness/src/tui/file-viewer-modal.ts +270 -0
- package/.allhands/harness/src/tui/index.ts +1574 -0
- package/.allhands/harness/src/tui/modal.ts +232 -0
- package/.allhands/harness/src/tui/prompts-pane.ts +186 -0
- package/.allhands/harness/src/tui/status-pane.ts +434 -0
- package/.allhands/harness/tsconfig.json +22 -0
- package/.allhands/harness/vitest.config.ts +13 -0
- package/.allhands/pillars.md +33 -0
- package/.allhands/principles.md +88 -0
- package/.allhands/schemas/alignment.yaml +51 -0
- package/.allhands/schemas/documentation.yaml +10 -0
- package/.allhands/schemas/prompt.yaml +92 -0
- package/.allhands/schemas/skill.yaml +34 -0
- package/.allhands/schemas/solution.yaml +131 -0
- package/.allhands/schemas/spec.yaml +67 -0
- package/.allhands/schemas/validation-suite.yaml +49 -0
- package/.allhands/schemas/workflow.yaml +51 -0
- package/.allhands/settings.json +57 -0
- package/.allhands/skills/claude-code-patterns/SKILL.md +60 -0
- package/.allhands/skills/claude-code-patterns/docs/context-hygiene.md +19 -0
- package/.allhands/skills/harness-maintenance/SKILL.md +449 -0
- package/.allhands/skills/harness-maintenance/references/core-architecture.md +187 -0
- package/.allhands/skills/harness-maintenance/references/harness-skills.md +87 -0
- package/.allhands/skills/harness-maintenance/references/knowledge-compounding.md +78 -0
- package/.allhands/skills/harness-maintenance/references/tools-commands-mcp-hooks.md +115 -0
- package/.allhands/skills/harness-maintenance/references/validation-tooling.md +77 -0
- package/.allhands/skills/harness-maintenance/references/writing-flows.md +84 -0
- package/.allhands/validation/browser-automation.md +109 -0
- package/.allhands/validation/xcode-automation.md +195 -0
- package/.allhands/workflows/documentation.md +86 -0
- package/.allhands/workflows/investigation.md +81 -0
- package/.allhands/workflows/milestone.md +91 -0
- package/.allhands/workflows/optimization.md +85 -0
- package/.allhands/workflows/refactor.md +99 -0
- package/.allhands/workflows/triage.md +81 -0
- package/.claude/README.md +1 -0
- package/.claude/agents/explorer.md +10 -0
- package/.claude/agents/researcher.md +11 -0
- package/.claude/agents/task-runner.md +8 -0
- package/.claude/settings.json +231 -0
- package/.env.ai.example +7 -0
- package/.github/workflows/npm-publish.yml +69 -0
- package/.internal.json +45 -0
- package/.tldr/config.json +11 -0
- package/.tldrignore +90 -0
- package/CLAUDE.md +6 -0
- package/README.md +98 -0
- package/bin/sync-cli.js +7552 -0
- package/concerns.md +7 -0
- package/docs/README.md +41 -0
- package/docs/agents/README.md +24 -0
- package/docs/agents/agent-configuration-system.md +86 -0
- package/docs/agents/execution-agents.md +50 -0
- package/docs/agents/knowledge-agents.md +61 -0
- package/docs/agents/orchestration-agent.md +57 -0
- package/docs/agents/planning-agents.md +84 -0
- package/docs/agents/quality-review-agents.md +67 -0
- package/docs/agents/workflow-agent-orchestration.md +69 -0
- package/docs/flows/README.md +44 -0
- package/docs/flows/compounding.md +126 -0
- package/docs/flows/coordination.md +72 -0
- package/docs/flows/core-harness-integration.md +63 -0
- package/docs/flows/documentation-orchestration.md +98 -0
- package/docs/flows/e2e-test-plan-building.md +83 -0
- package/docs/flows/emergent-refinement.md +104 -0
- package/docs/flows/flow-authoring-and-mcp-tools.md +89 -0
- package/docs/flows/judge-reviewing.md +112 -0
- package/docs/flows/plan-deepening-and-research.md +107 -0
- package/docs/flows/plan-review-jury.md +114 -0
- package/docs/flows/pr-reviewing.md +54 -0
- package/docs/flows/prompt-task-execution.md +119 -0
- package/docs/flows/spec-planning.md +162 -0
- package/docs/flows/type-specific-scoping-flows.md +49 -0
- package/docs/flows/validation-and-skills-integration.md +145 -0
- package/docs/flows/wip/wip-flows.md +102 -0
- package/docs/harness/README.md +23 -0
- package/docs/harness/agent-profiles.md +84 -0
- package/docs/harness/cli/README.md +24 -0
- package/docs/harness/cli/cli-entry-and-command-discovery.md +91 -0
- package/docs/harness/cli/docs-command.md +87 -0
- package/docs/harness/cli/knowledge-command.md +91 -0
- package/docs/harness/cli/minor-cli-commands.md +65 -0
- package/docs/harness/cli/oracle-command.md +113 -0
- package/docs/harness/cli/planning-command.md +95 -0
- package/docs/harness/cli/schema-and-validation-commands.md +154 -0
- package/docs/harness/cli/search-commands.md +97 -0
- package/docs/harness/cli/spawn-command.md +136 -0
- package/docs/harness/cli/specs-command.md +102 -0
- package/docs/harness/cli/tools-command.md +122 -0
- package/docs/harness/cli/trace-command.md +122 -0
- package/docs/harness/cli-daemon.md +92 -0
- package/docs/harness/event-loop.md +184 -0
- package/docs/harness/hooks/README.md +15 -0
- package/docs/harness/hooks/context-hooks.md +96 -0
- package/docs/harness/hooks/lifecycle-and-observability-hooks.md +135 -0
- package/docs/harness/hooks/validation-hooks.md +97 -0
- package/docs/harness/test-harness.md +149 -0
- package/docs/harness/tui.md +176 -0
- package/docs/memories.md +20 -0
- package/docs/solutions/agentic-issues/premature-agent-deletion-tui-action-dependency-20260130.md +49 -0
- package/docs/solutions/agentic-issues/ref-anchor-scope-mismatch-skill-references-20260131.md +55 -0
- package/docs/solutions/agentic-issues/tautological-tests-routing-20260131.md +52 -0
- package/docs/solutions/integration_issue/blocktool-output-format-mismatch-hook-runner-20260130.md +52 -0
- package/docs/solutions/integration_issue/dual-validation-path-divergence-schema-20260130.md +66 -0
- package/docs/solutions/security-issues/unsanitized-domain-path-join-20260131.md +52 -0
- package/docs/solutions/test-failures/event-loop-mock-ordering-checkAgentWindows-20260130.md +63 -0
- package/docs/sync-cli/README.md +19 -0
- package/docs/sync-cli/cli-entrypoint-and-commands.md +39 -0
- package/docs/sync-cli/commands/README.md +11 -0
- package/docs/sync-cli/commands/pull-manifest-command.md +36 -0
- package/docs/sync-cli/commands/push-command.md +84 -0
- package/docs/sync-cli/commands/sync-command.md +71 -0
- package/docs/sync-cli/systems/README.md +14 -0
- package/docs/sync-cli/systems/git-and-github-integration.md +49 -0
- package/docs/sync-cli/systems/interactive-ui.md +43 -0
- package/docs/sync-cli/systems/manifest-and-distribution.md +51 -0
- package/docs/sync-cli/systems/path-resolution.md +42 -0
- package/package.json +46 -0
- package/scripts/install-shim.sh +40 -0
- package/scripts/pre-pack.sh +25 -0
- package/specs/harness-maintenance-skill.spec.md +138 -0
- package/specs/roadmap/git-spec-lifecycle-management.spec.md +113 -0
- package/specs/sync-init-flag.spec.md +117 -0
- package/specs/unified-workflow-orchestration.spec.md +250 -0
- package/specs/validation-tooling-practice.spec.md +98 -0
- package/specs/workflow-domain-configuration.spec.md +265 -0
- package/src/commands/pull-manifest.ts +31 -0
- package/src/commands/push.ts +344 -0
- package/src/commands/sync.ts +289 -0
- package/src/lib/constants.ts +10 -0
- package/src/lib/dotfiles.ts +36 -0
- package/src/lib/fs-utils.ts +18 -0
- package/src/lib/gh.ts +40 -0
- package/src/lib/git.ts +63 -0
- package/src/lib/gitignore.ts +167 -0
- package/src/lib/manifest.ts +121 -0
- package/src/lib/marker-sync.ts +39 -0
- package/src/lib/paths.ts +38 -0
- package/src/lib/target-lines.ts +66 -0
- package/src/lib/ui.ts +78 -0
- package/src/sync-cli.ts +120 -0
- package/target-lines.json +23 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Prompt File Schema
|
|
2
|
+
# Single source of truth for prompt file structure
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
number:
|
|
6
|
+
type: integer
|
|
7
|
+
required: true
|
|
8
|
+
description: "Prompt execution order (01, 02, etc.)"
|
|
9
|
+
|
|
10
|
+
title:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: "Human-readable task name"
|
|
14
|
+
|
|
15
|
+
type:
|
|
16
|
+
type: enum
|
|
17
|
+
required: true
|
|
18
|
+
values: [planned, emergent, user-patch, review-fix ]
|
|
19
|
+
default: planned
|
|
20
|
+
description: "Type of prompt (planned, emergent, user-patch, review-fix)"
|
|
21
|
+
|
|
22
|
+
status:
|
|
23
|
+
type: enum
|
|
24
|
+
required: true
|
|
25
|
+
values: [pending, in_progress, done]
|
|
26
|
+
default: pending
|
|
27
|
+
description: "Current execution state"
|
|
28
|
+
|
|
29
|
+
dependencies:
|
|
30
|
+
type: array
|
|
31
|
+
items: integer
|
|
32
|
+
default: []
|
|
33
|
+
description: "Prompt numbers that must complete first"
|
|
34
|
+
|
|
35
|
+
attempts:
|
|
36
|
+
type: integer
|
|
37
|
+
default: 0
|
|
38
|
+
description: "Number of execution attempts"
|
|
39
|
+
|
|
40
|
+
commits:
|
|
41
|
+
type: array
|
|
42
|
+
items: string
|
|
43
|
+
default: []
|
|
44
|
+
description: "Git commit hashes for work done on this prompt (chronological order, includes failed attempts)"
|
|
45
|
+
|
|
46
|
+
validation_suites:
|
|
47
|
+
type: array
|
|
48
|
+
items: string
|
|
49
|
+
default: []
|
|
50
|
+
description: "Paths to validation suite files elected for this prompt (e.g., .allhands/validation/typescript-typecheck.md)"
|
|
51
|
+
|
|
52
|
+
skills:
|
|
53
|
+
type: array
|
|
54
|
+
items: string
|
|
55
|
+
default: []
|
|
56
|
+
description: "Paths to skill files for domain expertise (e.g., .allhands/skills/building-expo-ui/SKILL.md)"
|
|
57
|
+
|
|
58
|
+
patches_prompts:
|
|
59
|
+
type: array
|
|
60
|
+
items: integer
|
|
61
|
+
default: []
|
|
62
|
+
description: "Prompt numbers this user-patch addresses (only valid for type: user-patch). References which prompts required user intervention."
|
|
63
|
+
|
|
64
|
+
uses_tdd_workflow:
|
|
65
|
+
type: boolean
|
|
66
|
+
default: false
|
|
67
|
+
description: "If true, this prompt used the TDD workflow"
|
|
68
|
+
|
|
69
|
+
body:
|
|
70
|
+
description: "Markdown task instructions for the executing agent"
|
|
71
|
+
sections:
|
|
72
|
+
- name: "Tasks"
|
|
73
|
+
required: true
|
|
74
|
+
description: "List of 2-6 specific tasks to complete with implementation approach ideas and suggested instructions"
|
|
75
|
+
|
|
76
|
+
- name: "Acceptance Criteria"
|
|
77
|
+
required: true
|
|
78
|
+
description: "Validation requirements for completion"
|
|
79
|
+
|
|
80
|
+
- append_success_format: |
|
|
81
|
+
SUCCESS SUMMARY:
|
|
82
|
+
**Summary**: Brief explanation
|
|
83
|
+
**Limitations**: List of key limitations discovered that hindered implementation
|
|
84
|
+
**Decisions**: List of key decisions made that were open to make, or required to make in order to achieve the acceptance criteria
|
|
85
|
+
**Files**: List of key files affected
|
|
86
|
+
**Validation**: List of validation techniques that were used to achieve the acceptance criteria with detail on tests run, how they were run, and their results
|
|
87
|
+
|
|
88
|
+
- append_failure_format: |
|
|
89
|
+
FAILURE SUMMARY:
|
|
90
|
+
**Verdict**: Why the previous attempt was cleared for a blank slate, OR why the previous attempt was commited and expected to be built on top of
|
|
91
|
+
**Learnings**: What was learned in the attempt that failed
|
|
92
|
+
**Left to do**: Infered tips on how to keep going after failure
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Skill Schema
|
|
2
|
+
# Files in .allhands/skills/*/SKILL.md
|
|
3
|
+
# Single source of truth for skill documentation
|
|
4
|
+
|
|
5
|
+
frontmatter:
|
|
6
|
+
name:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: "Unique skill identifier (must match containing folder name)"
|
|
10
|
+
|
|
11
|
+
description:
|
|
12
|
+
type: string
|
|
13
|
+
required: true
|
|
14
|
+
description: "Use case description - when/why to use this skill for domain expertise"
|
|
15
|
+
|
|
16
|
+
globs:
|
|
17
|
+
type: array
|
|
18
|
+
items: string
|
|
19
|
+
required: true
|
|
20
|
+
description: "File patterns this skill applies to (used for discovery during prompt curation)"
|
|
21
|
+
|
|
22
|
+
version:
|
|
23
|
+
type: string
|
|
24
|
+
required: false
|
|
25
|
+
description: "Semantic version of the skill"
|
|
26
|
+
|
|
27
|
+
license:
|
|
28
|
+
type: string
|
|
29
|
+
required: false
|
|
30
|
+
description: "License for the skill content"
|
|
31
|
+
|
|
32
|
+
body:
|
|
33
|
+
description: "Domain expertise guide - how to apply this skill's knowledge"
|
|
34
|
+
sections: [] # No required sections - body is flexible
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Solution Schema
|
|
2
|
+
# Files in docs/solutions/<category>/<name>.md
|
|
3
|
+
# Single source of truth for documented learnings and solved problems
|
|
4
|
+
# Per **Knowledge Compounding**, solutions capture institutional knowledge for future reference
|
|
5
|
+
|
|
6
|
+
frontmatter:
|
|
7
|
+
title:
|
|
8
|
+
type: string
|
|
9
|
+
required: true
|
|
10
|
+
description: "Descriptive title of the problem/solution (searchable)"
|
|
11
|
+
|
|
12
|
+
date:
|
|
13
|
+
type: string
|
|
14
|
+
required: true
|
|
15
|
+
format: "YYYY-MM-DD"
|
|
16
|
+
description: "Date the solution was documented"
|
|
17
|
+
|
|
18
|
+
milestone:
|
|
19
|
+
type: string
|
|
20
|
+
required: false
|
|
21
|
+
description: "Milestone branch name where this was discovered (if applicable)"
|
|
22
|
+
|
|
23
|
+
problem_type:
|
|
24
|
+
type: enum
|
|
25
|
+
required: true
|
|
26
|
+
values:
|
|
27
|
+
- build_error
|
|
28
|
+
- test_failure
|
|
29
|
+
- runtime_error
|
|
30
|
+
- performance_issue
|
|
31
|
+
- database_issue
|
|
32
|
+
- security_issue
|
|
33
|
+
- ui_bug
|
|
34
|
+
- integration_issue
|
|
35
|
+
- logic_error
|
|
36
|
+
- agentic_issue
|
|
37
|
+
- workflow_issue
|
|
38
|
+
- best_practice
|
|
39
|
+
- documentation_gap
|
|
40
|
+
description: "Category of problem - determines storage directory"
|
|
41
|
+
|
|
42
|
+
component:
|
|
43
|
+
type: string
|
|
44
|
+
required: true
|
|
45
|
+
description: "Technical component affected (e.g., 'api-client', 'auth-service', 'database', 'ui-component')"
|
|
46
|
+
|
|
47
|
+
symptoms:
|
|
48
|
+
type: array
|
|
49
|
+
items: string
|
|
50
|
+
required: true
|
|
51
|
+
min_items: 1
|
|
52
|
+
max_items: 5
|
|
53
|
+
description: "Observable symptoms that indicate this problem (searchable)"
|
|
54
|
+
|
|
55
|
+
root_cause:
|
|
56
|
+
type: enum
|
|
57
|
+
required: true
|
|
58
|
+
values:
|
|
59
|
+
- missing_dependency
|
|
60
|
+
- wrong_api_usage
|
|
61
|
+
- configuration_error
|
|
62
|
+
- logic_error
|
|
63
|
+
- timing_issue
|
|
64
|
+
- resource_leak
|
|
65
|
+
- missing_validation
|
|
66
|
+
- permission_issue
|
|
67
|
+
- agentic_hallucination
|
|
68
|
+
- agentic_duplication
|
|
69
|
+
- agentic_miscommunication
|
|
70
|
+
- incomplete_implementation
|
|
71
|
+
- environment_mismatch
|
|
72
|
+
- documentation_missing
|
|
73
|
+
description: "Root cause category for pattern detection"
|
|
74
|
+
|
|
75
|
+
severity:
|
|
76
|
+
type: enum
|
|
77
|
+
required: true
|
|
78
|
+
values: [critical, high, medium, low]
|
|
79
|
+
description: "Impact severity for prioritization"
|
|
80
|
+
|
|
81
|
+
tags:
|
|
82
|
+
type: array
|
|
83
|
+
items: string
|
|
84
|
+
required: true
|
|
85
|
+
description: "Searchable keywords (lowercase, hyphen-separated)"
|
|
86
|
+
|
|
87
|
+
source:
|
|
88
|
+
type: enum
|
|
89
|
+
required: false
|
|
90
|
+
values: [user-steering, agent-inferred, review-fix]
|
|
91
|
+
default: agent-inferred
|
|
92
|
+
description: "How this learning was discovered"
|
|
93
|
+
|
|
94
|
+
body:
|
|
95
|
+
description: "Structured documentation of the problem and solution"
|
|
96
|
+
sections:
|
|
97
|
+
- name: "Problem"
|
|
98
|
+
required: true
|
|
99
|
+
description: "What happened - exact error messages, observable behavior"
|
|
100
|
+
|
|
101
|
+
- name: "Investigation"
|
|
102
|
+
required: false
|
|
103
|
+
description: "What was tried that didn't work (helps avoid wrong paths)"
|
|
104
|
+
|
|
105
|
+
- name: "Solution"
|
|
106
|
+
required: true
|
|
107
|
+
description: "What fixed it - code changes, configuration, etc."
|
|
108
|
+
|
|
109
|
+
- name: "Prevention"
|
|
110
|
+
required: true
|
|
111
|
+
description: "How to avoid this in future - patterns, checks, guidance"
|
|
112
|
+
|
|
113
|
+
- name: "Related"
|
|
114
|
+
required: false
|
|
115
|
+
description: "Cross-references to similar solutions"
|
|
116
|
+
|
|
117
|
+
# Category mapping based on problem_type
|
|
118
|
+
category_mapping:
|
|
119
|
+
build_error: "build-errors"
|
|
120
|
+
test_failure: "test-failures"
|
|
121
|
+
runtime_error: "runtime-errors"
|
|
122
|
+
performance_issue: "performance-issues"
|
|
123
|
+
database_issue: "database-issues"
|
|
124
|
+
security_issue: "security-issues"
|
|
125
|
+
ui_bug: "ui-bugs"
|
|
126
|
+
integration_issue: "integration-issues"
|
|
127
|
+
logic_error: "logic-errors"
|
|
128
|
+
agentic_issue: "agentic-issues"
|
|
129
|
+
workflow_issue: "workflow-issues"
|
|
130
|
+
best_practice: "best-practices"
|
|
131
|
+
documentation_gap: "documentation-gaps"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Spec Schema
|
|
2
|
+
# Single source of truth for specification files
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
name:
|
|
6
|
+
type: string
|
|
7
|
+
required: true
|
|
8
|
+
description: "Spec name (used for branch naming, directory creation)"
|
|
9
|
+
|
|
10
|
+
domain_name:
|
|
11
|
+
type: string
|
|
12
|
+
required: true
|
|
13
|
+
description: "Domain name (used to group specs into initiatives)"
|
|
14
|
+
|
|
15
|
+
type:
|
|
16
|
+
type: enum
|
|
17
|
+
values: [milestone, investigation, optimization, refactor, documentation, triage]
|
|
18
|
+
default: milestone
|
|
19
|
+
description: "Spec type — determines workflow orchestration, scoping flows, and branch prefix conventions"
|
|
20
|
+
|
|
21
|
+
status:
|
|
22
|
+
type: enum
|
|
23
|
+
values: [roadmap, in_progress, completed]
|
|
24
|
+
default: roadmap
|
|
25
|
+
description: "Spec implementation status"
|
|
26
|
+
|
|
27
|
+
dependencies:
|
|
28
|
+
type: array
|
|
29
|
+
items: string
|
|
30
|
+
default: []
|
|
31
|
+
description: "Other spec names this depends on"
|
|
32
|
+
|
|
33
|
+
branch:
|
|
34
|
+
type: string
|
|
35
|
+
required: true
|
|
36
|
+
default: "feature/{name}"
|
|
37
|
+
description: "Working branch for this spec"
|
|
38
|
+
|
|
39
|
+
initial_workflow_domain:
|
|
40
|
+
type: enum
|
|
41
|
+
required: false
|
|
42
|
+
values: [milestone, investigation, optimization, refactor, documentation, triage]
|
|
43
|
+
default: milestone
|
|
44
|
+
description: "Records which workflow domain was used during ideation, enables downstream flows to load correct config"
|
|
45
|
+
|
|
46
|
+
body:
|
|
47
|
+
description: "Markdown document capturing the spec vision"
|
|
48
|
+
sections:
|
|
49
|
+
- name: "Motivation"
|
|
50
|
+
required: true
|
|
51
|
+
description: "Why this spec matters. User goals and pain points."
|
|
52
|
+
|
|
53
|
+
- name: "Goals"
|
|
54
|
+
required: true
|
|
55
|
+
description: "What success looks like. Concrete outcomes."
|
|
56
|
+
|
|
57
|
+
- name: "Non-Goals"
|
|
58
|
+
required: false
|
|
59
|
+
description: "Explicit scope boundaries. What we're NOT doing."
|
|
60
|
+
|
|
61
|
+
- name: "Open Questions"
|
|
62
|
+
required: false
|
|
63
|
+
description: "Uncertainties to resolve during ideation/planning."
|
|
64
|
+
|
|
65
|
+
- name: "Technical Considerations"
|
|
66
|
+
required: false
|
|
67
|
+
description: "Known constraints, dependencies, risks."
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Validation Suite Schema
|
|
2
|
+
# Files in .allhands/validation/*.md
|
|
3
|
+
# Single source of truth for validation tooling documentation
|
|
4
|
+
|
|
5
|
+
frontmatter:
|
|
6
|
+
name:
|
|
7
|
+
type: string
|
|
8
|
+
required: true
|
|
9
|
+
description: "Unique suite identifier (matches filename without .md)"
|
|
10
|
+
|
|
11
|
+
description:
|
|
12
|
+
type: string
|
|
13
|
+
required: true
|
|
14
|
+
description: "Use case description - when/why to use this suite for validation"
|
|
15
|
+
|
|
16
|
+
globs:
|
|
17
|
+
type: array
|
|
18
|
+
items: string
|
|
19
|
+
required: true
|
|
20
|
+
description: "File patterns this suite validates (used for discovery and future hooks)"
|
|
21
|
+
|
|
22
|
+
tools:
|
|
23
|
+
type: array
|
|
24
|
+
items: string
|
|
25
|
+
required: true
|
|
26
|
+
description: "CLI tools and packages used by this validation suite (e.g., agent-browser, playwright, axe-core)"
|
|
27
|
+
|
|
28
|
+
body:
|
|
29
|
+
description: "Validation tooling usage guide — two-dimensional (stochastic + deterministic) validation playbook"
|
|
30
|
+
sections:
|
|
31
|
+
- name: "Purpose"
|
|
32
|
+
required: true
|
|
33
|
+
description: "What quality aspects this suite validates (stability, performance, UX, accessibility, etc.)"
|
|
34
|
+
|
|
35
|
+
- name: "Tooling"
|
|
36
|
+
required: true
|
|
37
|
+
description: "Tools used by this suite, installation instructions, and configuration"
|
|
38
|
+
|
|
39
|
+
- name: "Stochastic Validation"
|
|
40
|
+
required: true
|
|
41
|
+
description: "Agent-driven exploratory validation playbook. Exploratory patterns, edge case probing strategies, and escape hatches for death spirals (max retries, fallback patterns, when to stop and report)"
|
|
42
|
+
|
|
43
|
+
- name: "Deterministic Integration"
|
|
44
|
+
required: true
|
|
45
|
+
description: "CI-gated scripted validation. Test scripts, CI configuration, success/failure criteria, and artifact capture"
|
|
46
|
+
|
|
47
|
+
- name: "ENV Configuration"
|
|
48
|
+
required: false
|
|
49
|
+
description: "Environment variables and configuration needed for both dimensions. Only present when the suite requires external configuration (base URLs, credentials, providers)"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Workflow Domain Config Schema
|
|
2
|
+
# Single source of truth for workflow domain configuration files in .allhands/workflows/
|
|
3
|
+
|
|
4
|
+
frontmatter:
|
|
5
|
+
name:
|
|
6
|
+
type: string
|
|
7
|
+
required: true
|
|
8
|
+
description: "Domain identifier matching spec type values (milestone, investigation, etc.)"
|
|
9
|
+
|
|
10
|
+
type:
|
|
11
|
+
type: enum
|
|
12
|
+
required: true
|
|
13
|
+
values: [milestone, investigation, optimization, refactor, documentation, triage]
|
|
14
|
+
description: "Workflow domain type"
|
|
15
|
+
|
|
16
|
+
planning_depth:
|
|
17
|
+
type: enum
|
|
18
|
+
required: true
|
|
19
|
+
values: [deep, focused]
|
|
20
|
+
description: "Planning depth — milestone uses deep (full research + jury), all others use focused"
|
|
21
|
+
|
|
22
|
+
jury_required:
|
|
23
|
+
type: boolean
|
|
24
|
+
required: true
|
|
25
|
+
description: "Whether spec planning activates the 4-member jury review"
|
|
26
|
+
|
|
27
|
+
max_tangential_hypotheses:
|
|
28
|
+
type: integer
|
|
29
|
+
required: true
|
|
30
|
+
description: "Cap on tangential emergence hypotheses after core consolidation"
|
|
31
|
+
|
|
32
|
+
required_ideation_questions:
|
|
33
|
+
type: array
|
|
34
|
+
items: string
|
|
35
|
+
required: true
|
|
36
|
+
description: "Questions the ideation scoping flow MUST ask for this domain"
|
|
37
|
+
|
|
38
|
+
body:
|
|
39
|
+
description: "Markdown document with domain-specific knowledge and guidance"
|
|
40
|
+
sections:
|
|
41
|
+
- name: "Domain Knowledge"
|
|
42
|
+
required: true
|
|
43
|
+
description: "Freetext domain-specific considerations, vocabulary, deep dives, gap detection patterns, completeness criteria"
|
|
44
|
+
|
|
45
|
+
- name: "Ideation Guidance"
|
|
46
|
+
required: true
|
|
47
|
+
description: "How the ideation flow should interpret this domain's knowledge (probe guidance, output sections, principle citations)"
|
|
48
|
+
|
|
49
|
+
- name: "Planning Considerations"
|
|
50
|
+
required: true
|
|
51
|
+
description: "Constraints, limitations, edge cases for spec planning to surface"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./harness/src/schemas/settings.schema.json",
|
|
3
|
+
"daemon": {
|
|
4
|
+
"enabled": true
|
|
5
|
+
},
|
|
6
|
+
"git": {
|
|
7
|
+
"baseBranch": "main"
|
|
8
|
+
},
|
|
9
|
+
"emergent": {
|
|
10
|
+
"hypothesisDomains": [
|
|
11
|
+
"testing",
|
|
12
|
+
"stability",
|
|
13
|
+
"performance",
|
|
14
|
+
"feature",
|
|
15
|
+
"ui/ux",
|
|
16
|
+
"integration"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"validation": {
|
|
20
|
+
"format": {
|
|
21
|
+
"enabled": false,
|
|
22
|
+
"command": "pnpm format",
|
|
23
|
+
"patterns": []
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"tldr": {
|
|
27
|
+
"enableForHarness": true
|
|
28
|
+
},
|
|
29
|
+
"knowledge": {
|
|
30
|
+
"similarityThreshold": 0.65,
|
|
31
|
+
"fullContextSimilarityThreshold": 0.82,
|
|
32
|
+
"contextTokenLimit": 5000
|
|
33
|
+
},
|
|
34
|
+
"oracle": {
|
|
35
|
+
"defaultProvider": "openai",
|
|
36
|
+
"compactionProvider": "gemini"
|
|
37
|
+
},
|
|
38
|
+
"opencodeSdk": {
|
|
39
|
+
"model": "opencode/gpt-5-nano",
|
|
40
|
+
"codesearchToolBudget": 12
|
|
41
|
+
},
|
|
42
|
+
"spawn": {
|
|
43
|
+
"promptScopedAutocompactAt": 65
|
|
44
|
+
},
|
|
45
|
+
"eventLoop": {
|
|
46
|
+
"tickIntervalMs": 5000
|
|
47
|
+
},
|
|
48
|
+
"prReview": {
|
|
49
|
+
"reviewMatchPattern": "greptile-apps",
|
|
50
|
+
"rerunComment": "@greptileai",
|
|
51
|
+
"checkFrequency": 3
|
|
52
|
+
},
|
|
53
|
+
"disabledHooks": [
|
|
54
|
+
"context signature",
|
|
55
|
+
"context search-router"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-code-patterns
|
|
3
|
+
description: Must use when building agents, skills, hooks, commands, or Claude Code tool configs. Contains Claude Code native feature documentation and structure patterns that are essential context.
|
|
4
|
+
globs:
|
|
5
|
+
- ".allhands/**/*.ts"
|
|
6
|
+
- ".allhands/**/*.md"
|
|
7
|
+
- "**/CLAUDE.md"
|
|
8
|
+
- ".claude/**/*"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Reference for Claude Code native features. Docs auto-sync to `~/.claude-code-docs/docs/`. Read local docs for authoritative reference matching task use case.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<quick_start>
|
|
16
|
+
1. Identify what you're building (skill, agent, hook, etc.)
|
|
17
|
+
2. MUST Read corresponding docs from `~/.claude-code-docs/docs/`
|
|
18
|
+
3. Apply patterns from doc categories below
|
|
19
|
+
</quick_start>
|
|
20
|
+
|
|
21
|
+
<success_criteria>
|
|
22
|
+
- Correct doc file(s) consulted for task type
|
|
23
|
+
- Implementation follows official patterns
|
|
24
|
+
- Structure matches documented conventions
|
|
25
|
+
</success_criteria>
|
|
26
|
+
|
|
27
|
+
<workflow>
|
|
28
|
+
### Doc Selection by Task
|
|
29
|
+
|
|
30
|
+
| Building | Read These (in ~/.claude-code-docs/docs/) |
|
|
31
|
+
|----------|------------------------------------------|
|
|
32
|
+
| Skills | skills.md, plugins.md |
|
|
33
|
+
| Agents/Sub-agents | sub-agents.md |
|
|
34
|
+
| Hooks | hooks-guide.md, hooks.md |
|
|
35
|
+
| MCP/Tools | mcp.md, third-party-integrations.md |
|
|
36
|
+
| Memory/Context | memory.md, settings.md |
|
|
37
|
+
| CLI Commands | cli-reference.md, slash-commands.md |
|
|
38
|
+
| Enterprise/Auth | amazon-bedrock.md, google-vertex-ai.md, iam.md, security.md |
|
|
39
|
+
| IDE Integration | vs-code.md, jetbrains.md, devcontainer.md |
|
|
40
|
+
| CI/CD | github-actions.md, gitlab-ci-cd.md, headless.md |
|
|
41
|
+
|
|
42
|
+
### Doc Categories
|
|
43
|
+
|
|
44
|
+
**Core (curator priority)**: skills.md, sub-agents.md, hooks-guide.md, hooks.md, mcp.md, memory.md, plugins.md
|
|
45
|
+
|
|
46
|
+
**Config**: settings.md, model-config.md, network-config.md, terminal-config.md, output-styles.md
|
|
47
|
+
|
|
48
|
+
**IDE**: vs-code.md, jetbrains.md, devcontainer.md, desktop.md
|
|
49
|
+
|
|
50
|
+
**Enterprise**: amazon-bedrock.md, google-vertex-ai.md, microsoft-foundry.md, iam.md, security.md, llm-gateway.md
|
|
51
|
+
|
|
52
|
+
**CI/CD**: github-actions.md, gitlab-ci-cd.md, headless.md
|
|
53
|
+
|
|
54
|
+
**Reference**: cli-reference.md, common-workflows.md, troubleshooting.md, changelog.md, quickstart.md
|
|
55
|
+
</workflow>
|
|
56
|
+
|
|
57
|
+
<examples>
|
|
58
|
+
### Extended Patterns (./docs/)
|
|
59
|
+
- `docs/context-hygiene.md` - CLAUDE.md priority rules, poison context detection
|
|
60
|
+
</examples>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Context Hygiene Patterns
|
|
2
|
+
|
|
3
|
+
Read this when: building/modifying CLAUDE.md, debugging inconsistent agent behavior, designing multi-step workflows.
|
|
4
|
+
|
|
5
|
+
## CLAUDE.md Priority Rules
|
|
6
|
+
|
|
7
|
+
- CLAUDE.md = system rules (immutable, followed sequentially)
|
|
8
|
+
- User prompts = requests within rules (flexible, optimized)
|
|
9
|
+
- Front-load critical context in CLAUDE.md over dynamic file reads
|
|
10
|
+
- Markdown structure prevents instruction bleed
|
|
11
|
+
|
|
12
|
+
## Poison Context Detection
|
|
13
|
+
|
|
14
|
+
Signs context is poisoned:
|
|
15
|
+
- Agent pairs unrelated actions unexpectedly
|
|
16
|
+
- Old instructions persist when they shouldn't
|
|
17
|
+
- Competing rules cause inconsistent behavior
|
|
18
|
+
|
|
19
|
+
Fix: `/clear` or new session. Prevent: explicit task boundaries, avoid action pairing.
|