Skip to content

Finding git repository fails because Embody assumes my project lives somewhere in user home directory #19

@Ten0

Description

@Ten0

Windows.
I have placed my project in some path in another drive than C.
Embody uses some logic where it compares path length to user home dir with path len of current directory, but doesn't ever check that current directory is actually a subdirectory of user home directory.
If that isn't the case, that logic doesn't make sense.
For me, that leads to the git repository not being found in subsequent runs after the first.
(In the first run I can pick the path manually, but in subsequent runs it doesn't remember it and tries to search and fails, then duplicates the configuration, and MCP server doesn't even connect anymore.)

home_dir = Path.home()
for parent_dir in [project_dir] + list(project_dir.parents):
if parent_dir == home_dir or len(parent_dir.parts) <= len(home_dir.parts):

NB: I'd actually like for my TouchDesigner project, its AGENTS.md file, skills, rules etc to live in a sub directory of my actual git repository (I can then select my git_root/touchdesigner folder as my workspace root in Cursor), because my git repository contains more things than this and I need general AGENTS.md directives for it as well.
How can I achieve that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions