### Install Pi Coding Agent Source: https://github.com/ananthakumaran/pimacs.el/blob/master/README.md Install the Pi agent globally via npm and start it to configure your provider with /login. ```bash npm install -g --ignore-scripts @earendil-works/pi-coding-agent # Start Pi and run `/login` to configure your provider pi ``` -------------------------------- ### Install pimacs.el with use-package Source: https://github.com/ananthakumaran/pimacs.el/blob/master/README.md Add MELPA Stable to package archives and install pimacs with use-package. ```elisp (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t) (use-package pimacs :ensure t) ``` -------------------------------- ### Example section log output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-count-2-all.txt Shows a sample log output with sections for Build, Logs, Server, Worker, and Deploy, including job status and deployment messages. ```text [+] Build [-] Logs [+] Server [-] Worker Job started Job completed [-] Deploy Uploading artifacts... Restarting services... ``` -------------------------------- ### Shell commands: echo, ls, npm install Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.out.txt A series of shell commands demonstrating fenced code block rendering for shell scripts. ```shell $ echo "Hello World" $ ls -la $ npm install ``` -------------------------------- ### Bash tool result: started and Cancelled Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/abort-bash-copy.txt Output of the bash command after cancellation: 'started' followed by 'Cancelled'. ```text started Cancelled ``` -------------------------------- ### JSON fenced code block: package.json example Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A JSON example showing a package.json structure with a dependency on lodash. ```json { "name": "example", "version": "1.0.0", "dependencies": { "lodash": "^4.17.21" } } ``` -------------------------------- ### Bash fenced code block: shell commands Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Shell commands demonstrating echo, listing files, and installing npm packages. ```bash # Shell commands $ echo "Hello World" $ ls -la $ npm install ``` -------------------------------- ### JavaScript code block with line numbers: highlightLines Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A JavaScript example with line highlighting on lines 1, 3-5, demonstrating a function that sums numbers. ```javascript function highlightLines() { const a = 1; // Line 1 const b = 2; // Line 2 const c = 3; // Line 3 (highlighted) const d = 4; // Line 4 (highlighted) const e = 5; // Line 5 (highlighted) return a + b + c + d + e; } ``` -------------------------------- ### Run simple codemode script that outputs recovered Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-script-error-copy.txt This script is run once in codemode and successfully outputs 'recovered'. It is a minimal example of a successful codemode execution. ```javascript text('recovered'); ``` -------------------------------- ### JavaScript fenced code block: greet function Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A JavaScript example defining a greet function that logs a greeting to the console. ```javascript // JavaScript example function greet(name) { console.log(`Hello, ${name}!`); } greet("World"); ``` -------------------------------- ### Bash command: printf 'started\n'; sleep 120 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/abort-bash-copy.txt Starts a bash command that prints 'started' and then sleeps for 120 seconds. This command is intended to be cancelled, as shown by the subsequent tool result and error. ```bash printf 'started\n'; sleep 120 ``` -------------------------------- ### Python fenced code block: fibonacci generator Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A Python example implementing a Fibonacci sequence generator using a generator function. ```python # Python example def fibonacci(n): a, b = 0, 1 for _ in range(n): yield a a, b = b, a + b print(list(fibonacci(10))) ``` -------------------------------- ### Rust fenced code block: vector doubling Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A Rust example that doubles a vector of integers using iterators and collects the result. ```rust // Rust example fn main() { let numbers = vec![1, 2, 3, 4, 5]; let doubled: Vec = numbers.iter().map(|x| x * 2).collect(); println!("{:?}", doubled); } ``` -------------------------------- ### Codemode script with pending bash and error Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-cancel-pending.txt This script is run exactly once in codemode. It starts a bash command that sleeps for 10 seconds, then runs cowsay, and finally throws an error. The bash command is cancelled when the error is thrown, and the script fails with the error 'stop-script'. ```javascript const pending = tools.bash({command: 'sleep 10; printf unreachable'}); await tools.cowsay({message: 'while-bash-runs'}); throw new Error('stop-script'); ``` -------------------------------- ### Create test.txt with content Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt Creates a file named test.txt with sample text content. The write command outputs 'Successfully wrote to test.txt'. ```text write test.txt This is a test file. It was just created with some text content. This might be useful for testing purposes. Successfully wrote to test.txt ``` -------------------------------- ### Create file test.txt with write Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt The assistant uses the write function to create a new file named test.txt. The user did not specify content, so the file is created empty or with basic content. ```plaintext write test.txt ``` -------------------------------- ### Read README.md file Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Output of reading the README.md file, which contains a sample project description and file listing. ```text # Sample Project This is a sample project used for integration testing. ## Files - `utils.py` - Utility functions - `config.json` - Configuration file - `notes.txt` - Some notes ``` -------------------------------- ### Grep for 'sample' with grep Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt The assistant uses the grep function to search for the pattern 'sample' in the project files. The output shows matches found in README.md. ```plaintext grep /sample project/ ``` ```plaintext README.md:3: This is a sample project used for integration testing. ``` -------------------------------- ### Write tool call to create test.txt Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt Creates a new file named test.txt with the provided text content. The tool result confirms success with 'Successfully wrote to test.txt'. ```plaintext This is a test file. It was just created with some text content. This might be useful for testing purposes. ``` -------------------------------- ### List files with ls Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt The assistant uses the ls function to list files in the current directory. The output shows the files and directories present. ```plaintext ls ``` ```plaintext .dir-locals.el .gitignore .project agent/ config.json green-triangle.png notes.txt README.md utils.py ``` -------------------------------- ### List Directory Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Lists the contents of the current directory, showing the files present. ```text ls . .dir-locals.el .gitignore .project agent/ codemode-test.py config.json green-triangle.png notes.txt README.md utils.py ``` -------------------------------- ### Find Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Finds files matching 'codemode-test.py' in the current directory, output shows the file. ```text find /codemode-test.py/ in . codemode-test.py ``` -------------------------------- ### User instruction to run bash command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/bash-ansi-colors-search.txt User message instructing to run the exact bash command that prints 'red' in red. ```bash printf '\033[31mred\033[0m\n' ``` -------------------------------- ### Python code from utils.py Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt The contents of utils.py as displayed in the assistant's response. It defines a greet function, an add function, and a Counter class with increment and reset methods. ```python def greet(name): return f"Hello, {name}!" def add(a, b): return a + b class Counter: def __init__(self): self.count = 0 def increment(self): self.count += 1 return self.count def reset(self): self.count = 0 ``` -------------------------------- ### Write File Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Writes the file codemode-test.py with content 'alpha\nbeta\ngamma\n'. Output confirms success. ```text write codemode-test.py alpha beta gamma ``` -------------------------------- ### Read missing file error Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Error output when attempting to read a non-existent file 'codemode-missing.txt'. Shows ENOENT error with the project directory path. ```text ENOENT: no such file or directory, access 'PROJECT_DIR/codemode-missing.txt' ``` -------------------------------- ### Delete test.txt (success) Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt After realizing the user meant 'test.txt', the assistant deletes it successfully. The command produces no output. ```bash rm test.txt ``` ```output (no output) ``` -------------------------------- ### Cowsay Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Runs the cowsay tool with message 'nested-cow', output shows the ASCII art cow. ```text cowsay (:message "nested-cow") ______ < nested-cow > ------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || ``` -------------------------------- ### User request to use cowsay tool Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/custom-tool-search.txt User message instructing to use the cowsay tool to say hello. ```plaintext user> use the cowsay tool to say hello ``` -------------------------------- ### Run section folding fixtures with make test Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/README.md Command to run the section folding fixtures using make with the MATCH variable set to pimacs-section-autohide-fixtures. ```sh make test MATCH=pimacs-section-autohide-fixtures ``` -------------------------------- ### Read utils.py file Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt Reads the contents of utils.py, which defines a greet function, an add function, and a Counter class with increment and reset methods. ```python read utils.py def greet(name): return f"Hello, {name}!" def add(a, b): return a + b class Counter: def __init__(self): self.count = 0 def increment(self): self.count += 1 return self.count def reset(self): self.count = 0 ``` -------------------------------- ### Tool call to cowsay with message Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/custom-tool-search.txt Tool call to the cowsay tool with the message 'hello'. ```plaintext cowsay {"message":"hello"} ``` -------------------------------- ### Mermaid Git Graph Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Shows a git graph with commits, a branch, and a merge. Use this syntax to visualize git history. ```mermaid gitGraph commit branch develop commit commit checkout main merge develop commit ``` -------------------------------- ### Grep Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Searches for 'delta' in codemode-test.py, output shows the matching line. ```text grep /delta/ in codemode-test.py codemode-test.py:3: delta ``` -------------------------------- ### Read File with Offset and Limit Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Reads lines 2-3 of codemode-test.py, showing 'beta' and 'gamma', with a note that there is 1 more line. ```text read codemode-test.py:2-3 beta gamma [1 more lines in file. Use offset=4 to continue.] ``` -------------------------------- ### Run script with max_output_tokens option and truncated output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-output.txt Executes a script with a @options comment setting max_output_tokens to 16, causing the output to be truncated. The codemode output shows a warning and partial output. ```javascript // @options: {"max_output_tokens": 16} text('word '.repeat(200)); ``` ```text Warning: truncated output (original token count: 250) Total output lines: 1 word word word word word word wo…234 tokens truncated…d word word word word word word [Full output: CODEMODE_OUTPUT (read with offset/limit)] ``` -------------------------------- ### Run failing codemode script with missing file read Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-script-error-copy.txt This script is intended to be run exactly once in codemode. It calls text, tools.cowsay, and tools.read with a missing path, causing an ENOENT error. The error output shows the script failed and lists the tool calls made before the failure. ```javascript text('before-failure'); await tools.cowsay({message: 'before-failure'}); await tools.read({path: 'codemode-missing.txt'}); text('unreachable'); ``` -------------------------------- ### Run bash command and output result Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-resume-tree.txt Executes a bash command using the tools.bash API and prints the output. The command is 'printf nested-ok' and the result is displayed via text(). ```javascript const result = await tools.bash({command: 'printf nested-ok'}); text(result.output); ``` -------------------------------- ### Run parallel tools with Promise.allSettled Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Executes multiple tools (bash, read, cowsay) in parallel using Promise.allSettled, then outputs the status of each promise. The script is run once without retrying or fixing errors. ```javascript const results = await Promise.allSettled([ tools.bash({command: 'printf first; sleep 0.2; printf second'}), tools.read({path: 'README.md'}), tools.read({path: 'codemode-missing.txt'}), tools.bash({command: 'printf failed-command; exit 7'}), tools.cowsay({message: 'parallel-cow'}) ]); text(results.map(r => r.status)); ``` -------------------------------- ### Find tool call to locate JSON files Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt Finds files with a .json extension using the find tool with a glob pattern. The result lists three files: agent/auth.json, agent/settings.json, and config.json. ```plaintext (:pattern "*.json") ``` -------------------------------- ### Run successful script with codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-script-error.txt Executes a simple script that outputs 'recovered'. The output shows the result and the assistant confirms completion. ```javascript text('recovered'); ``` ```text codemode output recovered ``` -------------------------------- ### Read File After Edit Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Reads the entire codemode-test.py after the edit, showing the updated content. ```text read codemode-test.py alpha beta delta ``` -------------------------------- ### Run JavaScript script with console, text, and return Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-output-resume-tree.txt Use this snippet to test codemode's ability to execute a script exactly once and capture console output, text output, and a return value. The script logs 'console-output', outputs 'text-output', and returns an object with answer 42. ```javascript console.log('console-output'); text('text-output'); return {answer: 42}; ``` -------------------------------- ### Set fixture messages to assistant and notify Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-conversation-recency-predicate.txt Sets the fixture messages to include only assistant and notify types. The output shows the resulting section tree with Bash and Assistant 1 expanded, while Assistant 2 and Notify 1 are collapsed. ```emacs-lisp (setq pimacs-section-fixture-messages '(assistant assistant notify)) ``` ```text [-] Codemode script [-] Replace 1 arguments [-] Replace 2 arguments [+] Bash [+] Assistant 1 [-] Assistant 2 body [-] Notify 1 body ``` -------------------------------- ### Run JavaScript with console.log and text() via codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-output.txt Executes a script that logs to console, outputs text, and returns an object. The codemode output shows text outputs and the returned object, with console output wrapped in tags. ```javascript console.log('console-output'); text('text-output'); return {answer: 42}; ``` ```text ==> text 1/2 <== text-output ==> text 2/2 <== {"answer":42} console-output ``` -------------------------------- ### Run simple variable assignment via codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-output.txt Executes a script that assigns a constant value. The codemode output is empty, indicating no output was produced. ```javascript const value = 42; ``` -------------------------------- ### Configure pimacs-section-autohide-count and filters Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-count-1-all.txt Sets pimacs-section-autohide-count to 1, pimacs-section-autohide-filter to 'all, and pimacs-section-initial-hide-filter to nil. Use this to enable autohiding of sections after one click and apply the filter to all sections. ```emacs-lisp (setq pimacs-section-autohide-count 1 pimacs-section-autohide-filter 'all pimacs-section-initial-hide-filter nil) ``` -------------------------------- ### Read tool call to read utils.py Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt Reads the contents of the utils.py file using the read tool. The result contains the full Python source code of the file. ```plaintext (:path "utils.py") ``` -------------------------------- ### Ruby function with syntax highlighting Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A Ruby function definition with syntax highlighting annotations for keywords and function names. ```ruby def foo(x) return 3 end ``` -------------------------------- ### Edit File Command Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt Edits codemode-test.py, replacing 'gamma' with 'delta'. Shows the diff and success message. ```diff edit codemode-test.py @@ -1,3 +1,3 @@ alpha beta -gamma +delta ``` -------------------------------- ### Bash command execution and output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode.txt This shows the bash command executed by the script and its output. The command 'printf nested-ok' produces 'nested-ok'. ```bash printf nested-ok ``` ```text nested-ok ``` -------------------------------- ### Bash command to delete test.txt Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt Deletes the file test.txt using the bash command. The tool result shows no output, indicating success. ```bash rm test.txt ``` -------------------------------- ### Section tree with compile initially hidden (default) Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/initial-hide-predicate-updates.txt Shows the section tree when pimacs-section-fixture-protect-compile is not set (or nil). The compile section is initially hidden (shown as [+] Compile) because the initial-hide-filter includes compile and the autohide filter does not protect it. ```text [-] Build [+] Compile [-] Tests [-] Unit Tests test-auth ... ok test-db ... ok [-] Integration Tests api-flow ... running [-] Logs [-] Server Listening on :8080 Connected client #42 Connected client #43 Connected client #44 Connected client #45 [-] Worker Job started Job completed [-] Deploy Uploading artifacts... Restarting services... ``` -------------------------------- ### Attempt to delete text.txt (fails) Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt The user requested to delete 'text.txt', but this file does not exist. The bash command 'rm text.txt' fails with an error and exits with code 1. ```bash rm text.txt ``` ```output rm: cannot remove 'text.txt': No such file or directory ``` -------------------------------- ### Cowsay tool call with message Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-cancel-pending-copy.txt This is the tool call to cowsay with the message 'while-bash-runs'. It is executed while the bash command is pending. ```lisp (:message "while-bash-runs") ``` -------------------------------- ### Test results output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/test-summary.in.markdown The test output shows that all 11 tests passed. ```text 11 tests, 11 passed ``` -------------------------------- ### Configure pimacs-section-autohide-filter and pimacs-section-initial-hide-filter Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/initial-hide-predicate-updates.txt Sets pimacs-section-autohide-count to 100, defines a filter that hides sections unless they are unit-tests or (when pimacs-section-fixture-protect-compile is non-nil) compile sections, and sets pimacs-section-initial-hide-filter to include only compile sections. This configuration is used to demonstrate the initial hide behavior. ```emacs-lisp (setq pimacs-section-autohide-count 100 pimacs-section-autohide-filter (lambda (section) (not (or (eq (pimacs-section-type section) 'unit-tests) (and pimacs-section-fixture-protect-compile (eq (pimacs-section-type section) 'compile))))) pimacs-section-initial-hide-filter '(:include compile)) ``` -------------------------------- ### Codemode Tool Script Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt The initial script to run exactly once, using codemode tools to write, read, edit, grep, find, ls, and cowsay, ending with text('tools-done'). ```javascript await tools.write({path: 'codemode-test.py', content: 'alpha\nbeta\ngamma\n'}); await tools.read({path: 'codemode-test.py', offset: 2, limit: 2}); await tools.edit({path: 'codemode-test.py', oldText: 'gamma', newText: 'delta'}); await tools.read({path: 'codemode-test.py'}); await tools.grep({pattern: 'delta', path: 'codemode-test.py'}); await tools.find({pattern: 'codemode-test.py', path: '.'}); await tools.ls({path: '.'}); await tools.cowsay({message: 'nested-cow'}); text('tools-done'); ``` -------------------------------- ### Run image read script in codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-image-read.txt Executes the provided JavaScript code in codemode to read an image file and output a text marker. The script is run once without retrying or fixing errors. ```javascript await tools.read({path: 'green-triangle.png'}); text('image-read'); ``` -------------------------------- ### Configure pimacs-section-autohide-count and filters Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-count-2-all.txt Sets pimacs-section-autohide-count to 2, pimacs-section-autohide-filter to 'all', and pimacs-section-initial-hide-filter to nil. Use this to control autohiding behavior in pimacs sections. ```emacs-lisp (setq pimacs-section-autohide-count 2 pimacs-section-autohide-filter 'all pimacs-section-initial-hide-filter nil) ``` -------------------------------- ### Mermaid Sequence Diagram Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Shows a sequence diagram with participants Alice and Bob exchanging messages, including a note. Use this syntax to model interactions between participants. ```mermaid sequenceDiagram participant Alice participant Bob Alice->>Bob: Hello Bob! Bob-->>Alice: Hi Alice! Note right of Bob: Bob thinks Bob->>Alice: How are you? ``` -------------------------------- ### Codemode output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode.txt The output of the codemode execution is 'nested-ok'. ```text nested-ok ``` -------------------------------- ### Bash command output for 'printf first; sleep 0.2; printf second' Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Output of the bash command that prints 'first', sleeps 0.2 seconds, then prints 'second'. The output is 'firstsecond'. ```bash printf first; sleep 0.2; printf second ``` ```text firstsecond ``` -------------------------------- ### Run failing script with codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-script-error.txt Executes a script that fails because it tries to read a missing file. The output shows the error and the tool calls made before the failure. ```javascript text('before-failure'); await tools.cowsay({message: 'before-failure'}); await tools.read({path: 'codemode-missing.txt'}); text('unreachable'); ``` ```text cowsay (:message "before-failure") ______ < before-failure > ------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || read codemode-missing.txt ENOENT: no such file or directory, access 'PROJECT_DIR/codemode-missing.txt' codemode output Script failed Wall time DURATION seconds Output: before-failure Script error: Error: ENOENT: no such file or directory, access 'PROJECT_DIR/codemode-missing.txt' Tool calls made before the failure (they are not undone): cowsay (ok), read (error) ``` -------------------------------- ### Configure autohide with filter and fixture buffer Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-conversation-recency-predicate.txt Sets autohide count to 2, hides tool-call sections except those named 'replace', disables initial hide filter, and sets fixture buffer to 'conversation. The output shows the resulting section tree with hidden sections collapsed. ```emacs-lisp (setq pimacs-section-autohide-count 2 pimacs-section-autohide-filter (lambda (section) (not (and (eq (pimacs-section-type section) 'tool-call) (equal (pimacs-section--tool-name section) "replace")))) pimacs-section-initial-hide-filter nil pimacs-section-fixture-buffer 'conversation) ``` ```text [-] Codemode script [-] Replace 1 arguments [-] Replace 2 arguments [-] Bash arguments [-] Result tests passed ``` -------------------------------- ### Error: Aborted Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/abort-bash-copy.txt Error message indicating the operation was aborted. ```text Aborted ``` -------------------------------- ### Section tree with compile visible (protect-compile t) Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/initial-hide-predicate-updates.txt Shows the section tree after setting pimacs-section-fixture-protect-compile to t. The compile section is not hidden (shown as [-] Compile) because the autohide filter protects it from being hidden. ```text [-] Build [-] Compile Compiling foo.c Compiling bar.c [-] Tests [-] Unit Tests test-auth ... ok test-db ... ok [-] Integration Tests api-flow ... running [-] Logs [-] Server Listening on :8080 Connected client #42 Connected client #43 Connected client #44 Connected client #45 [-] Worker Job started Job completed [-] Deploy Uploading artifacts... Restarting services... ``` -------------------------------- ### Set pimacs-section-fixture-protect-compile to nil Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/initial-hide-predicate-updates.txt Sets pimacs-section-fixture-protect-compile to nil, which disables the protection for compile sections. This is used to demonstrate that the compile section becomes hidden again. ```emacs-lisp (setq pimacs-section-fixture-protect-compile nil) ``` -------------------------------- ### Remove renderer customization (breaking change) Source: https://github.com/ananthakumaran/pimacs.el/blob/master/CHANGELOG.md This snippet shows the previously suggested renderer customization that is now removed. Markdown rendering is enabled by default and `pimacs--render-thinking-markdown` has been removed. ```elisp (setq pimacs-markdown-renderer #'pimacs--render-markdown pimacs-thinking-renderer #'pimacs--render-thinking-markdown) ``` -------------------------------- ### Bash command with exit code 7 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Output of a bash command that prints 'failed-command' and exits with code 7, demonstrating error handling in parallel execution. ```bash printf failed-command; exit 7 ``` ```text failed-command Command exited with code 7 ``` -------------------------------- ### Delete test.txt using bash rm Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt Deletes the test.txt file using the bash command 'rm test.txt'. No output is produced on success. ```bash bash rm test.txt ``` -------------------------------- ### Set initial hide filter to include c and d Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-initial-hidden-leaves-do-not-count.txt Configures the fixture buffer with autohide count 2 and an initial hide filter that includes sections c and d. This causes sections C and D to be initially hidden. ```emacs-lisp (setq pimacs-section-fixture-buffer 'letters pimacs-section-autohide-count 2 pimacs-section-initial-hide-filter '(:include c d)) ``` -------------------------------- ### Tree view with autohide count 2 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Displays the resulting tree when pimacs-section-autohide-count is 2. Nodes A and D are visible, while B and C are hidden under A. ```text [-] A [+] B [-] C body [-] D body ``` -------------------------------- ### Backtick Fence with Tilde Inside Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A backtick-fenced block containing a line with three tildes. ```plaintext aaa ~~~ ``` -------------------------------- ### Mermaid Class Diagram Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Defines a class diagram with inheritance relationships and class attributes/methods. Use this syntax to model class structures. ```mermaid classDiagram Animal <|-- Dog Animal <|-- Cat Animal: +name: String Animal: +makeSound() Dog: +breed: String Cat: +color: String ``` -------------------------------- ### Code block 'foo' Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A code block containing 'foo'. ```plaintext foo ``` -------------------------------- ### Run bash loop to echo x 2001 times Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-bash-truncation-resume-tree.txt Executes a bash for loop that echoes 'x' 2001 times. Use this to test truncation and resume behavior in a terminal or shell environment. ```bash for i in {1..2001}; do echo x; done ``` -------------------------------- ### Codemode output statuses Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt The final output from codemode showing the statuses of each promise: fulfilled, fulfilled, rejected, fulfilled, fulfilled. ```text ["fulfilled","fulfilled","rejected","fulfilled","fulfilled"] ``` -------------------------------- ### Set pimacs-section-autohide-count to 2 with filter Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Configures pimacs-section-autohide-count to 2, sets the autohide filter to 'all, clears the initial hide filter, and selects the leaf-demo fixture buffer. ```emacs-lisp (setq pimacs-section-autohide-count 2 pimacs-section-autohide-filter 'all pimacs-section-initial-hide-filter nil pimacs-section-fixture-buffer 'leaf-demo) ``` -------------------------------- ### Tilde Fence with Backtick Inside Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A tilde-fenced block containing a line with three backticks. ```plaintext aaa ``` ``` -------------------------------- ### Tree view with autohide count 1 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Shows the tree when pimacs-section-autohide-count is 1. Only node A is hidden, while D remains visible. ```text [+] A [-] D body ``` -------------------------------- ### Codemode Output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-tools-live.txt The final output of the codemode session, which is 'tools-done'. ```text codemode output tools-done ``` -------------------------------- ### Configure pimacs-section-autohide-filter to hide unit-tests sections Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-predicate-nested-sections.txt Sets pimacs-section-autohide-count to 0, pimacs-section-autohide-filter to a lambda that returns true for sections whose type is not 'unit-tests', and pimacs-section-initial-hide-filter to nil. This configuration hides unit-tests sections while keeping other sections visible. ```emacs-lisp (setq pimacs-section-autohide-count 0 pimacs-section-autohide-filter (lambda (section) (not (eq (pimacs-section-type section) 'unit-tests))) pimacs-section-initial-hide-filter nil) ``` -------------------------------- ### Code block with multiple lines Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A code block containing 'foo' and 'bar' on separate lines. ```plaintext foo bar ``` -------------------------------- ### Show section D via visibility override Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-initial-hidden-leaves-do-not-count.txt Sets a visibility override to show section D. This overrides the initial hide filter, making D visible while C remains hidden. ```emacs-lisp (setq pimacs-section-fixture-visibility '((("D") . :show))) ``` -------------------------------- ### Cowsay message output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-parallel.txt Output of the cowsay tool with the message 'parallel-cow', displaying an ASCII cow. ```text ______ < parallel-cow > ------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || ``` -------------------------------- ### Run invalid codemode tool calls script Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-invalid-calls.txt This script is executed once via codemode. It uses Promise.allSettled to run four tool calls: write with missing content, edit with non-existent text, read with out-of-bounds offset, and bash with a timeout. The output shows all four promises rejected. ```javascript const results = await Promise.allSettled([ tools.write({path: 'codemode-invalid.txt'}), tools.edit({path: 'README.md', oldText: 'codemode-not-found-marker', newText: 'never-written'}), tools.read({path: 'README.md', offset: 9999}), tools.bash({command: 'sleep 2', timeout: 0.05}) ]); text(results.map(r => r.status)); ``` ```text ["rejected","rejected","rejected","rejected"] ``` -------------------------------- ### Tree view with autohide count 3 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Displays the tree when pimacs-section-autohide-count is 3. Nodes A, B, and C are hidden, while D remains visible. ```text [-] A [-] B body [-] C body [-] D body ``` -------------------------------- ### Set pimacs-section-autohide-count to 3 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Sets pimacs-section-autohide-count to 3, hiding three levels of nodes. ```emacs-lisp (setq pimacs-section-autohide-count 3) ``` -------------------------------- ### Renamed helper function name Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/test-summary.in.markdown The helper function was renamed to `pimacs-markdown-table-tests--call-with-mapped-widths`. This is the new name used in the codebase. ```elisp pimacs-markdown-table-tests--call-with-mapped-widths ``` -------------------------------- ### Set autohide count to 1 with exclude filter Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-excluded-parent-children-still-count.txt Configures pimacs-section-autohide-count to 1, sets an autohide filter to exclude section 'a', and initializes the fixture buffer to 'leaf-demo'. The resulting display shows sections B and C hidden under A, while D remains visible. ```emacs-lisp (setq pimacs-section-autohide-count 1 pimacs-section-autohide-filter '(:exclude a) pimacs-section-initial-hide-filter nil pimacs-section-fixture-buffer 'leaf-demo) ``` ```text [-] A [+] B [+] C [-] D body ``` -------------------------------- ### Bash command output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-cancel-pending.txt The bash command that is run as part of the codemode script. It sleeps for 10 seconds and then prints 'unreachable'. The command is aborted before completion. ```bash sleep 10; printf unreachable ``` -------------------------------- ### Inline code: console.log Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Shows inline code formatting for a JavaScript console.log statement. ```javascript console.log("hello") ``` -------------------------------- ### Cowsay command output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-cancel-pending.txt The cowsay command that is run as part of the codemode script. It outputs a cow saying 'while-bash-runs'. ```text ______ < while-bash-runs > ------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || ``` -------------------------------- ### Codemode script failure output Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-cancel-pending.txt The output of the codemode script after it fails. It shows the script error and the tool calls made before the failure. ```text Script failed Wall time DURATION seconds Output: Script error: Error: stop-script at (codemode.js:3:11) Tool calls made before the failure (they are not undone): bash (cancelled), cowsay (ok) ``` -------------------------------- ### Mermaid Flowchart Diagram Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown Defines a flowchart with a decision node and two branches leading to an end node. Use this syntax to create flowcharts in Mermaid. ```mermaid flowchart TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E ``` -------------------------------- ### Hide all sections with autohide filter and visibility override Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-initial-hidden-leaves-do-not-count.txt Sets the autohide filter to 'all' and adds a visibility override to hide section D. This results in both C and D being hidden. ```emacs-lisp (setq pimacs-section-autohide-filter 'all pimacs-section-fixture-visibility '((("D") . :hide))) ``` -------------------------------- ### Edit test.txt to remove 3rd line Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics.txt Uses the edit tool to remove the third line from test.txt. The diff shows the removal of the line 'It was just created with some text content.' and confirms 'Successfully replaced 1 block(s) in test.txt.' ```diff edit test.txt @@ -1,4 +1,3 @@ This is a test file. -It was just created with some text content. This might be useful for testing purposes. \ No newline at end of file ``` -------------------------------- ### Inline code 'aa' Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt Inline code containing 'aa'. ```plaintext aa ``` -------------------------------- ### Set autohide count to 2 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-conversation-recency-predicate.txt Sets autohide count to 2, hiding sections beyond the first two. The output shows Bash and Assistant 1 expanded, while Assistant 2 and Notify 1 are collapsed. ```emacs-lisp (setq pimacs-section-autohide-count 2) ``` ```text [-] Codemode script [-] Replace 1 arguments [-] Replace 2 arguments [+] Bash [+] Assistant 1 [-] Assistant 2 body [-] Notify 1 body ``` -------------------------------- ### Indented code block with mixed indentation Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A code block with varying indentation levels, showing how indentation is preserved. ```plaintext aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa ``` -------------------------------- ### Fenced Code with Two Leading Spaces Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block with two leading spaces before the fence and content lines. ```plaintext aaa aaa aaa ``` -------------------------------- ### Fenced Code with Leading Spaces Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block with one leading space before the fence and content lines. ```plaintext aaa aaa ``` -------------------------------- ### Edit tool call to remove the 3rd line from test.txt Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/basics-copy.txt Edits test.txt by replacing the old text (including the 3rd line) with new text that omits it. The edit uses the :path and :edits parameters. ```plaintext (:path "test.txt" :edits ((:newText "This is a test file. This might be useful for testing purposes." :oldText "This is a test file. It was just created with some text content. This might be useful for testing purposes."))) ``` -------------------------------- ### Fenced Code with Three Leading Spaces Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block with three leading spaces before the fence and content lines. ```plaintext aaa aaa aaa ``` -------------------------------- ### Lisp expression in code block Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A simple Lisp expression (+ 1 2) displayed as a code block. ```lisp (+ 1 2) ``` -------------------------------- ### Code block with horizontal rule Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A code block containing 'foo', '---', and 'bar' on separate lines, where '---' is part of the code. ```plaintext foo --- bar ``` -------------------------------- ### Set pimacs-section-autohide-count to 1 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-leaf-count-across-levels.txt Changes pimacs-section-autohide-count to 1, which hides only the first level of nodes. ```emacs-lisp (setq pimacs-section-autohide-count 1) ``` -------------------------------- ### Set pimacs-section-fixture-protect-compile to t Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/initial-hide-predicate-updates.txt Sets pimacs-section-fixture-protect-compile to t, which causes the autohide filter to protect compile sections from being hidden. This is used to demonstrate that the compile section remains visible (shown as [-] Compile) even when the initial-hide-filter includes compile. ```emacs-lisp (setq pimacs-section-fixture-protect-compile t) ``` -------------------------------- ### Set autohide count to 100 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-conversation-recency-predicate.txt Sets autohide count to 100, which hides all sections. The output shows all sections collapsed. ```emacs-lisp (setq pimacs-section-autohide-count 100) ``` ```text [-] Codemode script [-] Replace 1 arguments [-] Replace 2 arguments [-] Bash arguments [-] Result tests passed [-] Assistant 1 body [-] Assistant 2 body [-] Notify 1 body ``` -------------------------------- ### Print red text with ANSI escape sequence Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/bash-ansi-colors-search.txt Bash command that prints 'red' in red using the ANSI escape sequence \033[31m. The output is the literal string 'red'. ```bash printf '\033[31mred\033[0m\n' ``` ```bash red ``` -------------------------------- ### Set autohide count to nil Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-conversation-recency-predicate.txt Sets autohide count to nil, which disables autohide. The output shows all sections collapsed. ```emacs-lisp (setq pimacs-section-autohide-count nil) ``` ```text [-] Codemode script [-] Replace 1 arguments [-] Replace 2 arguments [-] Bash arguments [-] Result tests passed [-] Assistant 1 body [-] Assistant 2 body [-] Notify 1 body ``` -------------------------------- ### Fenced Code with Multiple Backtick Lines Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block containing multiple lines with backticks. ```plaintext foo ``` bar ``` baz ``` -------------------------------- ### Indented code block: oldStyle function Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown An indented code block showing a JavaScript function that returns a string. ```javascript // This is an indented code block function oldStyle() { return "indented"; } ``` -------------------------------- ### Fenced Code with Inline Backticks Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block containing a line with three backticks and a space. ```plaintext ``` ``` aaa ``` -------------------------------- ### Run invalid JavaScript script via codemode Source: https://github.com/ananthakumaran/pimacs.el/blob/master/integration/fixture/tapes/pimacs-codemode-output.txt Executes an invalid script 'const = ;' which fails with a SyntaxError. The codemode output shows the failure message and error details, and no tool calls were made. ```javascript const = ; ``` ```text Script failed Wall time DURATION seconds Output: Script error: SyntaxError: variable name expected at codemode.js:1:35 No tool calls were made. ``` -------------------------------- ### Set autohide count to 2 Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-excluded-parent-children-still-count.txt Changes pimacs-section-autohide-count to 2 while keeping the same filter and fixture buffer. The display now shows section C expanded with its body visible, while B remains hidden. ```emacs-lisp (setq pimacs-section-autohide-count 2) ``` ```text [-] A [+] B [-] C body [-] D body ``` -------------------------------- ### Fenced Code with Horizontal Rule and Headings Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block containing a horizontal rule and a heading. ```plaintext foo --- ~~~ bar ~~~ # baz ``` -------------------------------- ### Fenced Code with Angle Brackets Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block containing lines with angle brackets and spaces. ```plaintext < > ``` -------------------------------- ### Diff code block: variable change Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/document.in.markdown A diff block showing a change from 'deprecated' to 'improved' for a constant, with an unchanged line. ```diff - const oldValue = 'deprecated'; + const newValue = 'improved'; const unchanged = 'same'; ``` -------------------------------- ### Blockquote with code block Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.out.txt A blockquote containing a code block with the text 'aaa'. ```plaintext aaa ``` -------------------------------- ### Blockquote Fence with Unclosed Inner Fence Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A blockquote containing a fenced block that is not closed, followed by 'bbb'. ```plaintext aaa bbb ``` -------------------------------- ### Exclude section d from autohide filter Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-section-fixtures/autohide-initial-hidden-leaves-do-not-count.txt Sets the autohide filter to exclude section d. This prevents D from being auto-hidden, so D remains visible while C is hidden. ```emacs-lisp (setq pimacs-section-autohide-filter '(:exclude d)) ``` -------------------------------- ### Fenced Code with Unclosed Inner Backtick Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block containing a line with two backticks. ```plaintext aaa ``` ``` -------------------------------- ### Blockquote Fenced Code: code Source: https://github.com/ananthakumaran/pimacs.el/blob/master/test/pimacs-markdown-tapes/fenced-code-blocks.in.markdown A fenced code block inside a blockquote, containing the word 'code'. ```plaintext code ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.