feat: add daily-function-namer agentic workflow#20732
Conversation
…e suggestions Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…er-issues field Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in 7c54dbe. Replaced the |
There was a problem hiding this comment.
Pull request overview
Adds a new daily gh-aw workflow that uses Serena + cache-memory to rotate through Go files in pkg/ and open a refactoring issue with function rename recommendations to improve agent discoverability.
Changes:
- Introduces
daily-function-namerworkflow prompt defining the round-robin selection + rename heuristics + issue template. - Adds the compiled workflow manifest (
.lock.yml) generated from the.mddefinition.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/daily-function-namer.md | Defines the daily agentic analysis steps, caching strategy, and issue output format for rename suggestions. |
| .github/workflows/daily-function-namer.lock.yml | Compiled GitHub Actions workflow generated by gh-aw to execute the new workflow. |
Comments suppressed due to low confidence (1)
.github/workflows/daily-function-namer.md:129
- Section 5.2 references “functions identified in 6.1”, but there is no 6.1 (and the relevant symbol extraction step is 5.1). Please fix the step reference so the agent can follow the intended sequence reliably.
For each function identified in 6.1, read enough of the implementation to understand its behavior:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
|
||
| ``` | ||
| Tool: find_referencing_symbols | ||
| Args: { "symbol_name": "<currentName>", "file_path": "pkg/..." } |
| Read the current rotation position from cache: | ||
|
|
||
| ```bash | ||
| cat /tmp/gh-aw/cache-memory/function-namer-state.json |
| ``` | ||
|
|
||
| All file paths are relative to the repository root (e.g., `pkg/workflow/compiler.go`), | ||
| matching the output of the `find pkg` command in Step 3. |
Go function names optimized for human readability often fail agent discoverability — generic verbs like
process(),handle(),run()give agents no signal when searching for relevant code. This adds a daily workflow that systematically renames functions to improve agent-findability across the codebase.New workflow:
daily-function-namerlast_indexcursor in/tmp/gh-aw/cache-memory/function-namer-state.json; each run processes 3 non-test.gofiles frompkg/, wrapping with modulo across the full file listshared/mcp/serena-go.md(LSP-backed) to extract symbols and resolve call sites viaget_symbols_overview+find_referencing_symbolsprocess,handle,run,mkCfg,genSO) and proposes specific verb+noun replacements (e.g.mkCfg→buildMCPServerConfig)[function-namer]issue with a rename table per file, full function inventory, and a ready-to-assign implementation plan (search commands, commit conventions, validation checklist); stale issues are automatically closed viaclose-older-issues: trueOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.