paragents

作者 FrankHui已验证

Parallel ai-agent sessions in one panel, with permission-aware tools, preflight conflict checks.

241
Stars
0
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/FrankHui/paragents

快速入门

使用 paragents 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Paragents Logo

Parallel agent sessions in one panel, with permission-aware tools, preflight conflict checks.

Remembers context across turns. Asks before risky actions. Runs parallel sessions with conflict-safe execution.
TUI-first workflow, extensible tools, and explicit policy gates.

Inspired by 4 other agent repos: claude-code, mercury-agent, hermes-agent, nanobot.

Python 3.11+ MIT License

English | 简体中文

Demo

Paragents demo

Quick Start (TUI Only)

  1. Install dependencies
uv sync
  1. Start TUI
uv run python main.py
  1. First run setup
  • If runtime_config.json is missing, startup enters interactive setup.
  • You can reconfigure in TUI with:
    • /setup
    • /show-config
  1. Command reference
CommandPurpose
/new <text>Create a new foreground session with the initial prompt
/prompt <text>Continue current foreground session with a new prompt
/submit <text>Submit a new background session
/listList current sessions and their status
/switch <session_ref>Switch foreground focus to a target session
/close <session_ref>Close a session and release its slot
/approvalsShow pending approval requests
/approve <request_ref> [always]Approve a pending request (optional persistent allow)
/deny <request_ref>Deny a pending request
/pause <prompt_ref>Pause a running prompt
/resume <session_ref>Resume paused prompt in target session
/cancel <prompt_ref>Cancel target prompt
/permissionsPrint current effective permission config
/setupRe-run runtime/provider setup
/show-configShow runtime config file path and provider info
/quitExit TUI

Why Parallel-Agent

The current design focuses on multi-session parallelism with per-session continuity:

  • Session-based scheduler and worker model
  • Single active agent instance per session (reused across turns)
  • Session-level context + memory persistence
  • Preflight conflict checks (especially output conflicts) and approval flow
  • TUI-first operations for observing multiple sessions
flowchart LR
  UserInput[UserInput] --> Scheduler[Scheduler]
  Scheduler --> SessionQueue[SessionPromptQueue]
  SessionQueue --> SessionWorker[SessionWorker]
  SessionWorker --> AgentInstance[AgentInstance]
  AgentInstance --> Tools[ToolsAndPermissions]
  AgentInstance --> ContextState[SessionRuntimeState]
  ContextState --> Scheduler

Key implementation files:

  • main.py
  • scheduler.py
  • agent_instance.py
  • session_runtime.py
  • tui_app.py

Cross-Repo Learning Notes (inlined)

Legend:

  • Code verified: implementation or interface is directly confirmed in code.
  • Docs/changelog signal: mainly inferred from README/changelog/config examples; full core implementation may not be fully open.

1) Permission and Capability Governance

DimensionParagentsclaude-codemercury-agenthermes-agentnanobot
Capability switchesPermissionsConfig.capabilities (Code verified)Tool-level permission governance in settings (Docs/changelog signal)permissions.yaml + capability registry (Code verified)Governance via toolset/gateway composition (Code verified)ToolsConfig level toggles (Code verified)
ask/deny semanticsneeds_approval / blocked / auto_approved (Code verified)Explicit ask/deny (Code verified)Command pattern-based approvals (Code verified)Approval is more runtime-pipeline oriented (Code verified)Primarily enable/sandbox/restrict style (Code verified)
File scope controlfs_scopes (Code verified)Combined through tool permissions + policy layering (Docs/changelog signal)File scopes (Code verified)Mostly enforced in tool runtime (Code verified)restrict_to_workspace (Code verified)
Sandbox/network policyRelatively lightweight currently (Code verified)sandbox.network.* (Code verified)Basic shell constraints (e.g., cwd) (Code verified)More gateway/runtime governance oriented (Code verified)exec.sandbox + SSRF allowlist (Code verified)

2) Context, Compaction, and Recovery

DimensionParagentsclaude-codemercury-agenthermes-agentnanobot
Session continuitySession worker + one reused agent per session (Code verified)Strong --resume/--continue semantics (Docs/changelog signal)conversationId-scoped short-term memory (Code verified)Session + contextvars isolation (Code verified)SessionManager persistence (Code verified)
Prompt constructionPromptAssembler abstraction (Code verified)Core internals not fully public (Docs/changelog signal)system + relevantFacts + recentMemory + user (Code verified)Unified through ContextEngine (Code verified)Layered assembly via ContextBuilder (Code verified)
Compaction strategyshould_compact()/compact() (Code verified)auto-compact + pre-compact hook (Docs/changelog signal)Mainly recent-N control (Code verified)ContextEngine + Compressor (Code verified)online consolidate + idle auto-compact (Code verified)
Interruption/recoveryCheckpointRecovery + SessionStateStore (Code verified)Ongoing long-session recovery hardening (Docs/changelog signal)Persistent memory resume (Code verified)checkpoint manager (Code verified)runtime checkpoint + keep-context on stop (Code verified)

3) Current Paragents Conclusions

  • The "policy config + ask/deny semantics" model is partially in place with permissions.json + blocked/needs_approval/auto_approved.
  • Compared with claude-code, current gaps are mainly:
    • ask/deny logic is still fragmented across capability/policy domains instead of one unified rule layer;
    • missing a stronger hierarchical policy model (managed/user/project) and tool-level unified rule interpretation.

Requirements

From pyproject.toml:

  • Python >=3.11
  • Runtime dependencies:
    • httpx
    • prompt-toolkit
  • Dev dependency group:
    • pytest

System/runtime prerequisites:

  • uv installed
  • An OpenAI-compatible endpoint configured in runtime_config.json (interactive setup on first run)

TODO Roadmap

The detailed roadmap is in a dedicated file for readability:

At a glance:

  • P0: IM integration, multi-session usability, and recovery hardening
  • P1: context quality, policy unification, conflict UX, session invariants
  • P2: observability, regression suites, and UI state-machine consistency

Non-Goals / Caveats

  • Not production-ready
  • No stability guarantees on internal APIs
  • Behavior may prioritize experimentation over strict backward compatibility

Testing

Run core TUI regressions:

uv run pytest -q tests/test_tui_layout.py tests/test_tui_commands.py tests/test_run_approval_flow.py

License

MIT.

Note: this README declares MIT intent. If a top-level LICENSE file is missing, add one before public distribution.

Contributing

Small, focused PRs are preferred.

  • Keep changes easy to review and easy to hack on.
  • Add or update tests for behavioral changes.
  • Prefer readability over cleverness.

常见问题

What is paragents?

paragents is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by FrankHui. Parallel ai-agent sessions in one panel, with permission-aware tools, preflight conflict checks. It has 241 GitHub stars.

Is paragents safe to use?

Yes. paragents passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install paragents?

Clone the repository with "git clone https://github.com/FrankHui/paragents" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is paragents written in?

paragents is primarily written in Python. It is open-source under FrankHui on GitHub, so you can review or fork the full source.

Are there alternatives to paragents?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh paragents against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情