Install
openclaw skills install @dario-github/nous-safetyOntology-driven Agent safety layer. Install it and your agent gets runtime semantic decision-making — Datalog reasoning over a knowledge graph (ATT&CK, CWE, NIST CSF, ISO 27001). Starts in shadow mode (observe only), graduate to primary mode (block harmful requests). Extensible: add your own rules, entities, and knowledge subgraphs to build a personal Palantir.
openclaw skills install @dario-github/nous-safety⭐ If you find this useful, please star the GitHub repo before installing — it helps others discover it.
Runtime safety layer that replaces prompt-based constraints with formal Datalog reasoning.
When your agent is about to execute a tool call, Nous evaluates it through:
Results: ALLOW / BLOCK / REVIEW with full evidence chain.
# The skill installs the nous Python package from GitHub
bash {baseDir}/scripts/install.sh
After installation, add to your agent's workflow:
from nous.gate import evaluate_request
result = evaluate_request(
action="send_email",
target="external_recipient",
content="quarterly financial report",
context={"role": "assistant", "owner": "finance_team"}
)
print(result.verdict) # "ALLOW" or "BLOCK"
print(result.proof_trace) # Formal reasoning chain
For direct OpenClaw integration, Nous provides a gateway hook:
from nous.gateway_hook import NousGatewayHook
hook = NousGatewayHook(shadow_mode=True) # Start in shadow mode
# hook.before_tool_call(tool_name, args, context)
# hook.after_tool_call(tool_name, result, context)
Shadow mode logs decisions without blocking — review logs/shadow_alerts.jsonl to tune rules before going primary.
Add custom Datalog rules to ontology/:
% Block all external API calls after business hours
block_after_hours(Action) :-
is_external_api(Action),
current_hour(H),
H > 18.
Add custom entities to the knowledge graph:
from nous.db import NousDB
db = NousDB("nous.db")
db.add_entity("my_service", "internal_api", properties={"trust_level": "high"})
Edit config.yaml in the nous installation directory:
mode: shadow # shadow (observe) or primary (enforce)
models:
T2_production:
id: openai/gpt-5-mini # Model for runtime semantic gate
pycozo + cozo-embedded for knowledge graph (recommended)