# apodexai/frontieragent — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `agents`
- Overall score: `3.9/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `0991a7a9f8cb` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:36:57Z
- Repository: https://github.com/apodexai/frontieragent
- Radar entry: https://radar.alplab.co/#repo/apodexai/frontieragent
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `agents`, `agent-runtime`, `multi-agent`, `benchmark`, `sandboxing`, `tui`

## Summary

Python agent runtime: stateful ReAct and Agent Team coordinator workflows, sandboxed file/shell/web tools, a Textual TUI, and a subprocess-isolated benchmark eval harness.

## Implementation Check

README's ReAct/Agent Team, sandbox, TUI and eval claims match code (workflows/agent_team/nodes/main_agent.py, plugins/tools/_sandbox.py, benchmarks/public/runner/run_subprocess.py); the loop engine itself is the external pinned dep apodex-agent-core.

## When to Use

Use for long-horizon research/file agent work or running BrowseComp/HLE-style evals against any OpenAI-compatible endpoint. Skip if you need the heavy reporter backend or a fully in-repo loop engine.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.5/5 |

## Code Evidence

- workflows/agent_team/nodes/main_agent.py `main_agent_node` is a full coordinator: task board, planning gate, fan-in report collection, bwrap/container mounts, wall-clock budgets
- plugins/tools/_sandbox.py `BwrapSandbox`+`_bwrap_base_args`: user-namespace jail, ro-bound system paths, --unshare-net, unprivileged tool-user uid, `_build_tool_env` allowlist
- plugins/tools/_path_auth.py `_authorized_local_path` blocks `..`, credential-named files and system workspace roots; resolved-symlink candidates close workspace-link escapes
- benchmarks/public/runner/run_subprocess.py `run_eval` isolates each question in a subprocess, refuses to run when judge preflight fails, and resumes from per-trial result.json
- .github/workflows/ci.yml runs ruff+pyright+pytest with FRONTIER_AGENT_REQUIRE_BWRAP=1 so a skipped jail test fails CI; ~90 test files ship under tests/
- frontier_agent/core/runtime/loop/agent_loop.py `run_agent_loop` delegates to pinned external apodex-agent-core via AgentLoopHooks; the repo contributes adapters and product policy

## Issues Found

- plugins/tools/bash.py passes allow_net=True, stripping bwrap --unshare-net: model-authored commands keep network egress
- apodex/sandbox.py default Linux strategy is `native`, not an OS sandbox: commands run as the current user unless --bwrap/--docker is chosen

## Key Risks

- Core loop engine is an external pinned PyPI dep (apodex-agent-core==0.14.1); frontier_agent keeps import-path adapters, so loop internals are not auditable in-repo
- Heavy reporter backend is excluded from the OSS port: workflows/agent_team/nodes/reporter.py raises 'not included in the OSS port' (only the fast reporter ships)
- Requires an OpenAI-compatible endpoint; web search/fetch need Serper/Parallel/Keenable and Jina keys; several eval datasets are gated (HF_TOKEN)
- Container mode without an inner bwrap jail shares one tool uid across scopes, so model commands can read other scopes' spill files (documented limitation)
- v0.1.0 with no tagged release; version markers disagree (pyproject.toml 0.1.0 vs frontier_agent/__init__.py 1.0.0)

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `CHANGELOG.md`
- `SECURITY.md`
- `frontier_agent/__init__.py`
- `frontier_agent/infra/llm_adapter.py`
- `frontier_agent/core/runtime/loop/agent_loop.py`
- `frontier_agent/scheduling/scheduler.py`
- `workflows/agent_team/__init__.py`
- `workflows/agent_team/README.md`
- `workflows/agent_team/nodes/main_agent.py`
- `workflows/stateful_react_agent/_runtime.py`
- `plugins/tools/bash.py`
- `plugins/tools/_sandbox.py`
- `plugins/tools/_path_auth.py`
- `plugins/tools/web_search.py`
- `apodex/README.md`
- `apodex/sandbox.py`
- `apodex/permissions.py`
- `benchmarks/public/runner/run_subprocess.py`
- `tests/test_agent_team_workflow.py`
