You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 3-5 high-value patterns max. Reviewed during /bootstrap.
44
44
45
-
-[Global Memory]: Branch-local lessons are lost after archival. Use Global Lessons Registry for persistence.
46
-
-[Format Safety]: Do not copy line numbers from view tools; they break file edits.
47
-
-[Path Rewrite Guard]: Namespace migrations should validate for accidental double-prefix replacements like `agentcortex/agentcortex/...` immediately after bulk path rewrites.
48
-
-[Wrapper Validation]: Validation checks for wrapper files should assert behaviorally equivalent path construction patterns, not only one literal path string representation.
49
-
-[Bash Portability]: Shell validation entrypoints should prefer portable `grep`-based checks over environment-specific `rg` assumptions when they are part of cross-platform integrity gates.
50
-
-[Work Log Key]: Resolve filesystem-safe worklog keys from raw branch names before gate checks; missing active logs are recoverable, while missing handoff references or evidence remain hard failures.
51
-
52
-
-[GLOBAL-CANDIDATE][Patch Path Fallback]: When `apply_patch` is unstable on this Windows workspace, prefer repo-local safe whole-file rewrites only for newly added files or tightly scoped text-only files, then immediately re-verify with `git diff --check`.
53
-
-[Detector Validation]: New integrity checks must be validated against real repo bytes before baselining, otherwise pure-LF files can be falsely classified as mixed EOL and pollute the baseline.
54
-
-[Shell Dependency Guard]: Cross-platform validation entrypoints must not add new hard runtime dependencies unless the template explicitly requires them and the migration path is documented.
45
+
-[Status Safety]: Ensure modular scan methods in `Scanner` prune ignored directories from `os.walk` to avoid scanning prohibited/large paths inappropriately.
46
+
-[Test Assertion]: `DemoRunner.run()` returns 0 on success; smoke tests should assert 0 and verify finding details separately instead of asserting non-zero for findings.
- Feature shipped: added a minimal text hardening kit with repo-level text defaults, baseline-backed integrity checks, validation integration, and rollout guidance for older projects.
65
57
- Tests: Pass
58
+
### Ship-main-2026-03-11
59
+
- Feature shipped: GhostCheck MVP (v0.1.0). Implemented hallucination detection, secret scanning with file-type-aware severity, and agent rules linter. Optimized CLI for modular scans and added comprehensive smoke tests.
**GhostCheck** is a CLI security scanner designed for AI-assisted development workflows. It addresses risks that traditional tools miss: hallucinated packages, leaked secrets in AI chat logs, and dangerous agent instruction configurations.
3
+
## AI-Era Security Scanner for Developers
4
4
5
-
## Features
5
+
GhostCheck is a zero-dependency CLI security scanner designed to detect risks specific to AI-assisted development workflows.
6
6
7
-
- 🦄 **Hallucination Detection**: Identify nonexistent packages on PyPI/npm.
8
-
- 🔑 **Smart Secret Scanning**: Detect keys in AI logs with file-type-aware severity.
9
-
- 🛡️ **Agent Rules Linter**: Scan `.agent/`, `.cursor/`, and `.github/` for risky rules.
10
-
- 🚫 **Ignore Support**: Exclude paths via `.ghostcheckignore`.
11
-
- 🚀 **Demo Mode**: Instant "wow" experience with `ghostcheck demo`.
7
+
## Key Features
8
+
9
+
-**Hallucination Detection**: Flags packages that don't exist on PyPI/npm or are suspiciously new.
10
+
-**Secret Scanning**: Finds leaked API keys/tokens in AI chat logs and code with file-type-aware severity.
11
+
-**Agent Rules Linter**: Audits `.agent`, `.cursor`, and other agent rules for dangerous permissions or commands.
12
+
-**Zero Dependencies**: Pure Python implementation with no runtime dependencies.
0 commit comments