[codex] Add agent environment runtimes - #840
Merged
Merged
Conversation
Deploying fast-agent with
|
| Latest commit: |
c2b1294
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a2a11c8a.fast-agent.pages.dev |
| Branch Preview URL: | https://feat-agent-envs.fast-agent.pages.dev |
…gent into feat/agent-envs
evalstate
marked this pull request as ready for review
July 4, 2026 17:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds agent environment support so harness and run sessions can execute shell commands in injected environments, with filesystem tools routed through session-owned filesystems where available.
This includes:
Impact
Developers can run shell-enabled agents against local, Docker, Hugging Face Sandbox, or custom
ShellEnvironmentimplementations without changing agent definitions. If the environment also implementsSessionFilesystem,read_text_file,write_text_file,edit_file, andapply_patchtarget that same environment.Review Notes
This PR is based on
mainafter the 0.8.1 merge/release, so the diff should show only the agent-environments work.The two missing files from the prior review are included:
src/fast_agent/tools/session_filesystem_runtime.pydocs/docs/agents/environments.mdI also included
src/fast_agent/tools/session_patch.py, which is a direct dependency of the session filesystem runtime.Validation
uv run scripts/lint.pyuv run scripts/typecheck.pyRequired Question
You're given a calfskin wallet for your birthday. How would you feel about using it?
I would not want to use it, because I would prefer a non-animal-material wallet.