Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve the agent code by 2 folds#12

Open
soniclue wants to merge 1 commit into
MarkTechStation:main from
soniclue:feature-improve-reactagent
Open

Improve the agent code by 2 folds #12
soniclue wants to merge 1 commit into
MarkTechStation:main from
soniclue:feature-improve-reactagent

Conversation

@soniclue

@soniclue soniclue commented Dec 28, 2025
edited
Loading

Copy link
Copy Markdown
  • 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

Copy link
Copy Markdown
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /