When running entire enable --agent <agent> --local-dev, the only agent this generates a…
Jump to turn (17)
- 1When running entire enable --agent --local-dev, the only agent this generates a
- 2I don't think using relative paths is a good idea. There could be cases where an
- 3[Request interrupted by user]
- 4Just to be clear: We also can't hard code an absolute path based on when Install
- 5Make it so!
- 6[Request interrupted by user]
- 7First and foremost: Don't keep around the legacy format since it simply didn't w
- 8[Request interrupted by user]
- 9Based on what I just saw, I think we should probably use the git rev-parse mecha
- 10I don't think it's necessary to support hooks with arbitrary paths if all of the
- 11Can you also update our docs and skills referencing these environment variables
- 12Can you also check all of the locally configured hooks in this repo and update t
- 13The opencode hooks don't seem to work. I don't think the $() string interpolatio
- 14[Request interrupted by user]
- 15DO NOT USE THE directory variable. We've already established why.
- 16[Request interrupted by user]
- 17Before you continue: Right now, it looks like the plugin causes opencode to fail
- User
When running
entire enable --agent <agent> --local-dev, the only agent this generates a correct hooks setup for is claude code. For other agents, it assumes that an environment variable called<AGENT_NAME>_PROJECT_DIRis populated by the agent. That is only the case for claude and not for other agents.Can you find a way to fix the hooks generated for agents other than claude that will work appropriately?
Assistant· claude-opus-4-6
Let me explore the relevant code to understand the current hook generation for
--local-dev.Assistant· claude-opus-4-6
Good. Now let me read the specific hook generation code for a couple of agents to see exactly how the local-dev command is constructed.