Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .beads/issues.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@
{"id":"ade-4.3","title":"Fix","description":"Implement the solution based on your analysis: - If exists: Follow the design from it - Otherwise: Elaborate design options and present them to the user Before implementing, assess the approach: - How critical is this system? What is the blast radius if the fix causes issues? - Should this be a minimal fix or a more comprehensive solution? Make targeted changes that address the root cause without introducing new issues. Be careful to maintain existing functionality while fixing the bug.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.076548+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.076548+01:00","dependencies":[{"issue_id":"ade-4.3","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.3","depends_on_id":"ade-4.2","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.4","title":"Verify","description":"Test the fix thoroughly to ensure the original bug is resolved and no new issues were introduced. Run existing tests, create new ones if needed, and verify the solution is robust.","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.222264+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.222264+01:00","dependencies":[{"issue_id":"ade-4.4","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.4","depends_on_id":"ade-4.3","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-4.5","title":"Finalize","description":"Ensure code quality and documentation accuracy through systematic cleanup and review. **STEP 1: Code Cleanup** Systematically clean up development artifacts: - Remove all temporary debug output statements used during bug investigation (console logging, print statements, debug output functions) - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred - Remove completed TODOs and convert remaining ones to proper issue tracking if needed - Remove temporary debugging code, test code blocks, and commented-out code - Ensure proper error handling replaces temporary debug logging **STEP 2: Documentation Review** Review and update documentation to reflect the bug fix: - If exists, update it if design details were refined or changed during the fix - Compare documentation against the actual bug fix implementation - Update only the documentation sections that have functional changes - Remove references to investigation iterations, progress notes, and temporary decisions - Ensure documentation describes the final fixed state, not the debugging process - Ask the user to review document updates **STEP 3: Final Validation** - Run existing tests to ensure cleanup didn't break functionality - Verify documentation accuracy with a final review - Ensure bug fix is ready for production - Update task progress and mark completed work as you finalize the bug fix","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T10:33:07.356694+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T10:33:07.356694+01:00","dependencies":[{"issue_id":"ade-4.5","depends_on_id":"ade-4","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-4.5","depends_on_id":"ade-4.4","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-5","title":"ade: minor (development-plan-better-in-cli-explanation.md)","description":"Responsible vibe engineering session using minor workflow for ade","status":"open","priority":2,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T11:33:13.313751+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T11:33:13.313751+01:00"}
{"id":"ade-5.1","title":"Explore","description":"Understand the problem, analyze existing patterns, and design your approach. Consider the scope and impact of the change. **STEP 1: Analyze Requirements** - If exists: Use it to understand the required changes - Otherwise: Document requirements in your task management system **STEP 2: Review Design Approach** - If exists: Respect the design approach documented in - Otherwise: Design your approach based on the problem analysis **STEP 3: Document Decisions** - Document your analysis and design decisions - Create tasks to guide implementation - Focus on analysis and design only - do not write any code yet","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T11:33:13.459272+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T11:33:13.459272+01:00","dependencies":[{"issue_id":"ade-5.1","depends_on_id":"ade-5","type":"parent-child","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-5.2","title":"Implement","description":"Write clean, focused code for the minor enhancement, test your changes, and prepare for commit. **STEP 1: Review Design and Requirements** - If exists: Follow your design from - Otherwise: Elaborate design options and present them to the user - If exists: Ensure the relevant requirements from are met - Otherwise: Ensure existing requirements are met based on your task context **STEP 2: Implement Changes** - Write clean, focused code for the minor enhancement - Test your changes to ensure they work correctly and don't break existing functionality **STEP 3: Prepare for Finalization** - Update task progress as needed - Prepare documentation and commit when ready","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T11:33:13.597501+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T11:33:13.597501+01:00","dependencies":[{"issue_id":"ade-5.2","depends_on_id":"ade-5","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-5.2","depends_on_id":"ade-5.1","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
{"id":"ade-5.3","title":"Finalize","description":"Ensure code quality and documentation accuracy through systematic cleanup and review. **STEP 1: Code Cleanup** Systematically clean up development artifacts: - **Remove Debug Output**: Search for and remove all temporary debug output statements used during development. Look for language-specific debug output methods (console logging, print statements, debug output functions). Remove any debugging statements that were added for development purposes. - **Review TODO/FIXME Comments**: - Address each TODO/FIXME comment by either implementing the solution or documenting why it's deferred - Remove completed TODOs - Convert remaining TODOs to proper issue tracking if needed - **Remove Debugging Code Blocks**: - Remove temporary debugging code, test code blocks, and commented-out code - Clean up any experimental code that's no longer needed - Ensure proper error handling replaces temporary debug logging **STEP 2: Documentation Review** Review and update documentation to reflect final implementation: - **Update Long-Term Memory Documents**: Based on what was actually implemented: - If exists: Update if requirements changed during development - If exists: Update if design details were refined or changed - **Compare Against Implementation**: Review documentation against actual implemented functionality - **Update Changed Sections**: Only modify documentation sections that have functional changes - **Remove Development Progress**: Remove references to development iterations, progress notes, and temporary decisions - **Focus on Final State**: Ensure documentation describes the final implemented state, not the development process - **Ask User to Review Document Updates** **STEP 3: Final Validation** - Run existing tests to ensure cleanup didn't break functionality - Verify documentation accuracy with a final review - Ensure minor enhancement is ready for delivery - Update task progress and mark completed work as you finalize the minor enhancement","status":"open","priority":3,"issue_type":"task","owner":"github@beimir.net","created_at":"2026-03-19T11:33:13.733496+01:00","created_by":"Oliver Jägle","updated_at":"2026-03-19T11:33:13.733496+01:00","dependencies":[{"issue_id":"ade-5.3","depends_on_id":"ade-5","type":"parent-child","created_at":"0001-01-01T00:00:00Z"},{"issue_id":"ade-5.3","depends_on_id":"ade-5.2","type":"blocks","created_at":"0001-01-01T00:00:00Z"}]}
2 changes: 1 addition & 1 deletion .beads/last-touched
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ade-4.5
ade-5.3
24 changes: 24 additions & 0 deletions .vibe/beads-state-ade-better-in-cli-explanation-b8jcv3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"conversationId": "ade-better-in-cli-explanation-b8jcv3",
"projectPath": "/Users/oliverjaegle/projects/privat/codemcp/ade",
"epicId": "ade-5",
"phaseTasks": [
{
"phaseId": "explore",
"phaseName": "Explore",
"taskId": "ade-5.1"
},
{
"phaseId": "implement",
"phaseName": "Implement",
"taskId": "ade-5.2"
},
{
"phaseId": "finalize",
"phaseName": "Finalize",
"taskId": "ade-5.3"
}
],
"createdAt": "2026-03-19T10:33:13.963Z",
"updatedAt": "2026-03-19T10:33:13.963Z"
}
64 changes: 64 additions & 0 deletions .vibe/development-plan-better-in-cli-explanation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Development Plan: ade (better-in-cli-explanation branch)

*Generated on 2026-03-19 by Vibe Feature MCP*
*Workflow: [minor](https://mrsimpson.github.io/responsible-vibe-mcp/workflows/minor)*

## Goal
Improve user guidance in the ADE CLI — add contextual introductory text to help users understand what ADE is and what each setup facet (Process, Architecture, Practices, Autonomy, Backpressure, Harnesses, Docsets) means before they make a selection.

## Explore
<!-- beads-phase-id: ade-5.1 -->
### Tasks
- [x] Read and understand current CLI structure (index.ts, setup.ts, install.ts)
- [x] Read all facet definitions (process, architecture, practices, autonomy, backpressure)
- [x] Identify all prompts where contextual guidance is missing

### Findings
- The setup command starts with `clack.intro("ade setup")` — no explanation of what ADE is or what the wizard will do
- Facet prompts show only `facet.label` as the message — no educational context about what the facet means
- The harness prompt says "which coding agents should receive config?" — helpful but no context on what harnesses are
- The docset prompt says "deselect any you don't need" — no explanation of what docsets are used for
- The skill install confirm says only "Install N skill(s) now?" — no context on what skills are
- `index.ts` help text is minimal — no explanation of ADE's purpose

### Phase Entrance Criteria for Implement:
- [x] All touchpoints where user guidance is missing have been identified
- [x] Content approach is clear (what to say at each step)
- [x] No ambiguity about scope (we're adding text/hints, not redesigning prompts)

## Implement
<!-- beads-phase-id: ade-5.2 -->

### Phase Entrance Criteria:
- [x] Explore phase findings are complete
- [x] All identified touchpoints for improvement are listed
- [x] Scope is clearly defined: text additions only, no structural changes

### Tasks
*Tasks managed via `bd` CLI*

## Finalize
<!-- beads-phase-id: ade-5.3 -->

### Phase Entrance Criteria:
- [x] All identified touchpoints have been addressed with guidance text
- [x] Code compiles without errors
- [x] Changes look correct and consistent in tone

### Tasks
- [ ] Squash WIP commits: `git reset --soft <first commit of this branch>`. Then, create a conventional commit. In the message, first summarize the intentions and key decisions from the development plan. Then, add a brief summary of the key changes and their side effects and dependencies

*Tasks managed via `bd` CLI*

## Key Decisions
- Used `clack.note()` for the ADE intro (boxed, titled) to make it stand out as orientation content vs. action prompts
- Used `clack.log.info()` before each facet/section prompt — lightweight, doesn't interrupt the flow, provides context without being intrusive
- Facet descriptions from the catalog data model are reused directly (they were already well-written) rather than duplicated elsewhere
- Harness guidance explicitly calls out the 'universal' option since it's the most common default and its purpose isn't obvious from the name alone
- Skill install context placed immediately before the confirm prompt so it reads naturally in sequence

## Notes
*Additional context and observations*

---
*This plan is maintained by the LLM and uses beads CLI for task management. Tool responses provide guidance on which bd commands to use for task management.*
1 change: 1 addition & 0 deletions packages/cli/src/commands/conventions.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { join } from "node:path";
vi.mock("@clack/prompts", () => ({
intro: vi.fn(),
outro: vi.fn(),
note: vi.fn(),
select: vi.fn(),
multiselect: vi.fn(),
confirm: vi.fn().mockResolvedValue(true),
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/install.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { join } from "node:path";
vi.mock("@clack/prompts", () => ({
intro: vi.fn(),
outro: vi.fn(),
note: vi.fn(),
log: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },
select: vi.fn(),
multiselect: vi.fn(),
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/knowledge.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { join } from "node:path";
vi.mock("@clack/prompts", () => ({
intro: vi.fn(),
outro: vi.fn(),
note: vi.fn(),
select: vi.fn(),
multiselect: vi.fn(),
confirm: vi.fn(),
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/commands/setup.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { join } from "node:path";
vi.mock("@clack/prompts", () => ({
intro: vi.fn(),
outro: vi.fn(),
note: vi.fn(),
select: vi.fn(),
multiselect: vi.fn(),
confirm: vi.fn(),
isCancel: vi.fn().mockReturnValue(false),
cancel: vi.fn(),
log: { info: vi.fn(), warn: vi.fn() },
spinner: vi.fn().mockReturnValue({ start: vi.fn(), stop: vi.fn() })
}));

Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/commands/setup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { Catalog, LogicalConfig } from "@codemcp/ade-core";
vi.mock("@clack/prompts", () => ({
intro: vi.fn(),
outro: vi.fn(),
note: vi.fn(),
select: vi.fn(),
multiselect: vi.fn(),
confirm: vi.fn(),
Expand Down Expand Up @@ -298,7 +299,7 @@ describe("runSetup", () => {
expect(clack.multiselect).toHaveBeenCalledTimes(1);
expect(clack.multiselect).toHaveBeenCalledWith(
expect.objectContaining({
message: expect.stringContaining("Harnesses")
message: expect.stringContaining("coding agents")
})
);
});
Expand Down
49 changes: 43 additions & 6 deletions packages/cli/src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,35 @@ export async function runSetup(
projectRoot: string,
catalog: Catalog
): Promise<void> {
clack.intro("ade setup");
let lineIndex = 0;
const LOGO_LINES = [
"\n",
" █████╗ ██████╗ ███████╗ ███████╗███████╗████████╗██╗ ██╗██████╗ ",
"██╔══██╗██╔══██╗██╔════╝ ██╔════╝██╔════╝╚══██╔══╝██║ ██║██╔══██╗",
"███████║██║ ██║█████╗ ███████╗█████╗ ██║ ██║ ██║██████╔╝",
"██╔══██║██║ ██║██╔══╝ ╚════██║██╔══╝ ██║ ██║ ██║██╔═══╝ ",
"██║ ██║██████╔╝███████╗ ███████║███████╗ ██║ ╚██████╔╝██║ ",
"╚═╝ ╚═╝╚═════╝ ╚══════╝ ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ",
"\n"
];
for (const line of LOGO_LINES) {
lineIndex++;
if (lineIndex === 1) {
clack.intro(line);
} else {
console.log(`│ ${line}`);
}
}
clack.note(
[
"You're about to define how your team works with coding agents.",
"",
"Pick your facets — architecture, practices, process — and ADE",
"translates them into a shared information hierarchy your agents",
"read from the repo. One setup, consistent across the whole team."
].join("\n"),
"ADE — Agentic Development Environment"
);

const existingConfig = await readUserConfig(projectRoot);
const existingChoices = existingConfig?.choices ?? {};
Expand Down Expand Up @@ -83,7 +111,8 @@ export async function runSetup(

if (impliedDocsets.length > 0) {
const selected = await clack.multiselect({
message: "Documentation — deselect any you don't need",
message:
"Documentation sources — Those will be pulled to your local disk for browsing on demand",
options: impliedDocsets.map((d) => ({
value: d.id,
label: d.label,
Expand Down Expand Up @@ -120,7 +149,9 @@ export async function runSetup(
);

const selectedHarnesses = await clack.multiselect({
message: "Harnesses — which coding agents should receive config?",
message:
"Which coding agents should receive config?\n" +
"ADE generates config files for each agent you select.\n",
options: harnessOptions,
initialValues:
validExistingHarnesses && validExistingHarnesses.length > 0
Expand Down Expand Up @@ -173,8 +204,14 @@ export async function runSetup(
}

if (logicalConfig.skills.length > 0) {
const skillNames = logicalConfig.skills
.map((s) => ` • ${s.name}`)
.join("\n");
const confirmInstall = await clack.confirm({
message: `Install ${logicalConfig.skills.length} skill(s) now?`,
message:
`Install ${logicalConfig.skills.length} skill(s) now?\n` +
skillNames +
`\nYou can also install them later with:\n npx @codemcp/skills experimental_install`,
initialValue: true
});

Expand Down Expand Up @@ -243,7 +280,7 @@ function promptSelect(
const initialValue = getValidInitialValue(facet, existingChoices);

return clack.select({
message: facet.label,
message: `${facet.label} — ${facet.description}`,
options,
...(initialValue !== undefined && { initialValue })
});
Expand All @@ -262,7 +299,7 @@ function promptMultiSelect(
const initialValues = getValidInitialValues(facet, existingChoices);

return clack.multiselect({
message: facet.label,
message: `${facet.label} — ${facet.description}`,
options,
required: false,
...(initialValues !== undefined && { initialValues })
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ if (command === "setup") {
console.log(version);
} else {
const allIds = getHarnessIds();
console.log(`ade v${version}`);
console.log(`ade v${version} — Agentic Development Environment`);
console.log();
console.log(
"Define how your team works with coding agents — pick your facets,"
);
console.log(
"ADE translates them into a shared information hierarchy in your repo."
);
console.log();
console.log("Usage: ade <command> [options]");
console.log();
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/catalog/catalog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ describe("catalog", () => {
expect(autonomy!.required).toBe(false);
expect(autonomy!.multiSelect).toBe(false);
expect(autonomy!.options.map((option) => option.id)).toEqual([
"rigid",
"sensible-defaults",
"rigid",
"max-autonomy"
]);
});
Expand Down
Loading