Install
openclaw skills install @workloftai/codemapBuild a compact local SQLite index of every function, class, method, interface and type across your repos, so an agent finds a symbol's file:line and signature in one lookup instead of a tree-wide grep plus whole-file read.
openclaw skills install @workloftai/codemapAgents burn tokens re-discovering the same code: grep a name across the trees,
then read the file the hit lives in (often the whole thing) to see the signature.
codemap collapses that to one short record — file:line plus the signature.
Pure Python standard library: no network, no model call, no dependencies.
The executable is {baseDir}/bin/codemap. Build the index once over your roots,
then query it instead of grepping.
Use it whenever you are about to grep a codebase for where a function/class/type
is defined, or need a symbol's signature. Build the index at the start of a
session over the repos you will touch, then find instead of grepping. Best on
Python and JS/TS/JSX/TSX projects.
{baseDir}/bin/codemap build <root1> <root2> ...
Idempotent — build deletes and re-inserts. Skips node_modules, .next,
.git, dist. Rebuild after large edits (there is no file-watcher).
{baseDir}/bin/codemap find scan # exact match by default
{baseDir}/bin/codemap find scan --like # substring match
{baseDir}/bin/codemap find Pipeline --kind class
{baseDir}/bin/codemap find scan --json # machine-readable
find exits non-zero when nothing matches, so it drops into a && chain.
{baseDir}/bin/codemap file src/app/page.tsx
{baseDir}/bin/codemap stats
async def).type aliases.{baseDir}/bin/codemap — never hardcode a path.