Skip to content

Slim agent template and support Reforged map folders - #77

Merged
Frotty merged 4 commits into
masterfrom
codex/slim-wurst-agent-template
Aug 11, 2026
Merged

Slim agent template and support Reforged map folders#77
Frotty merged 4 commits into
masterfrom
codex/slim-wurst-agent-template

Conversation

@Frotty

@Frotty Frotty commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

  • slim the generated Wurst project AGENTS.md from 251 lines / roughly 2,100 words to 73 lines / 788 words
  • preserve language guidance through compiler-matched WURST_LANGUAGE.md agent docs with an official manual fallback
  • add Reforged-aware grill generate selection between a .w3x archive and a .w3x map folder
  • support the matching wurst-project-template branches (master and map-folder)
  • keep patch, map discovery, and generation behavior covered by tests

Why

The generated preset is loaded into every agent session, so detailed language and dependency material should be available on demand without crowding out project policy. Project generation also needs to reflect the two map storage modes supported by Warcraft III editors, with folder mode as the natural default for Reforged projects.

Impact

Generated projects now recommend map folders for Reforged patches and map archives for older patch targets. Users can override the choice interactively or with --map-format archive|folder. The template documentation remains compact while retaining the language information agents need.

Validation

  • ./gradlew test --tests GenerateTests
  • ./gradlew test
  • git diff --check

@Frotty
Frotty marked this pull request as ready for review August 8, 2026 11:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6830a63baa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/main/kotlin/file/SetupApp.kt
@Frotty

Frotty commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c262807f08

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

private fun ensureCompilerAgentDocs(compilerJar: Path) {
try {
JarFile(compilerJar.toFile()).use { jar ->
val entry = jar.getJarEntry(LANGUAGE_AGENT_DOC_ENTRY) ?: return

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Remove stale language docs when the compiler omits them

When a compiler that contains agent-docs/WURST_LANGUAGE.md is replaced or downgraded to a compiler without that entry, this early return leaves the previously extracted file in place. Generated project notes then find the local file and treat it as compiler-matched instead of using the online fallback, potentially giving agents semantics from the wrong compiler version; delete the extracted file when the active JAR lacks the entry.

AGENTS.md reference: AGENTS.md:L18-L18

Useful? React with 👍 / 👎.

@Frotty Frotty changed the title Slim Wurst project agent template Slim agent template and support Reforged map folders Aug 11, 2026
@Frotty

Frotty commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: b1bf8b4f67

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit cebde52 into master Aug 11, 2026
1 check passed
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