Repository navigation
V25: Generate AGENTS.md in scaffolded projects - #696
Merged
Merged
Conversation
Every lousho init / create-lousho-agent project gets an AGENTS.md (files, the real npm scripts, conventions, lousho.com docs links) and a CLAUDE.md that imports it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LinuxDevil
force-pushed
the
v25-agents-md
branch
from
October 20, 2026 07:04
adcd809 to
114c862
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes audit finding DX-11 / STEAL #5 (Vercel competitor audit, 2026-10-19).
What was wrong
lousho init/create-lousho-agentgenerated no AGENTS.md or CLAUDE.md, so Claude Code / Cursor / Codex users got no project-specific guidance.What changed
src/cli/init/templates.ts: newAGENTS.md(under 60 lines) in every template/provider: file map, the real scripts read from the samescripts()function that builds package.json (package-manager aware), conventions (defineTool+ zodinput,needsApproval,provider/model,modelSettings.maxTokens,mockModel; the yaml template gets yaml-appropriate guidance), docs links.CLAUDE.mdcontaining@AGENTS.md(Claude Code's import convention).assertWritablestill refuses a non-empty dir,--forceoverwrites same-named files as before.docs/installation.mdmentions the new files.URLs in AGENTS.md (all return 200, checked with curl): https://lousho.com/llms.txt, /quickstart, /tools, /approvals, /testing.
Tests
templates.test.ts: for all 18 provider x template combos asserts AGENTS.md and CLAUDE.md exist, AGENTS.md <= 60 lines, the listednpm runscripts equal package.json scripts exactly, only lousho.com URLs, key conventions present; plus a pnpm test. Ran tsc, typecheck:tests, lint, test:coverage (412 files pass), fallow (exit 0), docs:llms.Changelog:
lousho initnow generates AGENTS.md and a CLAUDE.md (@AGENTS.md) in every scaffolded project.🤖 Generated with Claude Code