Skip to content

Instantly share code, notes, and snippets.

@nickdavis
nickdavis / README.md
Created August 2, 2026 09:21
Restore Codex MCP Tools in RepoPrompt CE 1.1.1+ without copying the full Codex home

Restore Codex MCP Tools in RepoPrompt CE 1.1.1+

Tested with RepoPrompt CE 1.1.1 and its bundled Codex 0.145.0 on macOS. This also applies to later RepoPrompt CE releases while they continue to run Codex with a separate CODEX_HOME. A future release may provide a built-in import/sync feature, so check the app's release notes first.

Symptom

MCP servers work in Codex CLI or the Codex desktop app, but RepoPrompt CE's Tools → MCP Servers list shows only RepoPrompt CE and a few app-specific entries.

Why it happens

@nickdavis
nickdavis / the-algorithm.md
Last active July 23, 2026 18:48
the-algorithm.md
name the-algorithm
description Apply Elon Musk's five-step delete-first problem-solving algorithm as an explicit on-demand philosophy/mantra for simplifying requirements, plans, systems, code, products, and workflows. Use only when the user explicitly asks to use/apply/run The Algorithm, Musk's algorithm, or a question-delete-simplify-speed-automate pass.

The Algorithm

Purpose

Use this skill as a disciplined simplification pass before implementation, planning, optimization, or automation. Treat it as a first-principles checkpoint: do not optimize something that should not exist.

@nickdavis
nickdavis / settings.json
Created July 24, 2025 09:14
Get a chime whenever Claude Code either finishes its current task or needs input from you to continue. Create or edit ~/.claude/settings.json and drop in (this is for Mac, you will have to restart your current session) https://x.com/nickdavisio/status/1948310349309972590
{
"hooks": {
"Stop": [
{
"hooks": [
{ "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" }
]
}
],
"Notification": [
@nickdavis
nickdavis / composer.json
Created July 29, 2022 10:22
composer.json starter
{
"name": "nickdavis/project-name",
"description": "",
"type": "project",
"license": "proprietary",
"prefer-stable": true,
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
<?php
add_filter( 'genesis_pre_get_option_content_archive_limit', __NAMESPACE__ . '\set_content_archive_limit', 11, 1 );
/**
* Forces the Genesis > Settings > Content Archives > Limit Content value to
* prevent an error with Events Calendar (v4.8.2) Archive pages in Genesis
* themes.
*/
function set_content_archive_limit() {
return 0;
@nickdavis
nickdavis / yoast-seo-carbon-fields.js
Created February 21, 2019 21:21
Adding Carbon Fields to Yoast SEO content analysis
/**
* Adds specified Carbon Field to the Yoast SEO content analysis.
*
* @link https://return-true.com/adding-content-to-yoast-seo-analysis-using-yoastseojs/
* @link https://kb.yoast.com/kb/can-i-add-data-to-the-page-analysis/
* @link https://github.com/Yoast/YoastSEO.js/blob/master/README.md
* @link https://github.com/Yoast/YoastSEO.js/issues/181#issuecomment-163162489
*/
(function($) {
@nickdavis
nickdavis / wp-config.php
Last active June 29, 2022 11:04
Additional settings for wp-config.php (public version)
<?php
/**
* Debug.
*/
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
/**
@nickdavis
nickdavis / add-filter-shorcuts.php
Created March 16, 2018 21:40
add_filter shortcuts in WordPress
<?php
add_filter( 'my_filter', '__return_true' );
add_filter( 'my_filter', '__return_false' );
add_filter( 'my_filter', '__return_zero' );
add_filter( 'my_filter', '__return_null' );
add_filter( 'my_filter', '__return_empty_string' );
add_filter( 'my_filter', '__return_empty_array' );
@nickdavis
nickdavis / add-filter-remove-short-way.php
Last active March 16, 2018 21:37
A 'short way' example of removing text via add_filter in WordPress
<?php
/**
* Removes the text (short way).
*/
add_filter( 'my_filter', '__return_empty_string' );
@nickdavis
nickdavis / add-filter-remove-long-way.php
Last active March 16, 2018 21:36
A 'long way' example of removing text via add_filter in WordPress
<?php
add_filter( 'my_filter', 'remove_my_filter_text' );
/**
* Removes the text (long way).
*/
function remove_my_filter_text() {
return '';
}