Files
Claude-Code-Monitor/.codex/rules/default.rules
T
nntrivi2001 f78c7f9a2e feat: Claude Code Monitor — lanes, pipelines and a merged workspace
Internal SmartGift build of a Claude Code monitoring dashboard.

Lanes: a durable unit of parallel agent work, one per working directory,
tracked across session restarts. Managed lanes are git worktrees the
dashboard provisions and can reset or remove behind a three-check destroy
guard and a counted preflight; adopted lanes are directories you already
own and are never destroyable.

Pipelines: a lane moves through pipeline stages. A stage the agent declares
with evidence renders green; a stage inferred from the tool-event stream
renders dashed amber and never counts as done. Detection is forward-only
within a 30-minute window, and never writes the declared stage.

Workspace: one page at /run with a lane grid, the selected lane's pipeline,
and a full Claude console behind a disclosure.
2026-07-30 14:32:32 +07:00

72 lines
1.9 KiB
Plaintext

# Default execution policy rules for this repository.
# Safe, routine read-only git inspection can run with prompt.
prefix_rule(
pattern = ["git", ["status", "diff", "log", "show"]],
decision = "prompt",
justification = "Git inspection is allowed with approval.",
match = [
"git status",
"git diff",
"git log --oneline -20",
"git show HEAD~1",
],
not_match = [
"git checkout -b feature/new-branch",
],
)
# Destructive reset-style operations are blocked.
prefix_rule(
pattern = ["git", "reset", "--hard"],
decision = "forbidden",
justification = "Hard reset is blocked to prevent data loss. Use explicit file edits or safe restore strategies.",
match = [
"git reset --hard",
"git reset --hard HEAD~1",
],
not_match = [
"git reset --soft HEAD~1",
],
)
# Installing dependencies should always require approval.
prefix_rule(
pattern = ["npm", "install"],
decision = "prompt",
justification = "Dependency installation changes lockfiles and runtime behavior; require explicit approval.",
match = [
"npm install",
"npm install some-package",
],
not_match = [
"npm run build",
],
)
# Potentially destructive filesystem deletes are blocked.
prefix_rule(
pattern = ["rm", "-rf"],
decision = "forbidden",
justification = "Recursive force deletion is blocked. Use targeted edits or safer deletion commands.",
match = [
"rm -rf /tmp/test-folder",
],
not_match = [
"rm -r ./tmp",
],
)
# Network fetch commands should be reviewed each time.
prefix_rule(
pattern = ["curl"],
decision = "prompt",
justification = "Network access should be explicitly reviewed per command.",
match = [
"curl https://example.com",
],
not_match = [
"cat README.md",
],
)