MCPcopy Create free account

hub / github.com/JuliusBrussee/caveman / functions

Functions356 in github.com/JuliusBrussee/caveman

↓ 23 callersMethodsend
(self, prompt)
tests/test_mode_tracker.py:38
↓ 22 callersMethodflag_value
(self)
tests/test_mode_tracker.py:54
↓ 10 callersFunctiondetect_file_type
Classify a file as 'natural_language', 'code', 'config', or 'unknown'. Returns: One of: 'natural_language', 'code', 'config', 'unknown'
skills/caveman-compress/scripts/detect.py:72
↓ 10 callersFunctiontest
(name, fn)
tests/test_mcp_shrink.js:20
↓ 9 callersMethod_file_with
(self, dirpath: Path, text: str)
tests/test_compress_safety.py:26
↓ 9 callersFunctionshould_compress
Return True if the file is natural language and should be compressed.
skills/caveman-compress/scripts/detect.py:118
↓ 8 callersFunctionensure
(condition: bool, message: str)
tests/verify_repo.py:27
↓ 7 callersMethod_write
(self, dirpath, name, body)
tests/test_detect.py:51
↓ 7 callersFunctionrunSpawn
(cmd, args, opts, dry)
cli/install.js:434
↓ 7 callersMethodrun_cmd
(self, cmd, home, extra_env=None)
tests/test_hooks.py:14
↓ 7 callersFunctionsection
(title: str)
tests/verify_repo.py:23
↓ 7 callersFunctionspawnOk
(r)
cli/install.js:465
↓ 6 callersMethodencode
(self, *args, **kwargs)
tests/test_compress_safety.py:117
↓ 6 callersFunctionextract_inline_codes
Backtick-delimited inline spans, with fenced code blocks stripped first. Previously used a column-0-anchored regex to strip fences, which misses
skills/caveman-compress/scripts/validate.py:97
↓ 6 callersFunctionreadFlag
(flagPath)
src/hooks/caveman-config.js:246
↓ 6 callersFunctionsafeWriteFlag
(flagPath, content)
src/hooks/caveman-config.js:138
↓ 6 callersFunctionvalidate_inline_codes
(orig, comp, result)
skills/caveman-compress/scripts/validate.py:162
↓ 5 callersFunctiongetDefaultMode
(startDir)
src/hooks/caveman-config.js:96
↓ 4 callersMethodadd_error
(self, msg)
plugins/caveman/skills/caveman-compress/scripts/validate.py:22
↓ 4 callersMethodadd_error
(self, msg)
skills/caveman-compress/scripts/validate.py:22
↓ 4 callersMethodadd_warning
(self, msg)
plugins/caveman/skills/caveman-compress/scripts/validate.py:26
↓ 4 callersMethodadd_warning
(self, msg)
skills/caveman-compress/scripts/validate.py:26
↓ 4 callersFunctioncaptureSpawn
(cmd, args)
cli/install.js:455
↓ 4 callersFunctionhasCmd
(cmd)
cli/install.js:273
↓ 4 callersFunctionreadIfExists
(p)
cli/lib/openclaw.js:40
↓ 4 callersFunctionruleOverheadPerTurn
()
src/hooks/caveman-stats.js:29
↓ 4 callersFunctionvalidate
(original_path: Path, compressed_path: Path)
skills/caveman-compress/scripts/validate.py:181
↓ 3 callersFunctionappendFlag
(filePath, line)
src/hooks/caveman-config.js:284
↓ 3 callersFunctioncompress
(text, _opts)
src/mcp-servers/caveman-shrink/compress.js:105
↓ 3 callersFunctionderiveSavings
({ byMode, model })
src/hooks/caveman-stats.js:256
↓ 3 callersFunctiondetect_file_type
Classify a file as 'natural_language', 'code', 'config', or 'unknown'. Returns: One of: 'natural_language', 'code', 'config', 'unknown'
plugins/caveman/skills/caveman-compress/scripts/detect.py:72
↓ 3 callersFunctiondie
(msg)
cli/install.js:164
↓ 3 callersFunctiondownloadTo
(url, dest)
cli/install.js:1129
↓ 3 callersFunctionformatUsd
(amount)
src/hooks/caveman-stats.js:64
↓ 3 callersFunctionparseModeChange
(promptRaw, options)
src/hooks/caveman-parse.js:55
↓ 3 callersFunctionpriceForModel
(model)
src/hooks/caveman-stats.js:56
↓ 3 callersFunctionrun
( args: list[str], *, cwd: Path = ROOT, env: dict[str, str] | None = None, check: bool = T
tests/verify_repo.py:32
↓ 3 callersFunctionshould_compress
Return True if the file is natural language and should be compressed.
plugins/caveman/skills/caveman-compress/scripts/detect.py:118
↓ 3 callersFunctionvalidate
(original_path: Path, compressed_path: Path)
plugins/caveman/skills/caveman-compress/scripts/validate.py:181
↓ 2 callersFunctionabsoluteNodePath
()
cli/install.js:469
↓ 2 callersFunctionapplyOverrides
(pluginRoot, env)
src/hooks/cavecrew-model-overrides.js:89
↓ 2 callersFunctionbackup_dir_for
Resolve the out-of-tree backup directory for a given source file. Backups must live OUTSIDE the source directory so skill auto-loaders (Claud
plugins/caveman/skills/caveman-compress/scripts/compress.py:71
↓ 2 callersFunctionbackup_dir_for
Resolve the out-of-tree backup directory for a given source file. Backups must live OUTSIDE the source directory so skill auto-loaders (Claud
skills/caveman-compress/scripts/compress.py:71
↓ 2 callersFunctioncompressDescriptionsInPlace
(obj, fieldNames)
src/mcp-servers/caveman-shrink/compress.js:116
↓ 2 callersFunctioncopyDirRecursive
(src, dest)
cli/install.js:701
↓ 2 callersFunctionderiveNet
({ estSavedTokens, turns })
src/hooks/caveman-stats.js:273
↓ 2 callersFunctionexpandHome
(p)
cli/install.js:286
↓ 2 callersFunctionextract_code_blocks
Line-based fenced code block extractor. Handles ``` and ~~~ fences with variable length (CommonMark: closing fence must use same char and be
plugins/caveman/skills/caveman-compress/scripts/validate.py:41
↓ 2 callersFunctionextract_code_blocks
Line-based fenced code block extractor. Handles ``` and ~~~ fences with variable length (CommonMark: closing fence must use same char and be
skills/caveman-compress/scripts/validate.py:41
↓ 2 callersFunctionfindCompressedPairs
(dirs)
src/hooks/caveman-stats.js:128
↓ 2 callersFunctionfindRepoConfigPath
(start)
src/hooks/caveman-config.js:50
↓ 2 callersFunctionformatStats
({ outputTokens, cacheReadTokens, turns, mode, model, sessionPath, compressed, attribution })
src/hooks/caveman-stats.js:397
↓ 2 callersFunctiongetSpawnOptions
(platform = process.platform)
src/mcp-servers/caveman-shrink/spawn-options.js:13
↓ 2 callersFunctionhermesConfigDir
()
cli/install.js:624
↓ 2 callersFunctionhumanizeTokens
(n)
src/hooks/caveman-stats.js:349
↓ 2 callersFunctionmain
()
plugins/caveman/skills/caveman-compress/scripts/cli.py:32
↓ 2 callersFunctionmain
()
skills/caveman-compress/scripts/cli.py:32
↓ 2 callersFunctionmakeChalk
(noColor)
cli/install.js:167
↓ 2 callersFunctionnetLines
({ estSavedTokens, turns })
src/hooks/caveman-stats.js:279
↓ 2 callersFunctionnoopLog
()
cli/lib/openclaw.js:296
↓ 2 callersFunctionopencodeConfigDir
()
cli/install.js:694
↓ 2 callersFunctionoutputReductionPct
(savedTokens, usedTokens)
src/hooks/caveman-stats.js:341
↓ 2 callersFunctionpatchFrontmatterModel
(content, modelValue)
src/hooks/cavecrew-model-overrides.js:49
↓ 2 callersFunctionreadHistory
(filePath)
src/hooks/caveman-config.js:363
↓ 2 callersFunctionread_json
(path: Path)
tests/verify_repo.py:62
↓ 2 callersFunctionrecordModeChange
(claudeDir, newMode)
src/hooks/caveman-config.js:346
↓ 2 callersFunctionresolvePluginRoot
(hookDir)
src/hooks/cavecrew-model-overrides.js:34
↓ 2 callersFunctionresolveWorkspace
(env = process.env)
cli/lib/openclaw.js:35
↓ 2 callersFunctionspawnXplat
(cmd, args, opts)
cli/install.js:426
↓ 2 callersFunctionstripAllBootstrapBlocks
(text)
cli/lib/openclaw.js:136
↓ 2 callersFunctionstripOpencodeAgentTools
(content)
cli/lib/opencode-agent.js:20
↓ 2 callersFunctiontokenizeCommand
(command)
cli/lib/settings.js:198
↓ 2 callersFunctionvalidateHookFields
(settings)
cli/lib/settings.js:132
↓ 2 callersFunctionwholeSessionAttribution
(mode, outputTokens)
src/hooks/caveman-stats.js:249
↓ 2 callersFunctionwinQuoteIfNeeded
(a)
cli/install.js:411
↓ 2 callersFunctionwrite_text_atomic
Write ``text`` to ``path`` atomically as UTF-8. Path.write_text() truncates the destination before encoding the string — a UnicodeEncodeError
plugins/caveman/skills/caveman-compress/scripts/compress.py:116
↓ 2 callersFunctionwrite_text_atomic
Write ``text`` to ``path`` atomically as UTF-8. Path.write_text() truncates the destination before encoding the string — a UnicodeEncodeError
skills/caveman-compress/scripts/compress.py:116
↓ 1 callersFunction_frontmatter_description
(path: Path)
tests/verify_repo.py:70
↓ 1 callersFunction_is_code_line
Check if a line looks like code.
plugins/caveman/skills/caveman-compress/scripts/detect.py:42
↓ 1 callersFunction_is_code_line
Check if a line looks like code.
skills/caveman-compress/scripts/detect.py:42
↓ 1 callersFunction_is_json_content
Check if content is valid JSON.
plugins/caveman/skills/caveman-compress/scripts/detect.py:47
↓ 1 callersFunction_is_json_content
Check if content is valid JSON.
skills/caveman-compress/scripts/detect.py:47
↓ 1 callersFunction_is_yaml_content
Heuristic: check if content looks like YAML.
plugins/caveman/skills/caveman-compress/scripts/detect.py:56
↓ 1 callersFunction_is_yaml_content
Heuristic: check if content looks like YAML.
skills/caveman-compress/scripts/detect.py:56
↓ 1 callersFunction_write_target
Write to the target file, surfacing the backup location if the write itself fails. write_text_atomic already leaves the target untouched on fa
plugins/caveman/skills/caveman-compress/scripts/compress.py:156
↓ 1 callersFunction_write_target
Write to the target file, surfacing the backup location if the write itself fails. write_text_atomic already leaves the target untouched on fa
skills/caveman-compress/scripts/compress.py:156
↓ 1 callersFunctionadd
(key, tokens)
src/hooks/caveman-stats.js:232
↓ 1 callersFunctionaggregateHistory
(historyPath, sinceMs)
src/hooks/caveman-stats.js:301
↓ 1 callersFunctionappendBootstrapToSoul
(soulPath, snippet)
cli/lib/openclaw.js:163
↓ 1 callersFunctionapplyModeChange
(change)
src/plugins/opencode/plugin.js:112
↓ 1 callersFunctionattributeByMode
({ messages, modeLog, mode, flagMtimeMs, outputTokens })
src/hooks/caveman-stats.js:201
↓ 1 callersFunctionbenchmark_pair
(orig_path: Path, comp_path: Path)
plugins/caveman/skills/caveman-compress/scripts/benchmark.py:25
↓ 1 callersFunctionbenchmark_pair
(orig_path: Path, comp_path: Path)
skills/caveman-compress/scripts/benchmark.py:25
↓ 1 callersFunctionbuild_compress_prompt
(original: str)
plugins/caveman/skills/caveman-compress/scripts/compress.py:226
↓ 1 callersFunctionbuild_compress_prompt
(original: str)
skills/caveman-compress/scripts/compress.py:226
↓ 1 callersFunctionbuild_fix_prompt
(original: str, compressed: str, errors: List[str])
plugins/caveman/skills/caveman-compress/scripts/compress.py:245
↓ 1 callersFunctionbuild_fix_prompt
(original: str, compressed: str, errors: List[str])
skills/caveman-compress/scripts/compress.py:245
↓ 1 callersFunctioncall_api
(client, model, system, prompt, max_retries=3)
benchmarks/run.py:61
↓ 1 callersFunctioncall_claude
Send a prompt to Claude. Prefers the Anthropic SDK when ANTHROPIC_API_KEY is set; otherwise falls back to the ``claude --print`` CLI (which h
plugins/caveman/skills/caveman-compress/scripts/compress.py:177
↓ 1 callersFunctioncall_claude
Send a prompt to Claude. Prefers the Anthropic SDK when ANTHROPIC_API_KEY is set; otherwise falls back to the ``claude --print`` CLI (which h
skills/caveman-compress/scripts/compress.py:177
next →1–100 of 356, ranked by callers