Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
95acd2f
Add plan spec for agent CLI logging improvements
claude Jan 4, 2026
9bdc129
Expand agent CLI logging plan with library support and console improv…
claude Jan 4, 2026
21f6c59
Update logging plan: default mode now includes tool details and sourc…
claude Jan 4, 2026
bbd2623
Resolve open questions in agent CLI logging plan
claude Jan 4, 2026
cc4b398
Update logging levels: move more info to default, verbose for operati…
claude Jan 4, 2026
89ee085
Add agent reasoning capture to CLI logging plan
claude Jan 4, 2026
041d5a2
Add wire format content selection and TTY handling clarifications
claude Jan 4, 2026
15408d6
Add comprehensive validation plan for CLI logging improvements
claude Jan 4, 2026
663a998
Add comprehensive edge case, error, security, and compatibility testing
claude Jan 4, 2026
68f8879
feat(cli): Implement enhanced CLI logging with multiple log levels
claude Jan 4, 2026
a5028d7
feat: Add reasoning capture to wire format and clean up validation spec
claude Jan 4, 2026
250c1f5
feat: Add --wire-log flag to run command and update documentation
claude Jan 4, 2026
60df295
feat(cli): improve logging system with trace file support and fixes
claude Jan 4, 2026
b17f187
fix(cli): add --trace support to fill command and update tests
claude Jan 5, 2026
31764e9
docs: update validation plan with --trace support for fill command
claude Jan 5, 2026
c7e4cad
refactor(cli): consolidate --wire-log into --trace and create shared …
claude Jan 5, 2026
cfd4805
feat(cli): add consistent --trace support to run command
claude Jan 5, 2026
730e24e
refactor: move pure string utilities to src/utils/formatUtils.ts
claude Jan 5, 2026
0b789ae
chore: remove unnecessary tsx devDependency
claude Jan 5, 2026
e477966
fix(cli): improve reasoning content extraction and display
claude Jan 5, 2026
2600976
test(cli): add comprehensive logging tryscript tests
claude Jan 5, 2026
d8cb695
chore: close PR84 review comment beads - all addressed
claude Jan 5, 2026
5b3f4b7
docs: update validation plan with manual test results
claude Jan 5, 2026
beb4676
fix: add trace file support to fill command callbacks
claude Jan 5, 2026
d4c1ee3
docs: comprehensive validation plan update with manual test results
claude Jan 5, 2026
569bf03
docs: update validation plan with successful live agent test results
claude Jan 5, 2026
80a327c
fix: fire tool callbacks for server-side tools (web_search)
claude Jan 6, 2026
53c776e
chore: merge upstream main (PR #91 coverage improvements)
claude Jan 6, 2026
469619b
chore: merge upstream main (badge updates)
claude Jan 6, 2026
a8f4903
chore: merge upstream main (PR #92 coverage improvements)
claude Jan 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,39 @@ The CLI is built with Commander and uses these conventions:

- **@clack/prompts** for interactive UI

- Support `--verbose`, `--quiet`, `--dry-run` flags
- Support `--verbose`, `--quiet`, `--debug`, `--dry-run` flags

### Log Levels

The CLI supports four log levels, controlled by flags or `MARKFORM_LOG_LEVEL` environment variable:

| Level | Flag | Description |
| --- | --- | --- |
| `quiet` | `--quiet` | Suppress non-essential output |
| `default` | (none) | Model info, tool calls, result summaries, token counts |
| `verbose` | `--verbose` | Adds harness config, full result listings |
| `debug` | `--debug` | Adds full prompts, raw tool inputs/outputs (truncated) |

### Wire Format Capture

Use `--wire-log <file>` to capture the full LLM request/response for debugging:

```bash
# Capture wire format to YAML file
pnpm markform fill form.md --model=openai/gpt-5-mini --wire-log session-wire.yaml
pnpm markform research form.md --model=google/gemini-2.5-flash --wire-log session-wire.yaml
pnpm markform run form.md --wire-log session-wire.yaml

# Or use environment variable
MARKFORM_WIRE_LOG=session.yaml pnpm markform research form.md --model=openai/gpt-5-mini
```

The wire log captures:
- System and context prompts sent to the LLM
- Tool definitions
- Tool calls and results per step
- Reasoning content (for models with extended thinking)
- Token usage (including reasoning tokens)

## Testing

Expand Down
Loading