Skip to content

refactor(config): change default home directory from ~/forge to ~/.forge#2902

Merged
amitksingh1490 merged 6 commits intotailcallhq:mainfrom
youming-ai:refactor/dotforge-home-directory
Apr 9, 2026
Merged

refactor(config): change default home directory from ~/forge to ~/.forge#2902
amitksingh1490 merged 6 commits intotailcallhq:mainfrom
youming-ai:refactor/dotforge-home-directory

Conversation

@youming-ai
Copy link
Copy Markdown
Contributor

Summary

  • Change default config base directory from ~/forge to ~/.forge, consistent with other CLI agent tools (~/.claude, ~/.cursor, ~/.codex, etc.)
  • For backward compatibility, automatically falls back to legacy ~/forge when it exists and ~/.forge does not — no manual migration needed
  • Updated README documentation to reflect the new default

Test plan

  • Fresh install creates ~/.forge/ directory
  • Existing ~/forge/ users continue working without changes (fallback logic)
  • Once user creates ~/.forge/, it takes precedence over ~/forge/
  • FORGE_CONFIG env var still overrides both paths

🤖 Generated with Claude Code

Use a hidden dotfile directory (`~/.forge`) as the default config base
path, consistent with other CLI agent tools (e.g. `~/.claude`,
`~/.cursor`). For backward compatibility, falls back to the legacy
`~/forge` path when it exists and `~/.forge` does not.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 9, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the type: refactor Code refactoring and restructuring. label Apr 9, 2026
@tusharmath tusharmath enabled auto-merge (squash) April 9, 2026 10:57
@amitksingh1490 amitksingh1490 disabled auto-merge April 9, 2026 11:55
@amitksingh1490 amitksingh1490 enabled auto-merge (squash) April 9, 2026 11:55
@amitksingh1490 amitksingh1490 merged commit 26badba into tailcallhq:main Apr 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Code refactoring and restructuring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants