Repository navigation
feat: Pi 1.7.0 harness row with settings writer and log parser - #280
Merged
Merged
Conversation
- pi row (@earendil-works/pi-coding-agent 1.7.0): pi --mode json -p
--no-approve --offline --session-id {session_id} for launch and resume,
PI_CODING_AGENT_DIR=<home>/agent, provider-table logins (deepseek and
openrouter both list pi), --append-system-prompt for bots, --model and
--thinking
- ConfigFile::Pi writes agent/settings.json (defaultProvider and
defaultModel of the first held provider, no key)
- LogFormat::Pi: per-run usage from assistant message_end (provider/model
named in the log, Pi's cost), 401/402/429 failures from errorMessage,
activity, and JSONL transcript retention (agent/sessions)
- Pi exits 0 after a failed model call: LogFormat::exit_failure reads its
failure on a zero exit too (task and bot runs)
- Telegram: Set up Pi through the shared provider onboarding; tool buttons
three a row
- Fixtures captured from Pi 1.7.0 against a local mock provider
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/axe-telegram/src/telegram.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan row P1 (store doc harvis/research/20261201-open-harness-runtimes.md, sections 3, 5, 6 and 7; task 2375).
What
piharness row (@earendil-works/pi-coding-agent1.7.0,Harness::package). Launch and resume both runpi --mode json -p --no-approve --offline --session-id {session_id} {prompt}:--session-idcreates the session on the first run and resumes it after.--no-approveignores Pi files in the run folder.--offlineskips the pi.dev update check and catalog refresh, since axe pins the version.PI_CODING_AGENT_DIR=<home>/agent.deepseekandopenrouternow listpi. Bots get--append-system-prompt {system_prompt_file}. Models and effort go in as--model provider/modeland--thinking {effort}.ConfigFile::Pi): writesagent/settings.jsonwithdefaultProvideranddefaultModelof the first held provider, never a key. It uses the same create/login/drop/load hooks as OpenCode.LogFormat::Pi:message_endlines, one run's own calls (per_run), keyed by theprovider/modelthe log names, using Pi's own cost. Reasoning is already in output and is also counted as thinking.errorMessage(status prefix401:or401). 401 isauth_invalid, 402 isout_of_credit, 429/5xx isprovider_unavailable. A later successful call clears an earlier failure.agent/sessions/<cwd>/<time>_<id>.jsonl.LogFormat::exit_failurereads Pi's failure on a zero exit too, for task runs (dispatch.rs) and bot runs (bots.rs). Other CLIs are unchanged and are still classified only on non-zero exits.concepts/runtimes.md,concepts/routines-bots-goals.md,guides/runtimes-from-telegram.mdandreference/config.md.Verify
cargo fmt --check-D warningscargo test --lockednpm ci && npm run buildcheck_doc_linksfixtures/pi/(real Pi 1.7.0 output against a local mock: DeepSeek run, resume with a tool call, thinking, OpenRouter run and resume, 401, 402, 429)pi_runs_are_per_run_and_name_their_provider_modela_zero_exit_fails_only_for_pia_pi_runtime_writes_its_settings_from_its_keyspi_transcripts_are_found_in_the_agent_directorypi_settings_name_the_first_provider_and_its_default_modelpi_sets_up_like_opencodeknownunderdeepseek/deepseek-flashwith per-run deltas (totals 176 -> 352).🤖 Generated with Claude Code