-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify CWD and timestamp to AI #1607
base: development
Are you sure you want to change the base?
Conversation
whether the CWD is accurate or not actually depends on which bash tool is used? I now realize there are two bash tools: ideally the bash tool which can change folders would tell the AI which folder it's actually in with every user message, so it doesn't get lost (possibly by just showing the AI the actual prompt and last output?). |
I changed this to a draft, since "Currently the bash environment is non-interactive" is dependent on the tools enabled. I will revise it |
2048fcd
to
34dc44d
Compare
OK I made the CWD message more accurate and split it up into multiple commits for readability |
and remove from cwd try..except and put in quotes
and clarify that it is updated with every user message.
CWD in system message does not update as AI changes folders (in tools that support changing folders). Also put path in quotes in case it has spaces.
Also I realized that including a timestamp in the system message would invalidate token caching and waste money. I would prefer that the timestamp be included with each user message anyway, and not in system message. |
Describe the changes you have made:
CWD in system message does not update as AI changes folders, but the time does stay up to date.
Add time, not just date.
Put username on its own line and remove from cwd try..except.
Reference any relevant issues (e.g. "Fixes #000"):
Pre-Submission Checklist (optional but appreciated):
docs/CONTRIBUTING.md
docs/ROADMAP.md
OS Tests (optional but appreciated):