gate4agent — Gemini AI Agent
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityGemsExtensionsTrending
    GeminiAgentsgate4agent
    Back to Agents
    gate4agent

    gate4agent

    ZENG3LD April 5, 2026
    5 copies 0 downloads

    Universal Rust wrapper for CLI AI agents (Claude Code, Codex, Gemini). PTY mirror and pipe/NDJSON modes with tokio broadcast fan-out.

    gate4agent

    Universal Rust transport library for CLI AI agents. Spawn, stream, resume — for four different CLI agents through one unified API.

    Not a harness. Not a sandbox. gate4agent is the thin wiring layer between your Rust app and the CLI agent's subprocess: spawn the binary, write the prompt, read structured events, resume by session id. That's it.

    Supported CLI tools

    ToolTransportPipe modeACPResumeNotes
    Claude CodePipe + PTY + ACP✓ stream-json✓ via gemini-agent-acp✓ --resume <id>Prompt via stdin
    CodexPipe + PTY + ACP✓ --json✓ via codex-acp✓ exec resume <id>Uses --full-auto for non-interactive
    GeminiPipe + PTY + ACP✓ stream-json✓ native --experimental-acp✓ --resume <id>Prompt via -p flag
    OpenCode (sst/opencode)Pipe + ACP✓ --format json✓ native opencode acp✓ --session ses_XXX5-event NDJSON schema

    Transport classes:

    • Pipe: spawn the CLI directly, read NDJSON over stdout
    • PTY: spawn inside a pseudo-terminal, scrape the screen with vt100 (for agents without structured output)
    • ACP (Agent Client Protocol): spawn the CLI in ACP mode, communicate via bidirectional JSON-RPC 2.0 over stdio. Multi-turn sessions, structured events, agent→host callbacks (fs, terminal, permissions).

    Quick start

    use gate4agent::{CliTool, SessionConfig, AgentEvent, PipeSession, PipeProcessOptions};
    
    #[tokio::main]
    async fn main() -> Result<(), Box<dyn std::error::Error>> {
        let config = SessionConfig {
            tool: CliTool::ClaudeCode,
            working_dir: std::env::current_dir()?,
            env_vars: vec![],
            name: None,
        };
        let session = PipeSession::spawn(config, "Say hello in 3 words", PipeProcessOptions::default()).await?;
    
        let mut rx = session.subscribe();
        while let Ok(event) = rx.recv().await {
            match event {
                AgentEvent::Text { text, .. } => p
    

    Comments

    More Agents

    View all
    research

    NotebookLM

    Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.

    G
    Google
    browser

    Project Mariner (Browser Agent)

    Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.

    G
    Google DeepMind
    multimodal

    Project Astra (Multimodal Agent)

    Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.

    G
    Google DeepMind
    enterprise

    Gemini Enterprise Agent Platform

    Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.

    G
    Google Cloud
    research

    Gemini Deep Research Agent

    Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.

    G
    Google
    canvas

    Gemini Canvas Agent

    Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.

    G
    Google

    Stay up to date

    Get the latest Gemini prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Gemini and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Gemini resource

    • WordPress Article Summarizer with GPT-4 & Email Broadcastn8n · $18.99 · Related topic
    • Get-URI: Universal Readable Stream from Any URIn8n · $9.99 · Related topic
    • Cross-Fetch Universal HTTP Client for AI Translationn8n · $8.99 · Related topic
    • Smart Buffer: Advanced Node.js Buffer Wrappern8n · $7.99 · Related topic
    Browse all workflows