Skip to content

feat(cli): aexp init writes the config in one command (story 29.1) - #236

Merged
fabbrik merged 1 commit into
mainfrom
feat/29-1-aexp-init
Nov 14, 2026
Merged

fabbrik merged 1 commit into
mainfrom
feat/29-1-aexp-init

Conversation

@fabbrik

@fabbrik fabbrik commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Story 29.1 of Epic 29 (Reach Without a .NET Toolchain).

aexp init [--print] [--force] [--verify <json array>], run in the project root:

  • detects the verifier when one kind of project is at the root (dotnet test, npm test, pytest, go test ./...; make test only when none of those fits), asks at a terminal when none or several fit (a number, a JSON array, or Enter for the placeholder), or takes --verify as a JSON array, never a shell line;
  • writes a commented .aexp/config.json with today's defaults (atomic, .aexp/ 0700), never over an existing one without --force;
  • adds .aexp/ to .gitignore when the directory is under git (walking up for .git);
  • prints the steps left to a person: review, aexp trust, then aexp setup claude-code or claude mcp add. It approves nothing.

aexp setup claude-code writes its config and .gitignore entry through the same generator, so there is one; its values are unchanged and the file is now commented. Both commands refuse --config and report a write failure without a stack trace.

Tests: AgentExperience.Cli.Tests 129 passed (16 new in InitTests.cs, one per matrix row plus the acceptance criteria and a "every rendered config loads" theory). No lesson, holdout, hook or dogfood change.

🤖 Generated with Claude Code

aexp init [--print] [--force] [--verify <json array>] detects the project's
test command (dotnet, npm, pytest, go; make test when nothing else fits),
asks at a terminal when none or several fit, writes a commented
.aexp/config.json, adds .aexp/ to .gitignore when under git, and prints
the steps left to a person. It approves nothing: aexp trust stays theirs.
aexp setup claude-code writes its config through the same generator
(ProjectInit), so there is one.

Review round 1 (edge cases): make test is a fallback so setup's
detection is unchanged for the four old kinds; under-git walks up the
parents; the Makefile regex excludes ::= assignments; init and setup
refuse --config and report write failures without a stack trace.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@fabbrik
fabbrik merged commit eca3562 into main Nov 14, 2026
23 checks passed
@fabbrik
fabbrik deleted the feat/29-1-aexp-init branch November 14, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant