Skip to content

Implementing a bad agent #8368

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

Closed
wants to merge 1 commit into from
Closed

Implementing a bad agent #8368

wants to merge 1 commit into from

Conversation

Caleb-T-Owens
Copy link
Contributor

@Caleb-T-Owens Caleb-T-Owens commented May 2, 2025


⧓ Review in Butler Review #1oCs8JHfk

Implementing a bad agent

1 commit series (version 1)

Series Commit Title Status Reviewers
1/1 Implementing a bad agent

Please leave review feedback in the Butler Review

Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:08am
gitbutler-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 8:08am

@github-actions github-actions bot added rust Pull requests that update Rust code @gitbutler/desktop labels May 2, 2025
@Caleb-T-Owens Caleb-T-Owens marked this pull request as draft May 2, 2025 08:09
path: &str,
) -> Result<Vec<String>, Error> {
let project = projects.get(project_id)?;
let files = std::fs::read_dir(project.path.join(path)).map_err(|err| anyhow::anyhow!(err))?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know anything about the feature itself, but I think it will be a worthwhile measure to first check if path is relative. Otherwise, absolute paths, when joined, will fully replace the project path, allowing 'breakouts'. The same would be true for agent_read_file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nothing more than just a demo and something I wanted to play around with.

We would indeed want to much more seriously consider the security before this gets anywhere near to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@gitbutler/desktop rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants