Skip to content

docs: agents use leaf when the CLI is installed, ignore the sqlite file - #52

Merged
mychidarko merged 2 commits into
v5.xfrom
fix/agent-cli-wording
Dec 4, 2026
Merged

mychidarko merged 2 commits into
v5.xfrom
fix/agent-cli-wording

Conversation

@mychidarko

Copy link
Copy Markdown
Member

Follow-up to the review of #51.

  • AGENTS.md, the Claude skill stub and .leaf/CONTEXT.md: commands are written as leaf ..., with php leaf ... as the fallback when the CLI is not installed.
  • .gitignore ignored storage/database, which nothing uses. The default SQLite file lives in storage/app/db, so that is ignored now.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mychidarko

mychidarko commented Dec 4, 2026 •

Copy link
Copy Markdown
Member Author

Notes for whoever reviews this.

Merge order. This is the last of three follow-ups. Merge leafsphp/docs#147 first, then leafsphp/mvc-core#36, then this one. Tag mvc-core before leafMVC as well: AGENTS.md falls back to php leaf install and php leaf context, and both only exist once mvc-core ships.

What changed and why.

  • Commands are written as leaf .... php leaf ... is the fallback for a machine where which leaf fails. docs: AGENTS.md opens with inline rules and exact php leaf commands #51 had it the other way round, and the bundled skill disagreed with it.
  • .gitignore only ignored storage/database. The default SQLite file is storage/app/db/database.sqlite, so a plain git add . would have committed the database and its WAL files. storage/app/db is ignored now as well, and storage/database stays. SQLite stays the default.

Not verified.

  • This repo has no CI, so nothing ran on this branch. The matching test changes are in mvc-core#36, where all 20 jobs pass.
  • Nobody has measured the result yet. Before a release, build the same small app with an agent on the old template and on this one, then compare tokens used and whether it reached for leafs/auth and the schema commands.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread .gitignore
storage/database
storage/app/db
public/storage

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep storage/database in the gitignore, so this becomes an addition

@mychidarko
mychidarko merged commit d25d66e into v5.x Dec 4, 2026
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