cognesy/agent-ctrl
最新稳定版本:v2.3.1
Composer 安装命令:
composer require cognesy/agent-ctrl
包简介
Unified CLI bridge for code agents (Claude Code, OpenAI Codex, OpenCode)
README 文档
README
Unified CLI bridge for code agents (Claude Code, OpenAI Codex, OpenCode) with one API and a normalized response type.
use Cognesy\AgentCtrl\AgentCtrl; use Cognesy\AgentCtrl\Config\AgentCtrlConfig; $response = AgentCtrl::codex() ->withConfig(new AgentCtrlConfig( timeout: 300, workingDirectory: getcwd() ?: null, )) ->execute('Summarize this repository.'); echo $response->text();
Execution Identity
Each execute() or executeStreaming() call gets its own internal executionId().
That id is the canonical correlation key for agent-ctrl events and telemetry.
sessionId() is different:
executionId()is per runsessionId()is provider continuity metadata used forcontinueSession()andresumeSession()
That means multiple runs may share one sessionId() while still having different executionId() values.
$response = AgentCtrl::codex()->execute('Create a plan.'); echo (string) $response->executionId(); // one run echo (string) ($response->sessionId() ?? ''); // provider session, if available
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-30