Skip to content

Conversation

@soniclue
Copy link

@soniclue soniclue commented Dec 28, 2025

  • Constraint the LLM prompt regarding the project directory; otherwise, in my test, the model will sometimes create files in the git folder (where agent.py is), not in the designated project folder given by the command line.

  • Pass back stdout (optional) for the run command tool; sometimes, the model executes command like pwd. It is useful to put the result in observation.

Testing:

Before:

image

After:

image

- Constraint the LLM prompt regarding the project directory; otherwise, in my test, the model operates in the git folder, not in the designated project folder.
- Pass back stdout (optional) for the run command tool; sometimes, the model executes command like `pwd`. It is useful to put the result in observation.
@soniclue soniclue changed the title Improve the agent code by 2 folds: Improve the agent code by 2 folds Dec 29, 2025
@soniclue
Copy link
Author

hi @MarkTechStation , I watched your react agent video on youtube and found it very useful in helping me understand some key concepts. I tried your code and made a few improvements.

Can you please take a look at this PR and perhaps approve it?

Regards,
Your youtube viewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant