I understand the problem you're trying to solve. Have you looked into configuring permissions for harnesses like Claude Code? I believe achieving what you want is possible with something like `.claude/settings.json` via something like:
{
"permissions": {
"allow": [
"Read(**/*.rs)",
"Edit(**/*.rs)",
"Write(**/*.rs)"
],
"deny": [
"Bash",
"PowerShell"
]
}
}
Not necessarily, since you would need to also run cargo check and cargo test. And Claude still needs grep and find to look around the repo.