Uh oh!
There was an error while loading. Please reload this page.
feat: /add-dir command - #8943
Conversation
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: Related PR:
This PR is closely related since PR #8943 adds a The other PRs that appeared in results (#7378, #6714, #5841, #7515) are related to directory permissions but don't appear to be duplicates—they address different aspects like the |
rekram1-node
commented
Jan 16, 2026
This is actually pretty clean dang, ig let's fix typechecks and tests and should be mostly good. |
rekram1-node
commented
Jan 16, 2026
Wonder if we should inject something into context tho about the dir, like running the ls against it and sending as a user message that doesnt trigger generation (using noReply) |
Leka74
commented
Jan 16, 2026
Thought about that. Could add it in. |
rekram1-node
commented
Jan 16, 2026
Feel like we should yeah |
how do you feel about re-using ListTool for this? It has all the formatting etc. but the only downside is it needs a sort of a dummy ctx created for it. Or we just use ripgrep in it directly. constctx={sessionID: body.sessionID,messageID: "",agent: "",abort: newAbortController().signal,extra: {bypassCwdCheck: true},metadata: ()=>{},ask: async()=>{},}constresult=awaitListTool.init().then((t)=>t.execute({path: resolved},ctx))awaitSessionPrompt.prompt({sessionID: body.sessionID,noReply: true,parts: [{type: "text",text: `Added directory to context:\n\n${result.output}`}],})EDIT: Probably an anti-pattern tbh, I think just using ripgrep is fine. |
Leka74
commented
Jan 16, 2026
Added this. The only blocker now is the |
rekram1-node
commented
Jan 16, 2026
Merged ur other pr in basically |
Leka74
commented
Jan 16, 2026
Should be good to merge, resolved merge conflict. |
rekram1-node
commented
Jan 17, 2026
I think this one is basically good, going to tweak the prompting of it a bit and prolly make the endpoint experimental (but we will keep it hooked up, may change routing / structure in future) |
jensenojs
commented
Jan 26, 2026
any process? |
Leka74
commented
Jan 26, 2026
it's on @rekram1-node's list last I heard. |
f1ae801 to
08fa7f7Comparemmoryl
commented
Feb 23, 2026
Just wanted to follow up on this - are there any updates? It would be a great improvement 🚀 |
wleczny
commented
Feb 23, 2026
@Leka74 Did you consider possibility to add multiple dirs at once with this command? |
Leka74
commented
Feb 23, 2026
Haven't felt the need personally to be honest to add multiple dirs at once. If I needed to, I'd just run the command multiple times. I guess it's something that can be added as an iterative process if requested by enough people. |
wleczny
commented
Feb 23, 2026
Sure, makes sense to do it as an iterative process. Thanks! |
eddienubes
commented
Mar 6, 2026
The PR seems to be complete? |
Hello, want progress of this PR, |
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Leka74
commented
May 11, 2026
rip |
youaodu
commented
May 11, 2026
continue! |
ghdefe
commented
May 18, 2026
What happened to this PR? It seems to have been created a long time ago but hasn't been merged. I really need this feature. |
Leka74
commented
May 18, 2026
@rekram1-node dead dream? |
What does this PR do?
Adds a
/add-dircommand, which gives the agent permissions to that directory in the existing session.How did you verify your code works?
Tested locally.