conduit-ui/know
Composer 安装命令:
composer require conduit-ui/know
包简介
Agent domain knowledge - how/why/what/remember
README 文档
README
Stop dumping everything into vector databases and hoping semantic search figures it out. Start organizing knowledge the way developers actually think: how does this work? why was this decision made? what is this thing?
Perfect for: AI agent memory systems, developer knowledge bases, architectural decision records, pattern libraries
Quick Start
composer require conduit-ui/know
use ConduitUI\Know\Facades\Know; use ConduitUI\Know\Data\Insight; // Remember a decision Know::remember( Insight::decision( 'Use Saloon for HTTP', 'Chose Saloon over Guzzle because we need request/response objects and middleware support', tags: ['architecture', 'http'] ) ); // Ask questions naturally $patterns = Know::how('authenticate with GitHub'); $decisions = Know::why('chose Saloon'); $definitions = Know::what('is a connector');
Features
- Natural query API -
how(),why(),what()methods that match how developers think - Typed insights - Decisions, patterns, facts, discoveries with structured metadata
- Multiple storage backends - In-memory for testing, database for production, custom stores via interface
- Sync across sources - Pull from GitHub issues, push to Notion, sync between systems
- Laravel integration - Service provider, facade, zero config
- Tag-based organization - Find knowledge by project, domain, or custom taxonomy
Why This Exists
Vector databases are great for semantic similarity. But when you're building an AI agent that needs to understand "why did we choose this architecture?" or "how does authentication work in this codebase?", you need structured knowledge with intent.
Know gives your agents a memory system organized by question type, not just embedding proximity.
Usage
Remembering Knowledge
use ConduitUI\Know\Data\Insight; use ConduitUI\Know\Facades\Know; // Record a decision Know::remember( Insight::decision( 'Use Laravel Octane', 'Moving to Octane for 3x performance improvement on API endpoints', tags: ['performance', 'infrastructure'] ) ); // Record a pattern Know::remember( Insight::pattern( 'Repository Pattern', 'All database access goes through repositories in app/Repositories/', tags: ['architecture', 'database'] ) ); // Record a fact Know::remember( Insight::fact( 'Primary Database', 'Production uses RDS PostgreSQL 14 in us-east-1', tags: ['infrastructure', 'database'] ) ); // Record a discovery Know::remember( Insight::discovery( 'Rate Limit Pattern', 'GitHub API returns rate limit info in X-RateLimit-* headers', tags: ['github', 'api'] ) );
Querying Knowledge
// How does something work? $patterns = Know::how('handle GitHub webhooks'); // Returns: patterns, implementations, how-it-works insights // Why was a decision made? $decisions = Know::why('chose PostgreSQL'); // Returns: decisions, rationale, why-it-exists insights // What is something? $definitions = Know::what('is Saloon'); // Returns: facts, definitions, discovery insights // Search everything $results = Know::search('authentication', types: ['decision', 'pattern']);
Working with Results
$insights = Know::how('authenticate'); foreach ($insights as $insight) { echo $insight->title; // "OAuth2 Flow" echo $insight->content; // "We use Laravel Passport for..." echo $insight->type; // "pattern" print_r($insight->tags); // ['auth', 'security'] echo $insight->createdAt; // Carbon instance }
Syncing Across Sources
use ConduitUI\Know\Facades\Know; // Pull from GitHub issues, push to your knowledge base Know::sync() ->register(new GitHubIssuesAdapter($token)) ->from('github') ->run(); // Export to another system Know::sync() ->register(new NotionAdapter($apiKey)) ->to('notion') ->run();
Custom Storage
Implement KnowledgeStore for your own backend:
use ConduitUI\Know\Contracts\KnowledgeStore; use ConduitUI\Know\Data\Insight; use Illuminate\Support\Collection; class RedisKnowledgeStore implements KnowledgeStore { public function search(string $query, array $types = []): Collection { // Your search logic } public function persist(Insight $insight): Insight { // Your persistence logic } public function all(array $types = []): Collection { // Return all insights } public function find(string|int $id): ?Insight { // Find by ID } }
Then bind it in your service provider:
$this->app->bind( \ConduitUI\Know\Contracts\KnowledgeStore::class, RedisKnowledgeStore::class );
Configuration
Publish the config file (optional):
php artisan vendor:publish --tag=know-config
The default in-memory store works out of the box for testing. For production, implement a persistent store.
Use Cases
AI Agent Memory
Give your AI agent structured memory about your codebase:
// Agent learns during development Know::remember(Insight::decision( 'Use Job Batching', 'Switched from sequential jobs to batched jobs for import performance', tags: ['performance', 'jobs'] )); // Agent recalls later when asked $context = Know::why('use job batching'); // Agent can now explain the decision with full context
Architectural Decision Records
Stop maintaining separate ADR markdown files:
Know::remember(Insight::decision( 'ADR-001: Event Sourcing', 'Adopting event sourcing for order processing to enable time-travel debugging and audit trails', tags: ['adr', 'architecture', 'orders'] ));
Pattern Library
Document your team's patterns in code:
Know::remember(Insight::pattern( 'Controller Pattern', 'Controllers are thin - validation in FormRequests, logic in Actions', tags: ['laravel', 'patterns'] ));
Related Packages
The conduit-ui ecosystem:
- conduit-ui/connector - GitHub API transport layer (foundation for GitHub sync adapters)
More packages coming soon.
Requirements
- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x (for Laravel integration)
- Or use standalone with Illuminate/Support
Testing
composer test
Support
Enterprise support available - Need custom adapters, training, or priority support? Email jordan@partridge.rocks
Community - Open an issue on GitHub or contribute a PR.
License
MIT License. See LICENSE for details.
conduit-ui/know 适用场景与选型建议
conduit-ui/know 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「memory」 「laravel」 「Agent」 「knowledge」 「conduit-ui」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 conduit-ui/know 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 conduit-ui/know 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 conduit-ui/know 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
Custom laravel monolog logger for datadog logs management, both api and agent ways
The Message Submission Agent Diagnostics tool (msadiag) facilitates testing the compatibility of third party message submission agents.
Standalone replacement for php's native get_browser() function
A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-11