Skip to content

CognitiveOS-Project/cognitiveosd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cognitiveosd

The CognitiveOS background system daemon — manages the 5 system codes (wake/idle/shutdown/reset/unlock), resource audits, MCP process supervision, and Wide Model lifecycle.

System Codes

Code Effect
wake Transition from idle to listening
idle Unload Wide Model, suspend MCP servers
security Kill all processes, power off peripherals
reset Wipe data partitions, reboot
unlock Validate unlock code

Socket API

JSON-over-Unix socket at /cognitiveos/run/daemon.sock. Newline-delimited JSON envelopes.

Type Direction Purpose
input_forward cli → daemon Forward human input to Wide Model
output_deliver daemon → cli Wide Model response
system_code cli → daemon wake/idle/security/reset/unlock
mcp_register MCP → daemon Tool capability announcement
mcp_invoke daemon → MCP Tool execution request
mcp_result MCP → daemon Tool execution result
audit_request cli → daemon Trigger hardware audit
audit_report daemon → cli Resource snapshot
status_request cli → daemon Daemon status
wide_model_load daemon → inference Load Wide Model
wide_model_unload daemon → inference Unload Wide Model

Build

go build -o bin/cognitiveosd ./cmd/cognitiveosd

Configuration

Env Flag Default
COGNITIVEOS_SOCKET --socket /cognitiveos/run/daemon.sock
COGNITIVEOS_MODEL_DIR --models /cognitiveos/models
COGNITIVEOS_PATCH_DIR --patches /cognitiveos/patches
COGNITIVEOS_RUN_DIR --run /cognitiveos/run
COGNITIVEOS_LOG_DIR --log-dir /cognitiveos/logs
COGNITIVEOS_INFERENCE_URL --inference http://127.0.0.1:11434
COGNITIVEOS_MCP_BIN_DIR --mcp-bin /cognitiveos/bin
--audit-interval 60

Related

Contributing

  1. Branch from development, not main
  2. Use topic branches: feature/<name>, fix/<name>, bugfix/<name>
  3. Open a PR to development with a clear title and description
  4. Merge via squash after review
  5. Changes flow to main via a release PR

See the SDLC repo for the full contribution guide, code review standards, and testing strategy.

Author

Jean MachucaGitHub · Sponsor

License

MIT

About

cognitiveosd — the CognitiveOS background system daemon. Manages the 5 system codes (wake/idle/shutdown/reset/unlock), resource audits, MCP process supervision, and Wide Model lifecycle

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages