agentleFS
adithyan-akadithyan-ak/AgentHound/CLAUDE.md

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
  1. Very specific:

    Run make prerelease and make docs-check from the exact main commit.

    line 24
  2. Very specific:

    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.

    line 25
  3. Very specific:

    Wait for the private candidate to pass, approve release-production, and require release-acceptance and homebrew-acceptance to pass.

    line 26
  4. Very specific:

    Add every collector package and dependency to scripts/collector-allowlist.txt.

    line 36
  5. Very specific:

    Add it to scripts/collector-allowlist.txt.

    line 58
  6. Distinctive:

    Add focused module, contact-policy, graph, and coverage tests.

    line 59
  7. Very specific:

    Every page under docs/ belongs in mkdocs.yml.

    line 78

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

AgentHound maintainer contract

AgentHound provides autonomous offensive collection and access verification for AI agent infrastructure.

  • agenthound is the static foothold-time collector. It scans, plans, verifies, restores, and checkpoints one local JSON artifact.
  • agenthound-server manually ingests artifacts, publishes the Neo4j graph and PostgreSQL finding state, and serves the API and dashboard.

Required checks

Before committing:

make check

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.

Release from a clean commit already merged into main:

  1. Confirm every PR check is green and Unreleased is empty.
  2. Dispatch the Release workflow from main once to verify the repository-linked private staging packages.
  3. Run make prerelease and make docs-check from the exact main commit.
  4. 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.
  5. Wait for the private candidate to pass, approve release-production, and require release-acceptance and homebrew-acceptance to 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, or server/internal packages. scripts/deps-check.sh enforces 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 Origin header 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/dist contains the files required by go: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.value and SHA-256 identity in properties.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

  1. Implement the applicable interface under sdk/action.
  2. Register the module with sdk/module.Register from its package init().
  3. Blank-import the package in collector/cmd/agenthound/main.go.
  4. Add it to scripts/collector-allowlist.txt.
  5. 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

ChangeCanonical document
Commands and flagsdocs/reference/cli.md
Environment and defaultsdocs/reference/configuration.md
Scan behaviordocs/operator/scanner.md
Node or edge kindsdocs/reference/graph-model.md
API behaviordocs/reference/api.md and served OpenAPI
Analysis lifecycledocs/architecture/server-analysis.md
Risk formulasdocs/reference/risk-scoring.md
Detection coveragedocs/reference/detection-rules.md
Module contractdocs/contributing/modules.md
Deployment or trust boundarydocs/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.