diff --git a/cmd/picoclaw/internal/onboard/helpers.go b/cmd/picoclaw/internal/onboard/helpers.go index 6acc64eef..e1e443e96 100644 --- a/cmd/picoclaw/internal/onboard/helpers.go +++ b/cmd/picoclaw/internal/onboard/helpers.go @@ -10,6 +10,9 @@ import ( "github.com/sipeed/picoclaw/pkg/config" ) +// legacyAgentFile is the old workspace template filename superseded by AGENTS.md. +const legacyAgentFile = "AGENT.md" + func onboard() { configPath := internal.GetConfigPath() @@ -71,7 +74,7 @@ func copyEmbeddedToTarget(targetDir string) error { } // Skip legacy file superseded by AGENTS.md - if filepath.Base(path) == "AGENT.md" { + if filepath.Base(path) == legacyAgentFile { return nil }