PG-CS-001 · IT HELP · CODESENTINEL · GUIDE

CodeSentinel Getting Started

Start from the current public GitHub source, understand how it differs from PyPI, and run only bounded first inspections.

Author Polymath Global Published 2026-07-24 Updated 2026-07-29 Source basis GitHub main
LevelBeginner to intermediate Core path20-30 minutes ScopePublic GitHub source
What this guide teaches

CodeSentinel is a repository maintenance and security-monitoring tool. This page orients a new reader to the current public source repository, the command families exposed by that source, a bounded first inspection, and the decision point before configuration, scheduling, cleanup, integrity baselines, or agent-assisted development work.

Tooling disclosure. This guide was developed using a repository governance harness and AI-assisted research/curation workflow engineered by Joe Waller and enabled through OpenAI and Anthropic tooling. These tools support research and documentation, including source review, summarization, validation, and guide drafting, and do not replace the author's judgment.

1What You Are Running Core

CodeSentinel has two public faces. The public GitHub repository is the current source surface. PyPI is the packaged install surface. They are not currently the same version, so a reader should ask three separate questions before following a command example:

  • Source identity: Which public repository and branch is this guide describing?
  • Install identity: Which package version is actually installed in the active environment?
  • Command authority: Is the command backed by the current public source parser?
Public source and PyPI package boundary The current guide follows GitHub main and source version 1.1.3.b1. PyPI is shown as a separate installable package surface at version 1.1.1. GitHub main source version 1.1.3.b1 Source parser command families verified Bounded first use inspect before changing state PyPI package installable 1.1.1 line compare before assuming parity
FIG. 1 GitHub source and PyPI package are both public, but they are different surfaces. This page follows GitHub source and warns when package installs may differ.

2Before the First Command Core

Run first commands in a repository where you have authority to inspect the files and where the current state can be recovered. CodeSentinel is a maintenance tool, not just a passive viewer. Even status and scan workflows should be treated as operational activity.

  • Know the repository owner, branch, and current worktree state.
  • Keep private paths, credentials, webhooks, and tokens out of examples and retained output.
  • Separate observation from permission to change files, schedule tasks, or create baselines.
  • Stop before cleanup, configuration, scheduling, integrity reset, or agent remediation unless that workflow is approved.

3Confirm the Public Source Core

This guide assumes a checkout of the public repository. The commands below identify the public source and declared package metadata; detailed environment creation and repair stay on the installation page.

Confirm the public source
git clone https://github.com/joediggidyyy/CodeSentinel.git
cd CodeSentinel
git status -sb

In pyproject.toml, the reviewed public source declares version 1.1.3.b1. If your checkout differs from the current public branch, treat the page as a model and verify the changed parser before relying on command details.

4Orient to the CLI Core

After installing from the source checkout, begin with help and status. These commands orient the interface; they do not grant permission to run cleanup, scheduling, update, integrity, or agent-assisted workflows.

Orient to the public CLI
python -m codesentinel.cli --help
python -m codesentinel.cli status

Prefer python -m codesentinel.cli while checking a source checkout. It makes the active source path clearer than a shell launcher that may point at an older package install.

5Public-Source Command Families Core

Top-level parser registration means a family is exposed by the public source. It does not prove every subcommand is configured, appropriate for your repository, or safe to run without review.

TABLE 1 Public-source command families and first-use treatment.
FamilyPrimary purposeSide-effect classTreatment here
statusSummarize configuration and system stateObservation with runtime supervisionCore orientation
scanRun security or repository-bloat inspectionsAnalysis; may emit structured outputCore bounded inspection
maintenanceRun daily, weekly, or monthly upkeep workflowsRepository maintenanceFollow-on only
cleanArchive or remove selected repository artifactsMutation, even with archive-first policyFollow-on only
indexBuild, validate, or sync documentation indicesGenerated metadataFollow-on only
docsSearch or validate documentation surfacesObservation or validationFollow-on only
alertConfigure or send alertsConfiguration or notificationUse only as alert send or alert config after review
scheduleManage the maintenance schedulerBackground activityFollow-on only
venvManage CodeSentinel virtual environmentsEnvironment creation or archivalInstallation-page detail
updateUpdate docs, changelog, version, or related metadataRepository mutationFollow-on only
integrateConnect commands into workflowsWorkflow mutationFollow-on only
testRun beta or validation workflowsTest executionFollow-on only
setupRun setup wizard behaviorConfigurationInstallation-page detail
dev-auditRun development audit workflowsAnalysis; optional remediation modesAdvanced/development only
integrityManage file-integrity monitoringBaseline and verification stateAdvanced only
memoryManage session memory and process contextOperational stateFollow-on only

6First Bounded Inspection Core

A bloat audit is a useful first inspection because it asks CodeSentinel to observe and report before you decide whether any cleanup is justified. Run it only in an authorized repository and preserve output with care because file names and paths can disclose private project structure.

Run a bounded bloat audit
python -m codesentinel.cli scan --bloat-audit --json
TABLE 2 What the first-session commands can and cannot establish.
CommandCan establishCannot establishNext decision
git status -sbWhich branch and worktree state you are usingWhether installed launchers point at that sourceConfirm you are on the intended public source branch
python -m codesentinel.cli --helpVisible command families for the active source pathWhether every workflow is configured or safe for your repositoryChoose only an authorized family
scan --bloat-audit --jsonStructured observations about repository bloat candidatesPermission to delete, archive, reorganize, or ignore evidenceReview output before any cleanup

7Read the Result Before Acting Core

Treat scan output as evidence to review, not authority to change the repository. A finding can be correct, stale, incomplete, irrelevant to your goal, or blocked by missing context. Keep the distinction clear:

  • Observation: what the tool saw in the current workspace.
  • Severity: how important the tool believes the observation may be.
  • Recommendation: a possible response, not a mandate.
  • Authority: the separate permission to change, archive, schedule, or notify.
First-session control loop The first session moves from source verification to repository boundary, CLI orientation, inspection, review, and an explicit gate before configuration or mutation. Verify source public checkout Set boundary authorized repo Orient help and status Inspect bounded scan Review result evidence, not order Decision gate stop before config or mutation
FIG. 2 The first session ends at a decision gate. Configuration, scheduling, cleanup, integrity baselines, updates, and remediation require a separate approval and recovery plan.

8Choose the Next Workflow Core

After the first inspection, pick the next workflow by goal. Do not move from a scan result directly into cleanup or automation just because the CLI exposes those commands.

TABLE 3 Choose the next workflow by goal.
GoalDo next
Set up or fix your environmentUse the installation guide before running more commands.
Review scan output responsiblyRetain JSON carefully and redact repository-sensitive paths before sharing.
Plan cleanupDecide scope, archive policy, and recovery before running clean commands.
Add scheduling or alertsReview background activity, credentials, and notification targets first.
Set up integrity monitoringUse the advanced baseline model in section 10 before creating or replacing a baseline.

9Advanced: Structured Scan Evidence Optional advanced

Structured output is useful when you need to compare scans, attach evidence to a ticket, or preserve a before-and-after record. It is also easy to overshare. Treat file paths, project names, timestamps, and generated recommendations as repository-sensitive data.

Retained evidence is only as trustworthy as the same four-part read from section 7 that you applied when you first reviewed it. Preserve all four, not only the observation:

TABLE 4 What retained scan evidence must also preserve, mapped to the section 7 framework.
Framework elementWhat retained evidence must also capture
ObservationSource checkout, command, repository, and the time it ran -- an observation without provenance cannot be trusted later.
SeverityThe severity as reported at that moment; tool logic can change between versions, so do not silently treat old evidence as current.
RecommendationThe recommendation text as given -- useful for showing what advice existed, not proof that it was followed.
AuthorityWho reviewed the evidence and approved any resulting action -- retained evidence is not itself authorization.

Compare two pieces of evidence by question and scope, not only by a change in count. A difference is not automatic causation -- changed inputs, environment, ignored files, or parser changes can also explain it. Keep agent-assisted remediation outside this tutorial.

10Advanced: Integrity as a Deliberate Baseline Optional advanced

Integrity commands are not just status checks. A baseline records what the system should compare against later. Creating, resetting, or widening that baseline can redefine what future verification treats as normal.

TABLE 5 Integrity state map for deliberate baseline work.
State or actionEffectAuthority requirementRecovery consideration
statusReports whether integrity monitoring is configured or activeRepository inspection authorityDoes not prove the baseline is correct
startEnables monitoring behaviorOperational approvalKnow where state and logs are written
verifyCompares current files against a baselineInspection authority and baseline trustReview drift before acting
config baselineCreates or replaces expected file stateExplicit baseline approvalPreserve prior baseline or commit state first
reset or whitelistChanges what future checks consider acceptableOwner-level approvalDocument why the change is legitimate

References

  1. [1] Public CodeSentinel repository. GitHub repository for the current public source boundary.
  2. [2] Public README. CodeSentinel README on GitHub.
  3. [3] Public package metadata. pyproject.toml on GitHub.
  4. [4] Public CLI source. codesentinel CLI parser source on GitHub.
  5. [5] PyPI package page. Installable CodeSentinel package surface.
  6. [6] Installation follow-up. CodeSentinel installation guide.
  7. [7] Technical background. CodeSentinel technical report.