Download the PHP package conduit-ui/knowledge without Composer

On this page you can find all versions of the php package conduit-ui/knowledge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package knowledge

Knowledge

A semantic knowledge base that lives in your terminal — and talks directly to your AI tools.

Knowledge captures the technical decisions, gotchas, and context you accumulate while working, then hands the right pieces back to you (or to Claude Code) via semantic vector search. It's a Laravel Zero CLI backed entirely by Qdrant — no relational database, no schema migrations, just vectors and JSON payloads. Every entry is namespaced to a project automatically, detected from your git repository.

There are two ways in: the know command-line tool, and a local MCP server that exposes the same knowledge base as tools your AI agent can call directly.

Requirements

Installation

Knowledge is a standalone CLI app rather than a library you pull into another project.

The entry point is the know binary in the project root:

Optionally, build a single self-contained PHAR with Box (see box.json):

Quick Start

1. Start the vector database

This brings up Qdrant on http://localhost:6333 (HTTP) and 6334 (gRPC). Embeddings are generated through the the-shit/vector client, which talks to the embedding server configured via QDRANT_EMBEDDING_SERVER — run that separately or point it at an existing one.

make status health-checks the services; make down stops them; make clean also removes the data volume.

2. Initialize the collection

3. Capture and retrieve

Core Concepts

AI Integration (MCP)

Knowledge registers a local MCP server named knowledge in routes/ai.php:

Start it as a local server for your MCP client (e.g. Claude Code):

The server (app/Mcp/Servers/KnowledgeServer.php) exposes eight tools, all of which auto-detect the current project from git:

Tool What it does
recall Semantic vector search with tiered retrieval, ranked by relevance, confidence, and freshness
remember Capture a discovery — auto-detects git context, runs the write gate, checks for duplicates
correct Supersede wrong knowledge with a corrected version and propagate the fix
context Load project-relevant entries grouped by category; ideal at session start
stats Entry counts, project namespaces, and system health
search-code Semantic code search across indexed repositories
file-outline Symbol outline of a file — classes, methods, functions with hierarchy
symbol-lookup Look up a symbol by ID, optionally with its source code

Point your MCP client at the local server with a command such as ./know mcp:start knowledge. Use ./know mcp:inspector knowledge to test the connection interactively.

Commands

Most knowledge commands accept --project=<name> (target a namespace) and --global (span all namespaces); the project is auto-detected from git when omitted.

Knowledge

Command Description
add {title} Add an entry (git-aware, queues async Ollama enhancement)
search {query?} Semantic vector search with metadata filters
show {id} Display an entry's full details
entries List entries with --category / --priority / --status / --module filters
update {id} Update an existing entry (--add-tags appends, --tags replaces)
validate {id} Reaffirm an entry, boosting effective confidence
archive {id} Soft-delete an entry (--restore to bring it back)
correct {id} Correct an entry, superseding the original and propagating the fix
export {id} Export one entry (--format=markdown\|json)
export:all Bulk-export all entries to a directory

Intelligence

Command Description
context Load semantic session context for AI tools, capped by --max-tokens
insights AI-generated insights — --themes, --patterns, or classify a single entry
synthesize Deduplicate, digest, and archive stale entries (all --dry-run-able)
stage Stage an entry in the daily log before permanent storage
promote Promote staged entries to permanent knowledge (--auto, --date, --all)
enhance:worker Process the background Ollama enhancement queue (--once, --status)

Code Intelligence

Command Description
index-code {path?} Index a codebase for semantic code search (--incremental, --list)
search-code {query} Semantic search over indexed symbols (--show-source, --kind, --file)
vectorize-code {repo} Vectorize tree-sitter symbols into Qdrant
reindex:all Incrementally re-index and vectorize all git repos under a base path
git:context Display the current git context

Infrastructure

Command Description
install Initialize the Qdrant collection
config Manage configuration (config get\|set\|list)
stats Analytics dashboard for the knowledge base
search:status Search infrastructure health check
agent:status Dependency health checks (Qdrant, Redis, Ollama, embeddings)
maintain Run maintenance passes over entries
projects List all project knowledge bases
daemon:install Install/manage systemd timers for background daemons

Services (Docker)

Command Description
service:up Start the backing services
service:down Stop them
service:status Health-check all services
service:logs Tail service logs

Sync

Command Description
sync Bidirectional cloud sync (--push / --pull / --full-sync)
sync:remote Background sync to a centralized remote server
sync:purge Purge the local deletion/sync queue

Configuration

Configuration comes from .env (see .env.example), the config files in config/, and an optional per-user override at ~/.knowledge/config.json (merged in by AppServiceProvider).

Other notable keys (with defaults, from config/search.php):

Key Default Purpose
EMBEDDING_DIMENSION 1024 Vector size (1024 for bge-large, 384 for all-MiniLM-L6-v2)
SEARCH_MIN_SIMILARITY 0.3 Minimum similarity score for a match
SEARCH_MAX_RESULTS 20 Default result cap
QDRANT_COLLECTION knowledge Base collection name
QDRANT_CACHE_TTL 604800 Embedding cache lifetime (7 days)
HYBRID_SEARCH_ENABLED false Combine dense + sparse (BM25) vectors via Reciprocal Rank Fusion

Remote server (production)

docker-compose.remote.yml binds services to a specific network interface (Tailscale, VPN, or LAN) so several machines can sync against one centralized knowledge base. Last-write-wins conflict resolution is based on updated_at.

Testing

Run a single file or filter:

Development

Quality gates are enforced in CI: 95% coverage minimum, PHPStan level 8, and Pint formatting. Keep the suite green — automated PR review runs via Epic Werkflow.

Stack

Contributing

The workflow is test-first: write a failing test, make it pass, then run composer format and composer analyse before pushing. PRs must maintain 95% coverage, PHPStan level 8, and Pint formatting to merge.

License

Released under the MIT License.


All versions of knowledge with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/database Version ^12.17
laravel-zero/framework Version ^12.0.2
laravel/mcp Version ^0.6.0
saloonphp/saloon Version ^4.0
symfony/uid Version ^8.0
the-shit/vector Version ^0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package conduit-ui/knowledge contains the following files

Loading the files please wait ...