← Back to AI Insights
Gemini Executive Synthesis

Pi sub-agent workspace isolation failure within Omnigent.

Technical Positioning
Consistent session workspace management across all integrated AI agent harnesses (Claude Code, Codex, Pi).
SaaS Insight & Market Implications
This issue highlights a critical architectural inconsistency in Omnigent's agent orchestration layer. The `pi` harness fails to honor per-session workspaces, defaulting to the server's launch directory. This directly impacts developer productivity and reliability, as `pi` agents operate on incorrect repositories, leading to erroneous operations. The discrepancy with `codex-native` and `claude-native` indicates a fragmented implementation of core environment management. For a meta-harness product, consistent and reliable workspace isolation is fundamental for multi-agent, multi-repository workflows. This bug undermines the "common layer" value proposition, forcing developers to implement workarounds or face unpredictable agent behavior, hindering adoption for complex enterprise use cases requiring strict environment control.
Proprietary Technical Taxonomy
pi sub-agent session workspace omnigent server codex-native claude-native os_env cwd sandbox

Raw Developer Origin & Technical Request

Source Icon GitHub Issue Jun 14, 2026
Repo: omnigent-ai/omnigent
pi harness ignores the session workspace (HARNESS_PI_CWD left unset); runs in the server's launch directory

## Summary

A `pi` sub-agent does not run in the session's workspace. It launches in the directory the **omnigent server was started from**, ignoring the per-session workspace that the native (`codex-native` / `claude-native`) harnesses correctly honor. When the server's launch directory differs from a session's workspace, every `pi` dispatch for that session operates on the wrong repository.

## Environment

- omnigent 0.1.0 (uv tool install), macOS (arm64), Python 3.12
- Setup: bundled `examples/polly` orchestrator with `pi`, `codex`, `claude_code` sub-agents
- All three agents declare the same `os_env`:
```yaml
os_env:
type: caller_process
cwd: .
sandbox:
type: none
```

## Repro

1. Start the omnigent server from directory `REPO_A`.
2. Start a session whose workspace is a different directory, `REPO_B` (e.g. launch the session from `REPO_B`). `GET session info` reports `workspace: REPO_B`.
3. Dispatch a read-only probe to each sub-agent asking it to print its current working directory.

## Expected

All sub-agents run in the session workspace `REPO_B`.

## Actual

- `codex-native` and `claude-native` workers run in `REPO_B` (correct).
- `pi` runs in `REPO_A` (the server's launch directory), not `REPO_B`.

This is deterministic: every `pi` dispatch in the session lands in `REPO_A` until the server is restarted from a different directory.

## Evidence (from live process environments)

- The native CLI subprocess (codex) has the session workspace injec...

Developer Debate & Comments

No active discussions extracted for this entry yet.

Adjacent Repository Pain Points

Other highly discussed features and pain points extracted from omnigent-ai/omnigent.

Extracted Positioning
Native Windows support for Omnigent, specifically addressing POSIX assumptions.
Cross-platform compatibility, including native Windows, or clear documentation for WSL2 as the intended Windows environment.
Extracted Positioning
Feature request for OpenCode harness support.
Expand supported AI agent harnesses.
Extracted Positioning
Feature request for Google Antigravity harness integration in `omni setup`.
Broaden agent ecosystem support and simplify initial setup for new users.
Extracted Positioning
Codex-native harness timeout when routed through OpenAI-compatible gateway (OpenRouter).
Seamless integration and compatibility with OpenAI-compatible gateway providers for `codex-native` agents.

Frequently Asked Questions

Market intelligence mapped to Pi sub-agent workspace isolation failure within Omnigent..

What problem does Pi sub-agent workspace isolation failure within Omnigent. solve?
Based on our AI analysis of the original developer request, its primary technical positioning is: Consistent session workspace management across all integrated AI agent harnesses (Claude Code, Codex, Pi).
What are the foundational technologies related to Pi sub-agent workspace isolation failure within Omnigent.?
Our proprietary extraction maps Pi sub-agent workspace isolation failure within Omnigent. to adjacent architectural concepts including pi sub-agent, session workspace, omnigent server, codex-native.

Engagement Signals

0
Replies
open
Issue Status

Cross-Market Term Frequency

Quantifies the cross-market adoption of foundational terms like sandbox and dispatch by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.