-
Notifications
You must be signed in to change notification settings - Fork 1
Integrations
karurikwao edited this page Jul 5, 2026
·
1 revision
ContextClean is intended to fit into daily AI-agent workflows.
Use the first-party action wrapper:
- uses: karurikwao/contextclean@main
with:
log-file: failed-log.txt
output: cleaned-context.md
max-tokens: "8000"Use ctxclean gha directly inside workflows when you install the CLI yourself:
ctxclean gha failed-log.txt --max-tokens 8000 --format markdown --output cleaned.md --forceTypical flow:
ctxclean repo . --max-tokens 12000 --format markdown --output context.md --force
ctxclean gha build.log --max-tokens 8000 --output failed-log.md --forceThen provide the generated file to the agent.
Start stdio MCP mode:
ctxclean mcpMCP tools:
contextclean_cleancontextclean_report
See docs/MCP_COMPATIBILITY.md in the repository for client-specific notes.
Wrap common commands:
ctxrun --max-tokens 8000 npm test
ctxrun --format markdown pytest
ctxrun --format markdown cargo testThis keeps successful output unchanged and only cleans failures.
The Python wrapper lives under:
packages/python
It provides helper functions for calling the CLI from Python workflows. Publishing to PyPI is a later release step.
Examples live under:
examples/langchain_helper.py
examples/llamaindex_helper.py
Use these as starting points for local preprocessing before loading documents or logs into an agent pipeline.