A full-featured devtools toolkit for checking, validating, generating, formatting, linting, explaining, converting, diffing, previewing, and fixing code — with built-in logging, search, statistics, and data export.
| Command | Description |
|---|---|
| --------- | ------------- |
check | Check code and log the result; without args shows recent check entries |
validate | Validate code input; without args shows recent validate entries |
generate | Generate code from a description; without args shows recent entries |
format | Format code; without args shows recent format entries |
lint | Lint code for potential issues; without args shows recent lint entries |
explain | Explain a code snippet or concept; without args shows recent entries |
convert | Convert code between languages or formats; without args shows recent entries |
template | Create or apply code templates; without args shows recent entries |
diff | Log code differences; without args shows recent diff entries |
preview | Preview code output; without args shows recent preview entries |
fix | Record a code fix; without args shows recent fix entries |
report | Generate a code report; without args shows recent report entries |
stats | Show summary statistics across all log categories |
export | Export all data (json, csv, or txt) |
search | Search across all logged entries for a keyword |
recent | Show the 20 most recent entries from the activity log |
status | Health check — version, data dir, total entries, disk usage, last activity |
help | Show all available commands |
version | Print version (v2.0.0) |
codepal <command> [args]
Each command with arguments logs the input with a timestamp to a category-specific log file. Running a command with no arguments shows the most recent entries for that category.
~/.local/share/codepalcheck.log, lint.log, generate.log)history.log with timestampsset -euo pipefail)date, wc, grep, du, head, tail)check, lint, and validate to log issues discovered during code review sessions, then search to find them laterexplain to document your understanding of code patterns, then report to create summariesgenerate to log code generation prompts and template to track template usagediff to record code changes and fix to document bug fixes, creating an audit trailstats for activity summaries, export json to feed into dashboards, and recent for quick status checks# Check a function
codepal check "validateEmail() is missing null check"
# Generate a code snippet description
codepal generate "React hook for debounced search"
# Lint a file
codepal lint "server.js:42 — unused variable 'config'"
# Explain a concept
codepal explain "JavaScript closure in event handler"
# Record a diff
codepal diff "Refactored auth middleware to use async/await"
# Fix a bug
codepal fix "Off-by-one error in pagination logic"
# View aggregate statistics
codepal stats
# Export all logged data as CSV
codepal export csv
# Search for entries about authentication
codepal search "auth"
# Show recent activity
codepal recent
# Health check
codepal status
YYYY-MM-DD HH:MM) and persisted to ~/.local/share/codepal/.log ~/.local/share/codepal/export. with a byte count confirmationPowered by BytesAgain | bytesagain.com | hello@bytesagain.com
共 2 个版本