pi-native-e2e-dev
Skill11k starsChanged 59 days agoApache-2.0View on GitHub
Spin up a live local Omnigent server + runner and exercise the native Pi TUI harness (pi-native) end-to-end — launch the real `pi` CLI via `omnigent pi`, drive turns through the web/bridge, smoke-test, and bug-bash. Load when developing, testing, or debugging the pi-native harness (omnigent/inner/pi_native_executor.py, pi_native_harness.py, omnigent/pi_native.py, pi_native_bridge.py, pi_native_credentials.py) or its bridge / extension / auth / model behavior.
- Deletes or force-pushes
- Installs packages
- Sends data out
Trending
Less talk lately.about the whole repository
Who's talking about omnigent-ai/omnigent
- @jonathanabend.bsky.social“Omnigent (open-sourced by Databricks) is a meta-harness which you can use as single interface to run …”Bluesky · Aug 12, 2026 · 5 likes
- A Hacker News story“Omnigent: Open-source meta harness for agents”Hacker News · Jun 24, 2026 · 5 points
- @laxima-tech.bsky.social“A meta-harness for all your AI agents. Omnigent provides a common layer over Claude Code, Codex, Pi, and …”Bluesky · Jun 14, 2026 · 5 likes
- @agentpalisade.bsky.social“Omnigent is an open-source meta-harness: one governed layer over Claude Code, Codex, Cursor, OpenCode and …”Bluesky · Jul 1, 2026 · 2 likes
- @beyondthecode.bsky.social“🧠 Omnigent provides a unified framework for evaluating and comparing different coding agents including …”Bluesky · Jun 17, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 43
- Oct 2, 2026Add managed MCP registry and gateway for dev validation — DataDog/omnigent1 reaction
- Jun 30, 2026Add this repo as a github submodule within MoonMind: https://github.com/omnigent-ai/omnigent — MoonLadderStudios/MoonMind1 reaction · 1 comment
- Jun 14, 2026Enable Persistent Session Hierarchies for Multi-Agent Orchestration and Coordination — agent-of-empires/agent-of-empires1 reaction · 4 comments
- Oct 6, 2026agent-skills.github.omnigent-ai.omnigent: 0.16.0 → 0.17.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.omnigent-ai.omnigent: 0.15.0 → 0.16.0 — sudosubin/agents.nix0 reactions
38 more on GitHub
- Sep 30, 2026kimi-native rejects long pasted prompts when the input editor scrolls — jan21deepak/omnigent0 reactions
- Sep 30, 2026Make subagent chats discoverable and hide Claude team delivery messages — jan21deepak/omnigent0 reactions
- Sep 30, 2026[Bug] Generic side chat remains available when managed session forks are disabled — jan21deepak/omnigent0 reactions
- Sep 30, 2026Nested child sessions and failed retries can lose parent host routing — jan21deepak/omnigent0 reactions
- Sep 28, 2026[Index] omnigent-ai/omnigent — zhiweiofli/github-kb0 reactions · 1 comment
- Sep 27, 2026Composer pre-send queue: edit, reorder and hold follow-ups while a turn runs — k-k1/agent-fleet0 reactions
- Sep 27, 2026Richer CLI signals: OpenCode cost/compaction, Kiro ACP recorder, Cursor stop-hook usage — k-k1/agent-fleet0 reactions · 1 comment
- Sep 27, 2026Drive agy through its structured RPC (measure on the pinned version first) — k-k1/agent-fleet0 reactions
- Sep 27, 2026Contract probes that check declared Caps against observed behaviour (DRIFT) — k-k1/agent-fleet0 reactions
- Sep 27, 2026Serve a kind catalog from the Agent and derive the CP/Console kind lists from it — k-k1/agent-fleet0 reactions
- Sep 27, 2026Per-agent OS sandbox (bubblewrap/seatbelt) is not viable in the Workspace — k-k1/agent-fleet0 reactions
- Sep 27, 2026Attach sessions running on the user's own machine to the Console — k-k1/agent-fleet0 reactions · 1 comment
- Sep 27, 2026Evaluate Agent Client Protocol (ACP) as a generic managed-driver path — k-k1/agent-fleet0 reactions · 1 comment
- Sep 27, 2026Kind-neutral agent definitions rendered into each CLI's native files — k-k1/agent-fleet0 reactions · 1 comment
- Sep 27, 2026Debate mode: ask two models, show side by side, let them critique each other — k-k1/agent-fleet0 reactions
- Sep 27, 2026Built-in plan → parallel worktree lanes → reviewer workflow — k-k1/agent-fleet0 reactions
- Sep 27, 2026Keep credentials out of agent shells: inject them in an egress proxy — k-k1/agent-fleet0 reactions · 1 comment
- Sep 27, 2026Stateful, session-aware tool policies (approval gates, tool-call caps, path scoping) — k-k1/agent-fleet0 reactions · 1 comment
- Sep 17, 2026Exploration: Omnigent as an agent adapter — raymondk/tendless0 reactions
- Sep 3, 2026chore(deps): bump omnigent from 0.1.0 to 0.3.0 in /sdks/python-client — coinmage777/omnigent0 reactions
- Aug 21, 2026[Argus] CVE-2026-62674: Omnigent: 공유 에이전트 번들 덮어쓰기를 통한 인증된 러너 RCE — LEEKIYOON-SEC/Argus-DEV0 reactions
- Aug 13, 2026[Bug] Red-dot session status indicator falsely shows "new / your turn" for idle sessions — jan21deepak/omnigent0 reactions · 2 comments
- Aug 13, 2026[Bug] Chat-mode stop button doesn't halt execution; agent loops tinkering/stopping — jan21deepak/omnigent0 reactions · 1 comment
- Aug 11, 2026Credential-injection egress proxy: tokens never enter model context or tool sandboxes — DadJokez/AI-workspace0 reactions · 1 comment
- Aug 10, 2026agy (antigravity-native) headless sub-agents hang indefinitely on native permission prompts — jan21deepak/omnigent0 reactions · 1 comment
- Aug 10, 2026[Bug] Automation-created sessions don't show the chat/terminal view toggle — jan21deepak/omnigent0 reactions · 2 comments
- Aug 10, 2026[Bug] Session graph view assigns all nested Claude Code subagents to the top-level session as parent — jan21deepak/omnigent0 reactions · 1 comment
- Aug 10, 2026[Feature] Allow defining harness settings (e.g. Claude settings.json) in a custom agent — jan21deepak/omnigent0 reactions · 1 comment
- Aug 10, 2026[Feature] Add ⌘N hotkey to create a new session — jan21deepak/omnigent0 reactions
- Aug 10, 2026[Bug] ⌘N in the macOS desktop app opens a new app window instead of a new session — jan21deepak/omnigent0 reactions · 1 comment
- Aug 10, 2026Custom Agent lifecycle: versions, sharing, catalog, updates, and eval-gated publishing — DadJokez/AI-workspace0 reactions
- Aug 5, 2026Add Blaxel as a sandbox provider — jan21deepak/omnigent0 reactions
- Aug 5, 2026[Feature] Delete button on desktop/web UI — jan21deepak/omnigent0 reactions
- Aug 5, 2026[Feature] Auto-discover repo-declared harnesses — jan21deepak/omnigent0 reactions
- Jul 19, 2026Upstream update available — professoryu06/omnigent-zh-cn0 reactions · 12 comments
- Jun 25, 2026VS5: cursor-cloud onboarding polish (readiness, install, CLI) — Praneeth16/omnigent0 reactions
- Jun 25, 2026VS3: cursor-cloud model resolution + /model override — Praneeth16/omnigent0 reactions
- Jun 24, 2026Further improvement on teams: omnigent — voitta-ai/skillz0 reactions · 1 comment
On Bluesky · 6
- Aug 12, 2026Omnigent (open-sourced by Databricks) is a meta-harness which you can use as single interface to run different harnesses like Claude Code,… — @jonathanabend.bsky.social5 likes and reposts · 2 replies
- Jun 14, 2026A meta-harness for all your AI agents. Omnigent provides a common layer over Claude Code, Codex, Pi, and the agents you write yourself:… — @laxima-tech.bsky.social5 likes and reposts · 2 replies
- Jul 1, 2026Omnigent is an open-source meta-harness: one governed layer over Claude Code, Codex, Cursor, OpenCode and custom agents. Mix vendors in a… — @agentpalisade.bsky.social2 likes and reposts
- Jun 17, 2026🧠 Omnigent provides a unified framework for evaluating and comparing different coding agents including Claude Code, Codex, Cursor, and Pi.… — @beyondthecode.bsky.social2 likes and reposts · 2 replies
- Jun 19, 2026Check it out here: github.com/omnigent-ai/omnigent — @terrytangyuan.xyz1 likes and repost
1 more on Bluesky
- Jun 14, 2026🔗 Omnigent repo: https://github.com/omnigent-ai/omnigent 🔗 Artículo MarkTechPost:… — @lluis154.bsky.social1 likes and repost
On Hacker News · 4
- Jun 24, 2026Omnigent: Open-source meta harness for agents5 points
- Jun 17, 2026Omnigent: Meta-Harness for Coding Agents (Claude Code, Codex, Cursor, Pi)2 points
- Jun 16, 2026Omnigent: A meta-harness for all your AI agents2 points
- Jun 14, 2026Meta-Harness by Databricks and Neon2 points
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/triage_v2/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/triage_v2/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- antigravity-native-e2e-devSkill
- antigravity-sdk-e2e-devSkill
- cli-setup-verifySkill
- copilot-sdk-e2e-devSkill
- cursor-sdk-e2e-devSkill
- harness-integration-guideSkill
- polly-e2e-devSkill
- run-load-testSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 144
Type-driven smoke: instead of the POST, type a prompt directly in the attached TUI and confirm it answers + mirrors to …/items.
- Very specific: line 163
If a queued message never reaches Pi, watch whether inbox/*.json drains.
- Very specific: line 183
It's a TUI, not
omni run: Use omnigent pi. There is no omni run <bundle> path for pi-native. - Very specific: line 186
config.yaml'sserver:defaults to a remote server: Always pass --server "$SERVER" (or --server "" to auto-spawn local). - Very specific: line 190
No live LLM without auth: If the Prereq-5 probe prints None and pi isn't logged in, turns won't get a real answer.
- Distinctive: line 196
Never print/echo provider keys or gateway tokens: Use the boolean/id probes above.
- Very specific: line 256
If you can't reach a ready Pi TUI (missing pi, no tmux/node, no auth, headless limits), say so — don't claim a turn passed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pi native harness: end-to-end dev & testing (local server/runner)
The pi-native harness wraps the real Pi coding-agent TUI
(@earendil-works/pi-coding-agent, the pi CLI). Unlike the SDK harnesses
(cursor / copilot / antigravity), it does not run in-process: omnigent pi
ensures a host daemon, the daemon spawns a runner that launches pi inside a
runner-owned tmux terminal, and your TTY attaches to it. Omnigent's web-UI
turns are forwarded into that live pi process through a file-inbox bridge +
a packaged JS extension (pi.sendUserMessage). This skill is the proven
recipe for running it for real against a live local server + runner — not
just the unit tests.
Like the other harnesses, the runner imports from your current checkout, so testing here exercises exactly the code you're on. (CWD/venv selects the code, not
PYTHONPATH.)
What actually runs where
your TTY ── (attach / pexpect) ──► omnigent pi (CLI, local)
│ ensures
▼
host daemon ──► local Omnigent server (AP)
│ spawns ▲
▼ │ HTTP
runner ── launches ──► pi (TUI, in tmux)
│ loads
▼
omnigent pi-native extension (JS)Two ways a turn reaches Pi — test both:
- Type in the TUI (your attached terminal). Exercises Pi natively; the
extension mirrors the transcript back to the server (
POST …/events). - Web / API message. Server → runner →
PiNativeExecutor.run_turn→enqueue_user_message()writesinbox/<ordinal>_msg_*.json→ the resident extension polls the inbox →pi.sendUserMessage(...). This is the harness-specific path most worth covering.
Prerequisites (check these first)
- You're on the branch you want to test, and running from that checkout
(
.venv/bin/omnigent/.venv/bin/pythonfrom this repo). - The
piCLI is on PATH — the harness can't launch without it:which pi && pi --version # install if missing: npm install -g @earendil-works/pi-coding-agent # or point at an explicit binary: export OMNIGENT_PI_PATH=/path/to/pi .venv/bin/python -c "from omnigent.onboarding.harness_readiness import harness_is_configured; print('pi-native ready:', harness_is_configured('pi-native'))" tmuxis on PATH. The native wrapper attaches your TTY to the runner-owned Pi tmux pane (_preflight_local_toolshard-fails without it).nodeis on PATH. The extension is JS executed inside Pi (also required by the e2e extension tests).node --version.- Auth is resolvable (booleans/ids only — never print keys). Native Pi
normally logs in from its own
~/.pi/agent. Omnigent bridges the provider you set withomnigent setupinstead, writing a managed per-sessionmodels.jsonand passing--provider omnigent --model <resolved>. Verify what it will use:.venv/bin/python -c "from omnigent.pi_native_credentials import resolve_pi_native_provider as r; p=r(); print('provider:', getattr(p,'provider_id',None), '| api:', getattr(p,'api',None), '| model:', getattr(p,'model',None))"None→ no omnigent provider configured; Pi falls back to its own/login(runomnigent setup, or log intopidirectly). A Databricks default resolves to the AI-Gatewayanthropic-messagessurface with a refreshed bearer token. - Network egress to the model backend. A turn that hangs/fails to connect on a locked-down host is usually egress, not a harness bug.
Step 1 — start a local server (real server + runner)
cd /path/to/omnigent
.venv/bin/omni server --background # detached managed server on a free loopback port
.venv/bin/omni server status # prints the URL, e.g. http://127.0.0.1:6767
SERVER=http://127.0.0.1:6767 # use the printed URL below
curl -s "$SERVER/health" # {"status":"ok"}(omnigent pi --server "" also auto-spawns a persistent local server and uses
it — handy for a one-shot manual run, but a known $SERVER URL is better for
scripted API observation below.)
Step 2 — launch the native Pi terminal against the local server
omnigent pi attaches an interactive TUI, so run it where you can hold it
open. Two patterns:
A. Background terminal (recommended for scripted drives). Launch it in one terminal and drive/observe from another:
.venv/bin/omnigent pi --server "$SERVER" 2>&1 # attaches the Pi TUI; leave it runningIt prints Web UI: <url> and a resume hint to stderr — grab the conversation id
(the …/c/<conv_…> segment). Capture it for the API calls below:
CONV=conv_xxxxxxxx # from the "Web UI:" line / resume hintB. PTY driver (fully automated). Drive it under pexpect exactly like the
claude-native-e2e-test skill's cuj_driver.py (a proven, generalizable base):
spawn omnigent pi --server <url> in a PTY with cwd=<checkout>, capture the
conv id from the printed URL, send keystrokes / poll the API, then tear down
the whole process tree (see Teardown — pexpect Ctrl-C only detaches tmux).
Pass-through Pi CLI args go after the command (persisted as
terminal_launch_args), e.g. omnigent pi --server "$SERVER" -- --model <id>;
omnigent still injects --provider omnigent --model <resolved> when a provider
is configured (see pi_native_credentials.py).
Step 3 — drive a turn (and smoke-test)
Via the web/bridge path (exercises PiNativeExecutor). Post a user message
to the running session; the runner routes it through the harness → bridge inbox →
extension → pi.sendUserMessage:
curl -s -X POST "$SERVER/v1/sessions/$CONV/events" \
-H 'content-type: application/json' \
-d '{"type":"message","data":{"role":"user","content":[{"type":"input_text","text":"Reply with exactly the single word: PONG"}]}}'Then observe the mirrored transcript (the extension forwards Pi's output back
via POST …/events):
sleep 20
curl -s "$SERVER/v1/sessions/$CONV/items" | python -m json.tool | tail -40A healthy run shows your user message and a non-empty assistant reply
(PONG) mirrored into the session — proving the full stack: server → runner →
harness → inbox → extension → Pi → transcript forwarder. You'll also see Pi
render the message in the attached TUI.
- Type-driven smoke: instead of the POST, type a prompt directly in the
attached TUI and confirm it answers + mirrors to
…/items. - Specific model: see Step 2 pass-through note; confirm the resolved model in the Prereq-5 probe.
Inspect the bridge (debugging)
Everything the harness writes for a session lives under a hashed bridge dir:
.venv/bin/python -c "from omnigent.pi_native import pi_bridge_dir_for_session as d; print(d('$CONV'))"
# ~/.omnigent/pi-native/<sha256(conv)[:32]>/
# inbox/ <- *.json user_message / interrupt payloads (poller drains + deletes)
# sessions/ <- pi --session-dir state
# config.json <- sessionId, serverUrl, inboxDir, authHeaders (extension config)
# omnigent_pi_native_extension.js
ls -la "$(.venv/bin/python -c "from omnigent.pi_native import pi_bridge_dir_for_session as d; print(d('$CONV'))")/inbox"If a queued message never reaches Pi, watch whether inbox/*.json drains. The
managed Pi config dir (PI_CODING_AGENT_DIR) holds the generated models.json
that wires Pi's provider/model. Key env vars: HARNESS_PI_NATIVE_BRIDGE_DIR,
HARNESS_PI_NATIVE_REQUEST_SESSION_ID, OMNIGENT_PI_NATIVE_CONFIG,
OMNIGENT_PI_PATH (legacy HARNESS_PI_PATH), PI_CODING_AGENT_DIR.
Targeted scenarios
| Goal | How |
| Web→Pi delivery | POST a message (Step 3); confirm a fresh inbox/*.json appears then drains and the reply mirrors to …/items |
| Native tools (shell/edit/read) | prompt Pi to create→read→edit a file and run a shell command; confirm it touches disk |
| Resume | stop the TUI, omnigent pi --server "$SERVER" --resume "$CONV" — reattaches; --resume (no value) opens the pi-native picker |
| Interrupt | mid-turn, enqueue an interrupt (pi_native_bridge.enqueue_interrupt(bridge_dir)) or use the UI stop; confirm Pi's abort() fires and the next turn isn't poisoned (see test_pi_native_interrupt_replay_e2e.py) |
| Policy / guardrail | add a guardrail that denies a keyword; native Pi tool calls are gated by the extension POSTing …/policies/evaluate (not the turn-scoped evaluator) — confirm a DENY blocks |
| Model routing | flip the configured provider/model; re-check the Prereq-5 probe and that the answer still lands |
| Concurrency / leaks | drive several sessions; then sweep for orphaned pi / runner / tmux (see Cleanup) |
Gotchas (these cost real time)
- It's a TUI, not
omni run. Useomnigent pi. There is noomni run <bundle>path for pi-native; the executor only enqueues into the bridge — Pi must be alive (attached) for a turn to be processed. config.yaml'sserver:defaults to a remote server. Always pass--server "$SERVER"(or--server ""to auto-spawn local). If a local server rejectspi-native, it's running stale code — restart it from your checkout (allowlist:omnigent/spec/_omnigent_compat.py).- No live LLM without auth. If the Prereq-5 probe prints
Noneandpiisn't logged in, turns won't get a real answer. Configure a provider viaomnigent setuporpi/login. - tmux must be reachable from the CLI process. Direct tmux attach needs the
runner-owned socket visible locally; a missing socket/
tmuxfails the attach. - Turns take ~20–90s — wrap scripted waits/
timeoutgenerously. - Never print/echo provider keys or gateway tokens. Use the boolean/id probes above.
Code & tests
- Executor (bridge enqueue):
omnigent/inner/pi_native_executor.py - Harness wrap (
harness: pi-native):omnigent/inner/pi_native_harness.py - CLI launch / daemon-runner / tmux attach:
omnigent/pi_native.py(run_pi_native); CLI commandpi(...)inomnigent/cli.py - Bridge (inbox, extension/config writers):
omnigent/pi_native_bridge.py - Auth/model → Pi
models.json:omnigent/pi_native_credentials.py - Extension (JS, polls inbox, posts events/policies):
omnigent/resources/pi_native/omnigent_pi_native_extension.js - Readiness gate:
omnigent/onboarding/harness_readiness.py
.venv/bin/python -m pytest \
tests/harnesses/pi_native/test_pi_native_bridge.py \
tests/harnesses/pi_native/test_pi_native_credentials.py \
tests/harnesses/pi_native/test_pi_native_extension.py \
tests/harnesses/pi_native/test_pi_native_interrupt_replay_e2e.py -q # interrupt e2e needs `node`
# JS unit tests: node omnigent/resources/pi_native/omnigent_pi_native_extension.test.jsBug-bash (fan out)
Stress the harness with several scenario probes against the same $SERVER: the
web→inbox→extension delivery path (lost messages / inbox that won't drain),
interrupt replay semantics, native-tool policy gating, transcript-forwarder
fidelity (does every assistant block reach …/items?), resume/reattach, and
orphaned pi/runner/tmux after teardown. Cross-check the API — a start failure
can leave the TUI empty while the session records an error.
Watch-outs from the code (verify live — not a live-bug-bash log)
- Empty inbox = no turn.
PiNativeExecutoryieldsTurnCompleteonce the message is queued, not once Pi answers; the actual answer is async via the extension. Judge success by…/items, not the POST returningqueued: true. - Native Pi tool calls bypass the turn-scoped evaluator. They're gated only
by the extension's
POST …/policies/evaluate; if the extension'sconfig.jsonlacksserverUrl/authHeaders, gating silently no-ops. - History on a rebuilt session depends on Pi's own
--session-dirstate under the bridge dir, not on Omnigent re-injecting transcript.
Teardown — non-negotiable
A pexpect Ctrl-C detaches from tmux; the runner, the tmux server, and pi
keep running. Tear down the process tree from the child PID
(ps --ppid … → SIGTERM/SIGKILL) and separately tmux -S <sock> kill-server
(the tmux server reparents to init). Then verify nothing lingers:
.venv/bin/omni server stop # stop the managed server + local daemon
pgrep -af "(^|/)pi( |$)|harnesses\._runner|runner\._entry|tmux" # confirm no orphans
# remove a session's bridge dir if you want a clean slate:
# rm -rf "$(.venv/bin/python -c "from omnigent.pi_native import pi_bridge_dir_for_session as d; print(d('$CONV'))")"Honesty
If you can't reach a ready Pi TUI (missing pi, no tmux/node, no auth,
headless limits), say so — don't claim a turn passed. The strongest evidence is
the round trip observed over the API: your user message and a non-empty
assistant reply mirrored into GET /v1/sessions/$CONV/items.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

