Repository navigation
fix(identity): never guess an agent from a broad folder; amp-init --remember - #42
Merged
Merged
Conversation
…emember; clearer status line A session below a folder that one agent owns was named after that agent, even when the folder was $HOME or /tmp, so amp-identity answered as an unrelated agent. A broad folder now matches only the exact folder. amp-init registers the project folder, and --remember writes CLAUDE_AGENT_NAME into the folder's .claude/settings.local.json so later sessions know who they are. The status line says a session has no name instead of 'not configured (run amp-init)'. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
jpelaez-23blocks
added a commit
that referenced
this pull request
Oct 16, 2026
Version bump for #42 (broad-folder identity guess fix, amp-init --remember, clearer status line). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Juan Pelaez <juan.pelaez@3metas.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reported by an agent that ran
amp-init --name sebastian:amp-identitythen answered as a different agent (the AI Maestro agent that owns /private/tmp), and the status line said "not configured (run amp-init)" for a session that had just never been named./,/tmp,/private/tmp,/Users,/home, $HOME, its parent) matches only the exact folder, never a folder below it. Project folders still match below.metadata.working_directorywhen registering (never a broad one); new--rememberwritesenv.CLAUDE_AGENT_NAMEinto the folder's.claude/settings.local.json, keeping other settings, refusing a broad folder or a non-JSON file; prints the one command that makes it stick.12 new bats tests (tests/unit/session_identity.bats); they fail on the old scripts. Full suite: 321 pass.
🤖 Generated with Claude Code