Skip to content

ai-discovery

Kodachi Auto-Discovery Daemon - Monitors and indexes Rust service binaries

Version: 9.0.1 | Size: 1.3MB | Author: Warith Al Maawali

License: Proprietary | Website: https://www.digi77.com


File Information

Property Value
Binary Name ai-discovery
Version 9.0.1
Build Date 2026-02-14T07:59:31.617257243Z
Rust Version 1.82.0
File Size 1.3MB
JSON Data View Raw JSON

SHA256 Checksum

485d24270cd01f5ca33b92c35bb419a3919a266bc19fa200f7aa4114c87174cb

Features

Feature Description
Feature Binary file watching with inotify
Feature Automatic command extraction from -e --json
Feature Live command registry updates
Feature Daemon process management

Security Features

Feature Description
Inputvalidation All inputs are validated and sanitized
Ratelimiting Built-in rate limiting for network operations
Authentication Secure authentication with certificate pinning
Encryption TLS 1.3 for all network communications

System Requirements

Requirement Value
OS Linux (Debian-based)
Privileges root/sudo for system operations
Dependencies OpenSSL, libcurl

Global Options

Flag Description
-h, --help Print help information
-v, --version Print version information
-n, --info Display detailed information
-e, --examples Show usage examples
--json Output in JSON format
--json-pretty Pretty-print JSON output with indentation
--json-human Enhanced JSON output with improved formatting (like jq)
--verbose Enable verbose output
--quiet Suppress non-essential output
--no-color Disable colored output
--config <FILE> Use custom configuration file
--timeout <SECS> Set timeout (default: 30)
--retry <COUNT> Retry attempts (default: 3)

Commands

Daemon Control

start

Start the auto-discovery daemon

Usage:

ai-discovery start [OPTIONS]

status

Show daemon status

Usage:

ai-discovery status [OPTIONS]

Registry Management

reindex

Force reindex all binaries

Usage:

ai-discovery reindex [OPTIONS]

Examples

Daemon Control

Start and monitor the auto-discovery daemon

Start discovery daemon to monitor binaries

sudo ai-discovery start
Expected Output: Discovery daemon started successfully

Note

Monitors /dashboard/hooks/rust/*/target/release/

Start in foreground mode for debugging

sudo ai-discovery start --foreground
Expected Output: Discovery daemon running in foreground

Note

Shows real-time file system events

Foreground mode with JSON status output

sudo ai-discovery start --foreground --json
Expected Output: JSON events as binaries are discovered

Note

Combines debug visibility with structured output

Check daemon status and registry statistics

ai-discovery status
Expected Output: Daemon status with command registry info

Note

Shows total commands, services, and last update

Get status in JSON format

ai-discovery status --json
Expected Output: JSON response with daemon and registry status

Note

Useful for automated monitoring scripts

Registry Management

Manage the command registry and reindex binaries

Force reindex all Rust service binaries

sudo ai-discovery reindex
Expected Output: All binaries reindexed successfully

Note

Extracts commands using -e --json from each binary

Reindex with JSON output

sudo ai-discovery reindex --json
Expected Output: Reindex results in JSON format

Note

Shows discovered services and command counts

Reindex specific service only

ai-discovery reindex --service health-control
Expected Output: Single service reindexed successfully

Note

Faster than full reindex for debugging

Reindex single service with JSON output

ai-discovery reindex --service health-control --json
Expected Output: JSON with reindexed command count for health-control

Note

Fast targeted reindex with structured output

Show detailed registry contents

ai-discovery status --verbose
Expected Output: Full list of discovered commands by service

Note

Displays all registered commands and metadata

Detailed registry contents as JSON

ai-discovery status --verbose --json
Expected Output: JSON with full command list by service

Note

Combines verbose detail with structured output

Environment Variables

Variable Description Default Values
RUST_LOG Set logging level info error
NO_COLOR Disable all colored output when set unset 1

Exit Codes

Code Description
1 General error
4 Network error
5 File not found
3 Permission denied
2 Invalid arguments
0 Success