SmritiFlow is a CLI for maintaining living repository memory for coding agents. It scans a codebase, writes structured artifacts, and generates concise agent-facing docs so work can be resumed with current context instead of guesswork.
.smritiflow/cache.json.smritiflow/project-map.json.smritiflow/scan-report.jsonAGENTS.mddocs/ai/PROJECT_OVERVIEW.mddocs/ai/CURRENT_STATE.mddocs/ai/RUNBOOK.md
SmritiFlow is published as the smritiflow CLI package.
npm install -g smritiflowYou can also install it in a project and run it locally:
npm install --save-dev smritiflow
npx smritiflow <command>Both command names are supported:
smritiflowsf
smritiflow init
smritiflow scan
smritiflow status
smritiflow refresh
smritiflow resumeTypical workflow:
initonce per repositoryscanbefore substantial workstatusbefore resumingrefreshafter meaningful changesresumewhen returning to an active codebase
smritiflow init: initialize repository memory filessmritiflow scan: run a full scan and generate artifactssmritiflow refresh: refresh memory after repository changessmritiflow status: report freshness and stale signalssmritiflow resume: print a focused resume brief
This repository also exposes a smritiflow skill for agent workflows via .agents/skills/smritiflow/SKILL.md.
Install the skill from GitHub with:
npx skills add subhajitlucky/smritiflowThat installs the repo-hosted smritiflow skill for supported agents.
Optional discovery only:
npx skills add subhajitlucky/smritiflow --listUse the CLI itself with:
npm install -g smritiflowThe skill is discoverable by the skills ecosystem and can surface on skills.sh through repo-based installation.
This repository uses pnpm for development, but end users can install the CLI with npm.
pnpm install
pnpm validateMain development commands:
pnpm devpnpm typecheckpnpm testpnpm buildpnpm validate
This repository includes a GitHub Actions publish workflow for npm trusted publishing.
Typical release flow:
- bump the version in
apps/cli/package.json - push the change to
main - create and push a tag such as
v0.1.1 - let GitHub Actions publish the package to npm
Automated coverage includes:
- repository root detection
- stack detection heuristics
- route extraction
- full scan artifact generation
- refresh, status, and resume integration flows