Skip to content

fix(init): inject WORKSPACE-RULES into AGENTS.md during workspace init#14

Merged
christso merged 5 commits intomainfrom
fix/agents-template
Jan 27, 2026
Merged

fix(init): inject WORKSPACE-RULES into AGENTS.md during workspace init#14
christso merged 5 commits intomainfrom
fix/agents-template

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

  • Remove dummy AGENTS.md template with placeholder content
  • Create AGENTS.md with only WORKSPACE-RULES when none exists
  • Inject WORKSPACE-RULES into existing AGENTS.md (idempotent)
  • Refactor to single ensureWorkspaceRules() function with optional override
  • Simplify rules content by removing redundant heading
  • Read CLI version dynamically from package.json
  • Bump version to 0.1.7

Test plan

  • allagents workspace init /tmp/test creates AGENTS.md with only WORKSPACE-RULES
  • allagents workspace init /tmp/test with existing AGENTS.md injects rules
  • allagents --version shows 0.1.7

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 27, 2026

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: a230177
Status: ✅  Deploy successful!
Preview URL: https://0b6c027a.allagents.pages.dev
Branch Preview URL: https://fix-agents-template.allagents.pages.dev

View logs

- Remove dummy AGENTS.md template with placeholder content
- Create AGENTS.md with only WORKSPACE-RULES when none exists
- Inject WORKSPACE-RULES into existing AGENTS.md (idempotent)
- Refactor to single ensureWorkspaceRules() function with optional override
- Simplify rules content by removing redundant heading
- Read version dynamically from package.json in CLI
Cloudflare Pages builds don't have a .git directory, causing prek
install to fail. Make prek install conditional on .git existing.
@christso christso force-pushed the fix/agents-template branch from 255339a to 553a0d2 Compare January 27, 2026 02:20
christso and others added 2 commits January 27, 2026 14:51
The test, lint, and typecheck scripts don't accept file arguments -
they run on the whole project. Disabling pass_filenames prevents
prek from appending changed files to these commands.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@christso christso merged commit 522bf28 into main Jan 27, 2026
1 check passed
@christso christso deleted the fix/agents-template branch January 27, 2026 03:54
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