Thanks for your interest in making AI agents more observable and accountable.
git clone https://github.com/DilawarShafiq/unworldly.git
cd unworldly
npm install
npm run build
npx vitest run# Run in dev mode (no build step)
npm run dev -- watch
# Run tests
npx vitest run
# Run tests in watch mode
npx vitest
# Build
npm run build- Fork the repo
- Create a branch (
git checkout -b my-feature) - Make your changes
- Run tests (
npx vitest run) — all 139+ tests must pass - Commit with a clear message
- Open a PR
- New agent detections — Know an AI agent we don't detect yet? Add it to
src/agent-detect.ts - New risk patterns — Found a dangerous command we miss? Add it to
src/command-risk.ts - Platform support — Windows/Linux/macOS edge cases
- Performance — Faster process monitoring, lower overhead
- Integrations — MCP server, CI/CD plugins, dashboard
- TypeScript strict mode, no
anytypes - ESM modules (
.jsextensions in imports) - Tests with vitest
- Keep functions small and focused
src/
cli.ts — CLI entry point (commander)
watcher.ts — Main watch loop (chokidar + process monitor)
risk.ts — File risk scoring
command-risk.ts — Command risk scoring
command-monitor.ts — Process monitoring
integrity.ts — SHA-256 hash chain
agent-detect.ts — AI agent detection
session.ts — Session management
display.ts — Terminal output
replay.ts — Session replay
report.ts — Report generation
config.ts — User config loading
types.ts — Type definitions
Open an issue or start a discussion. We're friendly.