Forensic forwarder for AI-agent coding sessions (Claude Code, Codex CLI). Tick-batches transcripts and ships tamper-evident receipts to GhostLogic Blackbox.
Project description
GhostLogic Agent Watchdog
GhostLogic Agent Watchdog is the product surface for the logicd collection daemon. It monitors local AI-agent coding sessions, including Codex CLI and Claude Code, seals them in rolling 10-minute ticks, and ships tamper-evident work receipts to GhostLogic Blackbox over HTTPS.
logicd remains the internal package, module, CLI, and service-runtime name. User-facing docs and plugin metadata should refer to GhostLogic Agent Watchdog.
Repository: ghostlogic-agent-watchdog. Plugin manifest name: ghostlogic-agent-watchdog. The daemon command remains logicd.
Scope
- Sources: Claude Code (
~/.claude/projects/**/*.jsonl), Codex CLI (~/.codex/sessions/**/*.jsonl,~/.codex/history.jsonl). - Capture model: tick-based. 10-minute ticks. Every event carries its
tick_index; the server-side aggregator applies a 7-day rolling window as retention policy. The client does not enforce retention. - Transport:
POST https://api.ghostlogic.tech/api/v1/ingestwithAuthorization: Bearer <key>. - Runtime: foreground Python process or a persistent platform launcher. On Windows,
logicd installregisters an ONSTART scheduled task namedlogicdthat runs as SYSTEM. macOS/Linux still print platform service instructions. Read-only on source files. ACL-locked config. - Platforms: Windows, macOS, Linux (all three).
- Forensic posture:
- SHA-256 on every source line.
- Deterministic
batch_id(sha256of sorted event_ids) for idempotent retries and server dedupe. - Append-only hash-chained audit log (
audit.log) of every forwarder activity. - Byte offsets advance only after a batch has been durably handled (shipped or dead-lettered). Process death before durability means the next run re-reads those bytes, so no data loss is expected.
- Dead-lettered batches replay on startup with the original
batch_idpreserved. - Every event carries
line_number,byte_offset,byte_end,sha256, source adapter, andcaptured_at_nsfor pinpointable forensic mapping.
Windows Self-Serve Install
Run PowerShell as Administrator:
python -m pip install --upgrade ghostlogic-agent-watchdog
logicd enroll --token gl_enroll_xxx --endpoint-name $env:COMPUTERNAME --agent-id logicd
logicd install
logicd enroll redeems the one-time gl_enroll_... token with https://api.ghostlogic.tech/api/v1/enroll, writes the scoped gl_agent_* key locally, and does not print the full key. logicd install uses the enrolled config and does not prompt for a raw API key.
Default locations
| Platform | Config + state directory | ACL method | Service instructions |
|---|---|---|---|
| Windows | %PROGRAMDATA%\GhostLogic\ |
icacls - SYSTEM + Administrators |
Scheduled Task logicd |
| macOS | ~/Library/Application Support/GhostLogic/ |
chmod 600 - owner only |
launchd LaunchAgent (per-user) |
| Linux | $XDG_CONFIG_HOME/ghostlogic/ or ~/.config/ghostlogic/ |
chmod 600 - owner only |
systemd --user unit (or system unit for root install) |
Override the default with --data-dir:
logicd enroll --token gl_enroll_xxx --data-dir /opt/ghostlogic
logicd install --data-dir /opt/ghostlogic
Legacy/manual mode is still available for operators who already have a scoped gl_agent_* key:
logicd install --legacy-api-key
Run (foreground)
python -m logicd run --config /path/to/config.toml
Paths work the same on all three OSes; use your platform's path form.
Naming Split
- Product and plugin display name:
GhostLogic Agent Watchdog - Repository:
ghostlogic-agent-watchdog - Package and plugin manifest name:
ghostlogic-agent-watchdog - Internal Python package and CLI module:
logicd - Internal config, unit, and label identifiers may still use
logicdwhere stability matters
License
Apache-2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghostlogic_agent_watchdog-0.3.3.tar.gz.
File metadata
- Download URL: ghostlogic_agent_watchdog-0.3.3.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8e85dd427d34261cbe364ea4e635fcc7b88746e955f7646594032d8cca372c3
|
|
| MD5 |
3713443047ef0c9563c9a1d4421f873e
|
|
| BLAKE2b-256 |
262620b71c9a10bd217f39f339d191693d2faa51e39c1d93d429d0bbcce6f75d
|
File details
Details for the file ghostlogic_agent_watchdog-0.3.3-py3-none-any.whl.
File metadata
- Download URL: ghostlogic_agent_watchdog-0.3.3-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b4850d1ed7d8c31d4559a4a1b95fee1e0f48757d29f442646ff9a730e091e69
|
|
| MD5 |
adf865edcfc28ccf449ea59a026249b4
|
|
| BLAKE2b-256 |
a4b5a9af9a19b4c41afe0b7cbf32812f871be52ef93480945b44d259adef2cfb
|