AgentHound
CLAUDE.md442 starsChanged 4 months agoApache-2.0View on GitHub
AgentHound provides autonomous offensive collection and access verification for AI agent infrastructure. Before committing: Changes spanning collection, planning, artifacts, ingestion, or findings also run make integration. Documentation changes run make docs-check. Before a release tag, run make prerelease and make docs-check. Release tags are numeric SemVer without a v prefix. The first numeric heading in CHANGELOG.md is the version source of truth; make sync-version updates every live installer, environment, and Docker Compose pin in the README, installer, and operator documentation.
- Installs packages
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Run make prerelease and make docs-check from the exact main commit.
- Very specific: line 25
Create and push an annotated numeric tag, for example git tag -a 1.1.0 -m "AgentHound 1.1.0" followed by git push origin 1.1.0.
- Very specific: line 26
Wait for the private candidate to pass, approve release-production, and require release-acceptance and homebrew-acceptance to pass.
- Very specific: line 36
Add every collector package and dependency to scripts/collector-allowlist.txt.
- Very specific: line 58
Add it to scripts/collector-allowlist.txt.
- Distinctive: line 59
Add focused module, contact-policy, graph, and coverage tests.
- Very specific: line 78
Every page under docs/ belongs in mkdocs.yml.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AgentHound maintainer contract
AgentHound provides autonomous offensive collection and access verification for AI agent infrastructure.
agenthoundis the static foothold-time collector. It scans, plans, verifies, restores, and checkpoints one local JSON artifact.agenthound-servermanually ingests artifacts, publishes the Neo4j graph and PostgreSQL finding state, and serves the API and dashboard.
Required checks
Before committing:
make checkChanges spanning collection, planning, artifacts, ingestion, or findings also run make integration. Documentation changes run make docs-check.
Before a release tag, run make prerelease and make docs-check. Release tags are numeric SemVer without a v prefix. The first numeric heading in CHANGELOG.md is the version source of truth; make sync-version updates every live installer, environment, and Docker Compose pin in the README, installer, and operator documentation.
Release from a clean commit already merged into main:
- Confirm every PR check is green and
Unreleasedis empty. - Dispatch the Release workflow from
mainonce to verify the repository-linked private staging packages. - Run
make prereleaseandmake docs-checkfrom the exactmaincommit. - Create and push an annotated numeric tag, for example
git tag -a 1.1.0 -m "AgentHound 1.1.0"followed bygit push origin 1.1.0. - Wait for the private candidate to pass, approve
release-production, and requirerelease-acceptanceandhomebrew-acceptanceto pass.
Numeric release tags are immutable. Rerun a transient failure against the same commit; if source changes are required, prepare the next patch version instead of moving the tag.
Supported release surfaces are GitHub archives, the installer, GHCR, and Homebrew. Numeric tags are intentionally not Go module versions, so release acceptance must not use go list, go mod download, or go install as distribution checks.
Hard boundaries
- The collector must not link
chi,pgx,neo4j-go-driver, orserver/internalpackages.scripts/deps-check.shenforces the boundary. - The stripped Linux amd64 collector must remain within the budget enforced by
scripts/size-check.sh. - Add every collector package and dependency to
scripts/collector-allowlist.txt. - Allowed dependency licenses are Apache-2.0, MIT, BSD-2-Clause, BSD-3-Clause, ISC, MPL-2.0, Unlicense, and Zlib.
- TLS verification is enabled by default. Every AgentHound-owned connection uses the shared contact policy through the final dial.
- The server is single-user and binds to loopback by default. OriginGuard protects browser mutations; callers without an
Originheader are inside the local-process trust boundary. - PostgreSQL and Neo4j form one storage pair and must be backed up and restored together.
- Build the UI before the server so
server/internal/api/ui/distcontains the files required bygo:embed.
Core invariants
- Node IDs are deterministic SHA-256 identities. Config and MCP collection must emit the same MCPServer identity for the same endpoint.
- Concrete credentials store raw material in
properties.valueand SHA-256 identity inproperties.value_hash. Masks, hashes, and unresolved references never become planner input. - Collectors return explicit observation domains and honest coverage outcomes. Partial evidence remains useful but cannot be recorded as action success.
- The planner uses deterministic candidates and completed-key deduplication. It contains no database, workflow language, policy engine, or model dependency.
- Recovery state is checkpointed into the scan artifact before mutation. Reversible actions restore immediately under a detached cleanup context and confirm the original before planning resumes.
- A complete raw-domain promotion retires the composite epoch. All registered processors rebuild against the current retained projection before publication.
- Neo4j writes use UNWIND and MERGE in bounded batches.
Module registration
- Implement the applicable interface under
sdk/action. - Register the module with
sdk/module.Registerfrom its packageinit(). - Blank-import the package in
collector/cmd/agenthound/main.go. - Add it to
scripts/collector-allowlist.txt. - Add focused module, contact-policy, graph, and coverage tests.
The reversible ContextForge implementation backs the mcp.description.roundtrip planner action and must use the artifact Journal for recovery transitions.
Documentation ownership
| Change | Canonical document |
| Commands and flags | docs/reference/cli.md |
| Environment and defaults | docs/reference/configuration.md |
| Scan behavior | docs/operator/scanner.md |
| Node or edge kinds | docs/reference/graph-model.md |
| API behavior | docs/reference/api.md and served OpenAPI |
| Analysis lifecycle | docs/architecture/server-analysis.md |
| Risk formulas | docs/reference/risk-scoring.md |
| Detection coverage | docs/reference/detection-rules.md |
| Module contract | docs/contributing/modules.md |
| Deployment or trust boundary | docs/operator/deployment.md and docs/operator/security.md |
Every page under docs/ belongs in mkdocs.yml; strict Docs CI rejects broken links, bad anchors, and orphan pages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

